不。事件日志中的错误信息已回答,
<EventData> <Data> 每个IIS应用程序池只允许一个进程内应用程序。请将应用程序'/ LM / W3SVC / 170746742 / ROOT / api'分配给其他IIS应用程序池。 </Data>
<EventData> <Data>
</Data>
在您在同一Azure WebApp中运行多个虚拟应用程序的方案中,只有一个应用程序可以在托管模型中运行 in-process ,其他人可以配置 web.config 档案为 out-of-process 通过 Kestrel 如下所示,请在此处查看更多详细信息 ASP.NET Core Module 。
in-process
web.config
out-of-process
Kestrel
ASP.NET Core Module
注意:hostingModel =“ 的 OutOfProcess 强> “ <?xml version="1.0" encoding="utf-8"?> <configuration> <location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments=".\MyApp.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="OutOfProcess" /> </system.webServer> </location> </configuration>
注意:hostingModel =“ 的 OutOfProcess 强> “
<?xml version="1.0" encoding="utf-8"?> <configuration> <location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments=".\MyApp.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="OutOfProcess" /> </system.webServer> </location> </configuration>