ASP.NET 4.5 throws 502.5 as a virtual application in Azure Web App under a ASP.NET Core 2.0 application

后端 未结 1 393
北恋
北恋 2020-12-06 21:37

This IS a duplicate from \"Running MVC Web app targeting .net 4.6.1 in a virtual directory under a ASP.NET core web app. Is it possible?\" but it is not resolved and OP said

相关标签:
1条回答
  • 2020-12-06 22:24

    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.

    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>
    

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

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