DShorty
DShorty

Reputation: 582

asp.net core targeting .net framework

I'm adding a new asp.net core project straight from Visual Studio (16.3.2). I'm Targeting the .net framework and ASP.Net Core 2.2 and making no edits.

Standard new project for asp.net core

I'm then publishing to Azure app service and see what id expect for the standard new proj.

enter image description here

Next, I need to reference another library which is built-in .net 4.8 so change the target framework from net461 to net48 and republish (prior to adding a reference to the other library.

Upate this to net48

enter image description here

HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure

From some of the reading I can find I see that The in-process hosting model isn't supported for ASP.NET Core apps that target the .NET Framework. but it was previously when targeting the earlier version of net461?

In the scm console, i can see this event logged.

<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>

Questions

Upvotes: 0

Views: 1600

Answers (1)

DShorty
DShorty

Reputation: 582

It's because .net48 is not installed on Azure App Services yet. When I downgraded to .net471 is worked. Now the waiting game.

.net frameworks

Upvotes: 4

Related Questions