Skip to content

Some errors "Failed to load resource: the server responded with a status of 404 (Not Found)" appear in the browser console panel when updating the Counter file of 11.0 Blazor Web for WASM App and then run without build #65271

@EmilyFeng97

Description

@EmilyFeng97

REGRESSION INFO Works well on 10.0 and previous build 11.0.100-preview.1.26071.101

INSTALL STEPS

  1. Clean Win11 x64 23h2 ENU
  2. Install the .NET 11.0 preview 1 SDK from corohot build
  3. Add feed

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. Open a normal Command Prompt
  2. Create a Blazor Web App for WASM project
    dotnet new blazor -int WebAssembly -o MyBlazorWASMApp
    cd MyBlazorWASMApp
    
  3. Build the project using dotnet build
  4. Open MyBlazorWASMApp.Client\Pages\Counter.razor in notepad and update with following content:
    @code {
        int currentCount = 0;
    
        [Parameter]
        public int IncrementAmount { get; set; } = 1;
    
        void IncrementCount()
        {
            currentCount+=IncrementAmount;
        }
    }
    
  5. Run the project using dotnet run
  6. Navigate to the "Counter" page in the browser

Note:

  1. This issue does not repro if I rebuild the project after updating the code in the Counter.razor file.
  2. This issue does not repro on Blazor web server project.
  3. If I try to add <p>New changes</p> in Counter.razor file, will meet issue https://github.com/dotnet/AspNetCore-ManualTests/issues/3152

Actual Result

Image

Error Log

_framework/BlazorAuto.Client.lwytxz2dwg.pdb:1   Failed to load resource: the server responded with a status of 404 (Not Found)
counter:1  Failed to find a valid digest in the 'integrity' attribute for resource 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' with computed SHA-256 integrity 'gz5sb6R6HVnpwimWUeos+YZtyruSPoW+e1c4HQKQwBs='. The resource has been blocked.
counter:1  Fetch API cannot load http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb. SRI's integrity checks failed.
blazor.web.e6dv2k50rl.js:1  Error in mono_download_assets: Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
No @ blazor.web.e6dv2k50rl.js:1
blazor.web.e6dv2k50rl.js:1  Error in mono_download_assets: Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
No @ blazor.web.e6dv2k50rl.js:1
dotnet.9go4sbqo7h.js:4  Uncaught (in promise) TypeError: Failed to fetch. SRI's integrity checks failed.
    at Object.M [as fetch_like] (dotnet.9go4sbqo7h.js:4:4729)
    at dotnet.9go4sbqo7h.js:4:14189
    at ue (dotnet.9go4sbqo7h.js:4:14205)
    at dotnet.9go4sbqo7h.js:4:12549
    at se (dotnet.9go4sbqo7h.js:4:13021)
    at re (dotnet.9go4sbqo7h.js:4:10941)
    at o (dotnet.9go4sbqo7h.js:4:6964)
    at te (dotnet.9go4sbqo7h.js:4:6990)
    at dotnet.9go4sbqo7h.js:4:31594
dotnet.9go4sbqo7h.js:4  Uncaught (in promise) Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
dotnet.9go4sbqo7h.js:4  Uncaught (in promise) Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
counter:1  Uncaught (in promise) Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
startup.ts:338  Uncaught (in promise) Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
counter:1  Uncaught (in promise) Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
blazor.web.e6dv2k50rl.js:1  Uncaught (in promise) Error: Failed to start platform. Reason: Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
    at ri (blazor.web.e6dv2k50rl.js:1:186766)
blazor.web.e6dv2k50rl.js:1  Uncaught (in promise) Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.lwytxz2dwg.pdb' for BlazorAuto.Client.lwytxz2dwg.pdb failed 0 TypeError: Failed to fetch
_framework/BlazorAuto.Client.y861nlbcob.wasm:1   Failed to load resource: the server responded with a status of 404 (Not Found)
counter:1  Failed to find a valid digest in the 'integrity' attribute for resource 'http://localhost:5018/_framework/BlazorAuto.Client.y861nlbcob.wasm' with computed SHA-256 integrity 'gz5sb6R6HVnpwimWUeos+YZtyruSPoW+e1c4HQKQwBs='. The resource has been blocked.
counter:1  Fetch API cannot load http://localhost:5018/_framework/BlazorAuto.Client.y861nlbcob.wasm. SRI's integrity checks failed.
blazor.web.e6dv2k50rl.js:1  Error in mono_download_assets: Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.y861nlbcob.wasm' for BlazorAuto.Client.y861nlbcob.wasm failed 0 TypeError: Failed to fetch
No @ blazor.web.e6dv2k50rl.js:1
dotnet.9go4sbqo7h.js:4  Uncaught (in promise) TypeError: Failed to fetch. SRI's integrity checks failed.
    at Object.M [as fetch_like] (dotnet.9go4sbqo7h.js:4:4729)
    at dotnet.9go4sbqo7h.js:4:14189
    at ue (dotnet.9go4sbqo7h.js:4:14205)
    at dotnet.9go4sbqo7h.js:4:12549
    at se (dotnet.9go4sbqo7h.js:4:13021)
    at re (dotnet.9go4sbqo7h.js:4:10941)
    at o (dotnet.9go4sbqo7h.js:4:6964)
    at te (dotnet.9go4sbqo7h.js:4:7014)
    at dotnet.9go4sbqo7h.js:4:31594
counter:1  Uncaught (in promise) Error: download 'http://localhost:5018/_framework/BlazorAuto.Client.y861nlbcob.wasm' for BlazorAuto.Client.y861nlbcob.wasm failed 0 TypeError: Failed to fetch
[NEW] Explain Console errors by using Copilot in Edge: click
         
         to explain an error. 
        Learn more
        Don't show again

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions