将项目更新为"Microsoft.AspNetCore.All" 2.2.0之后,在IIS中运行时出现错误,而在Visual Studio中运行时却没有错误.
After updating my project to "Microsoft.AspNetCore.All" 2.2.0, I get an error when running in IIS, but not when running in Visual Studio.
HTTP-Fehler 500.21 - Internal Server Error Der Handler "aspNetCore" weist das ungültige Modul "AspNetCoreModuleV2" in der Modulliste auf.
HTTP-Fehler 500.21 - Internal Server Error Der Handler "aspNetCore" weist das ungültige Modul "AspNetCoreModuleV2" in der Modulliste auf.
我不知道是什么原因造成的,而www似乎没有答案. 也许有人面临着同样的事情并且有解决方案
I don't know what is causing this and the www does not seem to have an answer. Maybe someone facing the same thing and has a solution
推荐答案您只需要在下面安装此软件包.之后,您可以使用AspNetCoreModuleV2:)
You just need to install this package below. After that you can use the AspNetCoreModuleV2 :)
dotnet.microsoft/download/thank-you/dotnet-runtime-2.2.2-windows-hosting-bundle-installer
安装时,请注意以管理员身份安装.作为安装的一部分,applicationHost.config文件将更新为包括AspNetCoreModuleV2及其dll.这是使用管理员特权运行安装很重要的原因之一.
When installing, please notice to install as administrator. As part of the installation the applicationHost.config file will be updated to include AspNetCoreModuleV2 and its dll. this is one of the reasons why it's important to run installation with admin privilege.
更多推荐
aspNetCore 2.2.0
发布评论