.net core修改了项目属性应用url地址后区域出现错误500.0 ancm

HTTP Error 500.0 - ANCM In-Process Handler Load Failure

HTTP Error 500.0 - ANCM In-Process Handler Load Failure

Common causes of this issue:

  • The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
  • The in process request handler, Microsoft.AspNetCore.Server.IIS, was not referenced in the application.
  • ANCM could not find dotnet.

Troubleshooting steps:

  • Check the system event log for error messages
  • Enable logging the application process' stdout messages
  • Attach a debugger to the application process and inspect

For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028526

解决办法:打开项目路径下目录:.vs/config/applicationhost.config文件,在里面将没用的虚拟路径删掉,这样就正常访问了。

<site name="EvaluationManagement" id="2">
<application path="/" applicationPool="EvaluationManagement AppPool 3">
<virtualDirectory path="/" physicalPath="D:\Source\Repos\EvaluationManagement\EvaluationManagement" />
</application>
<application path="/aa" applicationPool="aa AppPool">
<virtualDirectory path="/" physicalPath="D:\Source\Repos\EvaluationManagement\EvaluationManagement" />
</application>
<application path="/admin" applicationPool="EvaluationManagement AppPool 3">
<virtualDirectory path="/" physicalPath="D:\Source\Repos\EvaluationManagement\EvaluationManagement" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:63292:localhost" />
</bindings>
</site>