blazor+winforms start failed with FileNotFoundException #55771
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Is there an existing issue for this?
Describe the bug
I have a very simple blazor + winform application. When I publish the project and run on my local computer, It works fine. But a error was occured while I run application on my windows server . (The message box was shown:
system info:
Microsoft Windows Server 2022 Datacenter 10.0.20348 暂缺 Build 20348 AMD64 Family 23 Model 49 Stepping 0 AuthenticAMD ~2595 Mhz
my App.razor:
my index.html
Expected Behavior
application start sucessfully.
Steps To Reproduce
No response
Exceptions (if any)
.NET Version
8.0.300
Anything else?
.NET SDK:
Version: 8.0.300
Commit: 326f6e68b2
Workload version: 8.0.300-manifests.c1c70047
MSBuild version: 17.10.4+10fbfbf2e
运行时环境:
OS Name: Windows
OS Version: 10.0.20348
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.300\
已安装 .NET 工作负载:
没有要显示的已安装工作负载。
Host:
Version: 8.0.5
Architecture: x64
Commit: 087e15321b
.NET SDKs installed:
8.0.300 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Trace Logs
Category: Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView
EventId: 10
Creating file provider at content root 'C:\Users\Administrator\Desktop\Boots\publish\wwwroot', using host page relative path 'index.html'.
Category: Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView
EventId: 11
Adding root component 'SubscriptionMain.App' with selector '#app'. Number of parameters: 0
Category: Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView
EventId: 12
Starting initial navigation to '/'.
The text was updated successfully, but these errors were encountered: