【问题标题】:asp.net core targeting .net framework面向 .net 框架的 asp.net 核心
【发布时间】:2019-10-08 17:20:53
【问题描述】:

我直接从 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>

问题

  • 有人能给我指路吗?
  • 哪里是了解此类信息的最佳地点,有没有人提供任何有用的链接?
  • 一般的咆哮,为什么从一个简单的新项目模板很难做到这一点

【问题讨论】:

  • 这与进程内无关 - 您没有在 csproj 中启用它,并且错误消息显示“进程外启动失败”。至于是什么,现阶段真的很难说。你检查过日志吗? Azure App Services 可能仍然不支持 .NET Framework 4.8,但我不知道是否真的如此。
  • 为什么要在 .NET Core 项目中定位 .NET Framework?目标 .NET Core。
  • 我需要引用另一个内置的.net 4.8库
  • Failed to bind to port '8399' 似乎是这里的严重错误?

标签: asp.net asp.net-core azure-web-app-service


【解决方案1】:

这是因为 .net48 尚未安装在 Azure 应用服务上。 当我降级到 .net471 时工作。现在是等待游戏。

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-02-22
  • 1970-01-01
  • 2019-05-02
  • 1970-01-01
  • 2017-10-23
相关资源
最近更新 更多