且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET 4.5抛出502.5作为ASP.NET Core 2.0应用程序下Azure Web App中的虚拟应用程序

更新时间:2023-02-15 18:21:16


应用程序'MACHINE / WEBROOT / APPHOST / MYAPP /物理根为'D:\home\site\admin\'的ADMIN'无法使用命令行'dotnet .\MyWeb.dll'启动进程,错误代码='0x80004005:80008081。

Application 'MACHINE/WEBROOT/APPHOST/MYAPP/ADMIN' with physical root 'D:\home\site\admin\' failed to start process with commandline 'dotnet .\MyWeb.dll', ErrorCode = '0x80004005 : 80008081.

看来,ASP.NET 4.5上的虚拟应用程序目标是由 AspNetCoreModule $ c服务的$ c>模块。您可以按以下方式修改ASP.NET 4.5应用程序中的 web.config 文件:

It seems that your virtual application targets on ASP.NET 4.5 is served by the AspNetCoreModule module. You could modify the web.config file under your ASP.NET 4.5 application as follows:

<configuration>
  <system.webServer>
    <handlers>
      <remove name="aspNetCore"/> <!--add this line-->
    </handlers>
  </system.webServer>
</configuration>

您可以关注的详细信息 ASP.NET配置文件的层次结构和继承。另外,您可以遵循类似的问题

Details you could follow ASP.NET Configuration File Hierarchy and Inheritance. Also, you could follow this similar issue.