Blcor客户端问题与mscorlib.dll/单运行时 [英] Blazor Client problem with mscorlib.dll / mono-runtime
问题描述
我有一个使用blazorhosted
模板创建的项目.
I have project created with an blazorhosted
template.
昨天出于某种原因Client
方面由于出现类似500个字符的错误消息而无法编译
Yesterday for some reason Client
side had problem with compiling due to like 500 characters error message
我点击了两次,它在C:\ProgramFiles\dotnet\...\0.7
文件夹中打开了iirc之类的mono runtime
配置文件,并带有{blazor smth}之类的怪异行,然后我删除了某些内容并幸运地保存了该内容并进入睡眠状态...
I clicked on it twice, and it opened iirc something like mono runtime
config file in C:\ProgramFiles\dotnet\...\0.7
folder with weird lines like {blazor smth} and I removed something and unfortunely saved that and went sleep...
我还记得500个字符长的错误提到了Linker
I also remember that that 500 characters long error mentioned Linker
现在,启动我的应用程序后,它仅显示正在加载..."页面,并在网络浏览器控制台上显示错误
Now after starting my app it just shows "Loading..." page and error on web browser console
WASM:找不到程序mscorlib.dll或无法加载. blazor.webassembly.js:1:32055 WASM:应该已将其安装在 这 `/mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/sdks/out/wasm-runtime-release/lib/mono/4.5/mscorlib.dll' 目录. blazor.webassembly.js:1:32055错误:无法启动 平台.原因:[对象XMLHttpRequest]
WASM: The assembly mscorlib.dll was not found or could not be loaded. blazor.webassembly.js:1:32055 WASM: It should have been installed in the `/mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/sdks/out/wasm-runtime-release/lib/mono/4.5/mscorlib.dll' directory. blazor.webassembly.js:1:32055 Error: Failed to start platform. Reason: [object XMLHttpRequest]
我完全理解调试它可能很困难,但是也许有人有想法吗?或如何重新安装或维修Blazor/Mono?
I totally understand that it may be hard to debug it, but maybe somebody has an idea? or how can I reinstall or repair Blazor / Mono?
我刚刚下载并安装了.NET Core 3.0(以前是2.x)
I just downloaded and installed .NET Core 3.0 (previously had 2.x)
但是仍然发生上述错误.
But still the above mentioned error occurs.
推荐答案
对我来说,当我对index.html进行一些更改(页面标题和页脚)时,发生了一个奇怪的错误.不确定html中是否有错误...好吧,将index.html恢复为正常工作时,该错误消失了.
For me that happened when i edited index.html with some changes (page title and footer) it started with this strange error. Not sure maybe had an error in html... Well, reverted index.html back to when it was working, the error was gone.
这篇关于Blcor客户端问题与mscorlib.dll/单运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!