将我的项目更新为“Microsoft.aspnetcore.all”2.2.0后,在IIS中运行时出错,但在Visual Studio中运行时不会出错。
HTTP-Fehler 500.21 - Internal Server ErrorDer Handler "aspNetCore" weist das ungültige Modul "AspNetCoreModuleV2" in der Modulliste auf.
我不知道这是什么原因,www似乎没有答案。
也许有人面对同样的事情有办法

最佳答案

你只需要在下面安装这个软件包。之后,您可以使用aspnetcoremodulev2:)
https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.2-windows-hosting-bundle-installer
安装时请注意以管理员身份安装。作为安装的一部分,applicationHost.config文件将更新为包含AspNetCoreModuleV2及其dll。这就是为什么使用管理员权限运行安装非常重要的原因之一。

10-07 21:59