Vso*_*ape 3 .net c# asp.net azure asp.net-core
这是" 在ASP.NET核心Web应用程序下的虚拟目录中以.net 4.6.1运行MVC Web应用程序的重复.是否可能? "但它没有得到解决,OP说他通过创建一个额外的应用程序来解决它.所以我再次发布.
我有一个Azure Web App组织如下:
"site/wwwroot/MyWeb.dll" (ASP.NET Core 2.0)
"site/admin/MyAdmin.dll" (ASP.NET 4.5)
Run Code Online (Sandbox Code Playgroud)
网络运行正常.但是当我尝试访问管理站点时,我收到以下错误
HTTP错误502.5 - 进程失败
以下是".../logFiles/eventlog.xml"的摘录,我认为这是有用的
<Event>
<System>
<Provider Name="IIS AspNetCore Module"/>
<EventID>1000</EventID>
<Level>1</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2018-01-04T20:09:05Z"/>
<EventRecordID>1024919046</EventRecordID>
<Channel>Application</Channel>
<Computer>RD00155D77CB9A</Computer>
<Security/>
</System>
<EventData>
<Data>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.</Data>
</EventData>
</Event>
Run Code Online (Sandbox Code Playgroud)
随意询问您可能需要的任何信息.提前致谢!
具有物理根"D:\ home\site\admin \"的应用程序"MACHINE/WEBROOT/APPHOST/MYAPP/ADMIN"无法使用命令行"dotnet.\ MyWeb.dll"启动进程,ErrorCode ='0x80004005:80008081.
似乎ASP.NET 4.5上的虚拟应用程序目标由AspNetCoreModule模块提供.您可以web.config在ASP.NET 4.5应用程序下修改该文件,如下所示:
<configuration>
<system.webServer>
<handlers>
<remove name="aspNetCore"/> <!--add this line-->
</handlers>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
您可以遵循ASP.NET配置文件层次结构和继承的详细信息.此外,您可以遵循这个类似的问题.
| 归档时间: |
|
| 查看次数: |
382 次 |
| 最近记录: |