Description
When I publish my (ASP.NET Core hosted) Blazor WebAssembly App from Visual Studio 2019 version 16.11.5 with Web Deploy to an Azure AppService everything works fine.
But publishing from Visual Studio 2019 version 16.11.6 or Visual Studio 2022 results in a lot of "Failed to find a valid digest in the 'integrity' attribute for resource" errors whe the App is started after publishing.
I looked at Diagnosing integrity problems:
- All requests have a status 200
- Clearing the browser cache does not solve the problem.
- Adding
<BlazorCacheBootResources>false</BlazorCacheBootResources>
solves the problem, but that is not what I want of course.
I still have a machine with Visual Studio 2019 version 16.11.5 so for now I have a workaround, but I want to upgrade to VS 2022.
Publish settings:
- Target Framwork: net5.0
- Deployment mode: Self-contained
- Target Runtime: win-x86
Errors shown:
Failed to find a valid digest in the 'integrity' attribute for resource 'https://toproosterapi-manualbuild.azurewebsites.net/_framework/Ical.Net.dll' with computed SHA-256 integrity 'wpsWxP2dI/M+eOsY6EUhR8y3xP79FEDqA74wvJcsXFo='. The resource has been blocked.
toproosterapi-manualbuild.azurewebsites.net/:1 Unknown error occurred while trying to verify integrity.
blazor.webassembly.js?v=03:1 Error: Failed to start platform. Reason: TypeError: Failed to fetch
at blazor.webassembly.js?v=03:1
at blazor.webassembly.js?v=03:1
at Object.throw (blazor.webassembly.js?v=03:1)
at s (blazor.webassembly.js?v=03:1)
d.printErr @ blazor.webassembly.js?v=03:1
toproosterapi-manualbuild.azurewebsites.net/:1 Failed to find a valid digest in the 'integrity' attribute for resource 'https://toproosterapi-manualbuild.azurewebsites.net/_framework/System.IO.Pipelines.dll' with computed SHA-256 integrity 'qZYTUS+ga7CydtH54fYPbehFCvx3B49I74G8dxreTog='. The resource has been blocked.
toproosterapi-manualbuild.azurewebsites.net/:1 Unknown error occurred while trying to verify integrity.
toproosterapi-manualbuild.azurewebsites.net/:1 Failed to find a valid digest in the 'integrity' attribute for resource 'https://toproosterapi-manualbuild.azurewebsites.net/_framework/Microsoft.Net.Http.Headers.dll' with computed SHA-256 integrity 'Wvp5b2xB1gZg9yya2UqQycv2STns92xStLKpmRv5Aww='. The resource has been blocked.
toproosterapi-manualbuild.azurewebsites.net/:1 Unknown error occurred while trying to verify integrity.
toproosterapi-manualbuild.azurewebsites.net/:1 Failed to find a valid digest in the 'integrity' attribute for resource 'https://toproosterapi-manualbuild.azurewebsites.net/_framework/Microsoft.JSInterop.dll' with computed SHA-256 integrity 'zUWQN3o4+SD4D3IrJA37DwEjqztNaqUAgCT8zBENjIE='. The resource has been blocked.
toproosterapi-manualbuild.azurewebsites.net/:1 Unknown error occurred while trying to verify integrity.
toproosterapi-manualbuild.azurewebsites.net/:1 Failed to find a valid digest in the 'integrity' attribute for resource 'https://toproosterapi-manualbuild.azurewebsites.net/_framework/Microsoft.JSInterop.WebAssembly.dll' with computed SHA-256 integrity 'hNl8iqfAyBbbi5beUQrD8YE0aIHK9OlEgG8nQ2sJXcQ='. The resource has been blocked.
toproosterapi-manualbuild.azurewebsites.net/:1 Unknown error occurred while trying to verify integrity.
toproosterapi-manualbuild.azurewebsites.net/:1 Failed to find a valid digest in the 'integrity' attribute for resource 'https://toproosterapi-manualbuild.azurewebsites.net/_framework/Newtonsoft.Json.dll' with computed SHA-256 integrity 'dynSyVRw634jYoxRfV3ogqFeCGZk7RFbdDmfT1x04F0='. The resource has been blocked.
toproosterapi-manualbuild.azurewebsites.net/:1 Unknown error occurred while trying to verify integrity.
toproosterapi-manualbuild.azurewebsites.net/:1 Failed to find a valid digest in the 'integrity' attribute for resource 'https://toproosterapi-manualbuild.azurewebsites.net/_framework/NodaTime.dll' with computed SHA-256 integrity 'jNbb5/TCGMJ5TVSsS1QNCnXeeX3yMZDyjI8yjTBWz4M='. The resource has been blocked.
toproosterapi-manualbuild.azurewebsites.net/:1 Unknown error occurred while trying to verify integrity.