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
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.