簡體   English   中英

asp.net 核心針對 .net 框架

[英]asp.net core targeting .net framework

我直接從 Visual Studio (16.3.2) 添加一個新的 asp.net 核心項目。 我的目標是 .net 框架和 ASP.Net Core 2.2 並且不進行任何編輯。

asp.net core 的標准新項目

然后我將發布到 Azure 應用服務,看看標准新項目的 id 期望。

在此處輸入圖像描述

接下來,我需要引用另一個內置 .net 4.8 的庫,因此將目標框架從net461更改為net48並重新發布(在添加對另一個庫的引用之前。

將此更新為 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>

問題

  • 有人可以給我一個正確的方向嗎?
  • 了解此類信息的最佳地點在哪里,有人有任何有用的鏈接嗎?
  • 一般咆哮,為什么從一個簡單的新項目模板很難

這是因為 Azure App Services 上尚未安裝 .net48。 當我降級到 .net471 時工作。 現在等待游戲。

.net 框架

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM