AspNetCore 3.0 - HTTP Error 500.0 - ANCM In-Process Handler Load Failure

十年热恋 提交于 2020-01-06 05:21:09

问题


I created two ASP.NET Core web applications - just API templates:

  • ASP.NET Core 2.2
  • ASP.NET Core 3.0

Deployed these applications to the Windows Server 2016 with latest (3.0 Runtime & Hosting Bundle). ASP.NET Core 2.2 works correctly without any problems, but ASP.NET Core 3.0 gives me this error from image below.

In event viewer I found error every time when I deploy or try to start 3.0 application:

Application 'C:\Inetpub\vhosts\webapp.com\httpdocs\' failed to start. Exception message: Unexpected exception: status: Access is denied.: "C:\Program Files (x86)\dotnet\dotnet.exe"

I just copied directory path with adding executable file to the command prompt, and this command opens localhost listener:

>  C:\Inetpub\vhosts\webapp.com\httpdocs\WebApp.exe

Then I can access to the webapp directly on server over localhost and port. I tried also to change directory permission but I didn't fix the issue.


回答1:


For me specifically I fixed this issue with adding web.config in application and replacing AspNetCoreModuleV2 to AspNetCoreModule, but this is not perfect solution.

Another solution is deploying application as Self-Contained.



来源:https://stackoverflow.com/questions/59016776/aspnetcore-3-0-http-error-500-0-ancm-in-process-handler-load-failure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!