提问人:slb 提问时间:10/5/2023 最后编辑:Lex Lislb 更新时间:10/6/2023 访问量:67
IISExpress 未在 ARM64 Mac / .NET 4.8 上启动
IISExpress not starting on ARM64 Mac / .NET 4.8
问:
我在 Parallels 和 Windows 11 for ARM64 下的 M2 Mac 上运行 Visual Studio Community Edition 2022。
我让应用程序(.NET 4.8 Webforms)在本地IIS上运行,但没有在IIS Express上运行。IISExpress 启动失败,并显示“加载全局模块时出错”。
PS C:\Program Files\IIS Express> .\iisexpress.exe /trace:error
Starting IIS Express ...
Initializing the W3 Server Started CTC = 1389375
W3 Server initializing WinSock. CTC = 1389390
W3 Server WinSock initialized. CTC = 1389390
W3 Server ThreadPool initialized (ipm has signalled). CTC = 1389390
Failed processing with hr = 8007007e
Error loading global modules. hr = 8007007e
Terminating W3_SERVER object
Start listenerChannel http:0
Initializing the W3 Server Started CTC = 1390546
W3 Server initializing WinSock. CTC = 1390546
W3 Server WinSock initialized. CTC = 1390546
W3 Server ThreadPool initialized (ipm has signalled). CTC = 1390546
Failed processing with hr = 8007007e
Error loading global modules. hr = 8007007e
Terminating W3_SERVER object
InitComplete event signalled
Process Model Shutdown called
Waiting for all LISTENER_CHANNELS to stop
Unable to start iisexpress.
Das angegebene Modul wurde nicht gefunden.
For more information about the error, run iisexpress.exe with the tracing switch enabled (/trace:error)
知道如何解决这个问题吗?
答:
1赞
Lex Li
10/6/2023
#1
默认情况下,IIS Express 附带 ASP.NET 核心模块。但是,由于一个已知问题,其 ARM64 安装程序中附带的 ASP.NET Core 模块的位数是错误的,这就是您描述的此错误的原因。
虽然最终的修复程序应该是修补的安装程序,这可能不会很快到来,但您可以打开 applicationHost.config 文件(隐藏在项目文件夹的文件夹中)并手动从模块列表中删除 ASP.NET 核心模块。.vs
评论