How to fix error “ANCM In-Process Handler Load Failure”?

后端 未结 16 2848
攒了一身酷
攒了一身酷 2020-12-13 17:39

I\'m setting up the first site in IIS on Windows Server 2016 Standard. This is a NET Core 2.2 application. I cannot get the site to show.

I am getting th

相关标签:
16条回答
  • 2020-12-13 18:13

    For me it was because I had ASPNETCORE_ENVIRONMENT environment variable being defined 2 times in my app - one in web.config and another - in applicationhost.config

    0 讨论(0)
  • 2020-12-13 18:14

    Delete the 'hosting Model ="in process"' section in web config.

    Example:

    <aspNetCore processPath="dotnet" arguments=".\WebAPICore.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    

    to

    <aspNetCore processPath="dotnet" arguments=".\WebAPICore.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
    
    0 讨论(0)
  • 2020-12-13 18:18

    In my case updating .net core sdk works fine.

    0 讨论(0)
  • 2020-12-13 18:21

    In my case just adding MVC into Startup.cs Please follow into image. I am trying to add dependency injection then showing this problem. I think it will be helpful. Follow this Image: https://i.stack.imgur.com/ykw8P.png

    0 讨论(0)
提交回复
热议问题