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

前端 未结 12 1552
遇见更好的自我
遇见更好的自我 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 20:02

    UPDATE

    This is a workaround that keeps your app on pre-v2 hosting. Please see alans answer and my comment for a more complete solution

    ORIGINAL

    I got this to work by adding the following code block to the .csproj for the web application.

    
      netcoreapp2.2
      latest
      AspNetCoreModule
      OutOfProcess
    
    

    Obviously you'll want to update the netcoreapp version as you move on. This is how I was able to get things working. I'm not sure why simply installing the hosting bundle for 2.2 wasn't enough.

提交回复
热议问题