Skip to content

Integrity checking issue in Blazor wasm application after update from RC2 to 5.0 #27752

@askolniak

Description

@askolniak

I have just updated references to the latest framework release and the application does not start anymore.
Project is developed, build and hosted on Windows.

When started locally from Visual Studio it throws out a lot of errors such as "Failed to find a valid digest in the 'integrity' attribute for resource..." for probably all client side dlls and for dotnet.wasm.

When published and served on IIS in "self-contained" mode it throws "only" this:
Failed to find a valid digest in the 'integrity' attribute for resource 'http://myserver.com/myproject/_framework/dotnet.wasm' with computed SHA-256 integrity 'sM00FtqUHIlrUdb02MY/qfdHC8Wj3ZQzQbgAHOGI/QM='. The resource has been blocked.
myproject:1 Unknown error occurred while trying to verify integrity.
myproject:1 Failed to find a valid digest in the 'integrity' attribute for resource 'http://myserver.com/myproject/_framework/dotnet.timezones.blat' with computed SHA-256 integrity 'eD1xx9KVSZ9Xc134LY9VKnKHGzf6M2yPGh+GxiRBQw0='. The resource has been blocked.
myproject:1 Unknown error occurred while trying to verify integrity.
myproject:1 Uncaught (in promise) TypeError: Failed to fetch
blazor.webassembly.js:1 Streaming compilation failed. Falling back to ArrayBuffer instantiation. TypeError: Failed to fetch
blazor.webassembly.js:1 TypeError: Failed to fetch
d.printErr @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
s @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
a @ blazor.webassembly.js:1
Promise.then (async)
u @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
r @ blazor.webassembly.js:1
d.instantiateWasm @ blazor.webassembly.js:1
createWasm @ dotnet.5.0.0.js:1
(anonymous) @ dotnet.5.0.0.js:1
blazor.webassembly.js:1 Uncaught (in promise) TypeError: Failed to fetch

When I added this line:
<BlazorCacheBootResources>false</BlazorCacheBootResources>
to the client side csproj and started the app locally, it threw this:

blazor.webassembly.js:1 Error: Failed to start platform. Reason: RuntimeError: memory access out of bounds
at blazor.webassembly.js:1
at blazor.webassembly.js:1
at Object.throw (blazor.webassembly.js:1)
at s (blazor.webassembly.js:1)
d.printErr @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.catch (async)
(anonymous) @ blazor.webassembly.js:1
n @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
dotnet.wasm:0x108d98 Uncaught (in promise) RuntimeError: memory access out of bounds
at mono_wasm_load_icu_data (https://localhost:44338/_framework/dotnet.wasm:wasm-function[6919]:0x108d98)
at Object.mono_wasm_load_bytes_into_heap (https://localhost:44338/_framework/dotnet.5.0.0.js:1:144722)
at https://localhost:44338/_framework/blazor.webassembly.js:1:16948
at https://localhost:44338/_framework/blazor.webassembly.js:1:14045
at Object.next (https://localhost:44338/_framework/blazor.webassembly.js:1:14150)
at a (https://localhost:44338/_framework/blazor.webassembly.js:1:12864)

What else should I check?

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedServicing-considerShiproom approval is required for the issuearea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions