[英]asp.net core targeting .net framework
我直接從 Visual Studio (16.3.2) 添加一個新的 asp.net 核心項目。 我的目標是 .net 框架和 ASP.Net Core 2.2 並且不進行任何編輯。
然后我將發布到 Azure 應用服務,看看標准新項目的 id 期望。
接下來,我需要引用另一個內置 .net 4.8 的庫,因此將目標框架從net461
更改為net48
並重新發布(在添加對另一個庫的引用之前。
HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure
從一些閱讀中我可以發現The in-process hosting model isn't supported for ASP.NET Core apps that target the .NET Framework.
但以前是針對較早版本的net461
?
在 scm 控制台中,我可以看到此事件已記錄。
<Event>
<System>
<Provider Name="IIS AspNetCore Module V2"/>
<EventID>1020</EventID>
<Level>1</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2019-10-08T08:45:18Z"/>
<EventRecordID>393902093</EventRecordID>
<Channel>Application</Channel>
<Computer>RD0003FF6AA327</Computer>
<Security/>
</System>
<EventData>
<Data>Application '/LM/W3SVC/1779341267/ROOT' with physical root 'D:\home\site\wwwroot\' failed to start process with commandline 'D:\home\site\wwwroot\Admin.exe ' with multiple retries. Failed to bind to port '8399'. First 30KB characters of captured stdout and stderr logs from multiple retries:
</Data>
<Data>Process Id: 19244.</Data>
<Data>File Version: 13.0.19218.0. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 4a42afc5aea63750638e118560d43db04bd9ccc2</Data>
</EventData>
</Event>
問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.