Skip to content

blazor.web.js:1 Failed to load resource: the server responded with a status of 404 #62576

@nssidhu

Description

@nssidhu

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Project GitHub URL.
https://github.com/nssidhu/Base-NET10

when i set the startup Project to the Web, i get the following error.

msgport.js:70 {"notify":"init_tab"}
blazor.web.js:1   Failed to load resource: the server responded with a status of 404 ()
localhost/:1  Unchecked runtime.lastError: The message port closed before a response was received.

But when i change the startup project to Blazor Hybrid(MAUI), everything works without any error.

Expected Behavior

blazor.web.js should not fail to load

Steps To Reproduce

  1. Create New project of type ".NET MAUI Blazor Hybrid and Web App". for Web Select Auto for Rendering.

Exceptions (if any)

msgport.js:70 {"notify":"init_tab"}
blazor.web.js:1 Failed to load resource: the server responded with a status of 404 ()
localhost/:1 Unchecked runtime.lastError: The message port closed before a response was received.

.NET Version

10.0.100-preview.5.25277.114

Anything else?

C:\Users\nssid>dotnet --info
.NET SDK:
Version: 10.0.100-preview.5.25277.114
Commit: ddf39a1b46
Workload version: 10.0.100-preview.5.25306.3
MSBuild version: 17.15.0-preview-25277-114+ddf39a1b4

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.5.25277.114\

.NET workloads installed:
[android]
Installation Source: SDK 10.0.100-preview.5, VS 17.14.36221.1
Manifest Version: 36.0.0-preview.5.116/10.0.100-preview.5
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-preview.5\microsoft.net.sdk.android\36.0.0-preview.5.116\WorkloadManifest.json
Install Type: Msi

[aspire]
Installation Source: SDK 10.0.100-preview.5
Manifest Version: 8.2.2/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.2.2\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: SDK 10.0.100-preview.5, VS 17.14.36221.1
Manifest Version: 18.4.10622-net10-p5/10.0.100-preview.5
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-preview.5\microsoft.net.sdk.ios\18.4.10622-net10-p5\WorkloadManifest.json
Install Type: Msi

[maccatalyst]
Installation Source: SDK 10.0.100-preview.5, VS 17.14.36221.1
Manifest Version: 18.4.10622-net10-p5/10.0.100-preview.5
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-preview.5\microsoft.net.sdk.maccatalyst\18.4.10622-net10-p5\WorkloadManifest.json
Install Type: Msi

[maui]
Installation Source: SDK 10.0.100-preview.5
Manifest Version: 10.0.0-preview.5.25306.5/10.0.100-preview.5
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-preview.5\microsoft.net.sdk.maui\10.0.0-preview.5.25306.5\WorkloadManifest.json
Install Type: Msi

[maui-windows]
Installation Source: SDK 10.0.100-preview.5, VS 17.14.36221.1
Manifest Version: 10.0.0-preview.5.25306.5/10.0.100-preview.5
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-preview.5\microsoft.net.sdk.maui\10.0.0-preview.5.25306.5\WorkloadManifest.json
Install Type: Msi

Configured to use workload sets when installing new manifests.

Host:
Version: 10.0.0-preview.5.25277.114
Architecture: x64
Commit: ddf39a1b46

.NET SDKs installed:
9.0.301 [C:\Program Files\dotnet\sdk]
10.0.100-preview.5.25277.114 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-preview.5.25277.114 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-preview.5.25277.114 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.23 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.5.25277.114 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions