Handler “aspNetCore” has a bad module “AspNetCoreModuleV2” in its module list

前端 未结 12 1551
遇见更好的自我
遇见更好的自我 2020-12-29 19:32

I used angular .net core 2.2 template to build application.In localhost working fine,When i host to IIS Im getting this error.Im using IIS 10 to host the application.

<
12条回答
  •  [愿得一人]
    2020-12-29 19:56

    Windows IIS

    Solution: Install the hosting bundle.

    Reason: Although the SDK normally contains the runtime, however, it seems the SDK installer is not registering the runtime correctly on the server.

    Workaround (not recommended):

    Change AspNetCoreModuleV2 to AspNetCoreModule inside web.config.

    Azure platform hosting

    Install the .NET Core runtime extension by selecting Extensions and then installing .NET Core Runtime.

提交回复
热议问题