问题描述
将项目更新为"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 ErrorDer Handler "aspNetCore" weist das ungültige Modul "AspNetCoreModuleV2" in der Modulliste auf.
HTTP-Fehler 500.21 - Internal Server ErrorDer 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 :)
安装时,请注意以管理员身份安装.作为安装的一部分,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-AspNetCoreModuleV2错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!