Deploy .NET Core ASP.NET Website - HTTP Error 502.5 - Process Failure

折月煮酒 提交于 2019-12-05 20:40:55

Found the solution:

In the root web.config change:

processPath="%LAUNCHER_PATH%"

to:

processPath=".\Web_CoreWebNetFramework.exe"

I ran the following command in cmd

C:\fullpath\dotnet C:\fullpath\PROJECT.dll

on the command prompt, which gave me a much more meaningful error:

"The specified framework 'Microsoft.NETCore.App', version '1.0.1' was not found. - Check application dependencies and target a framework version installed at: C:\Program Files\dotnet\shared\Microsoft.NETCore.App - The following versions are installed: 1.0.0 - Alternatively, install the framework version '1.0.1'.

I Installed the correct net core and the project worked correctly

With VisualStudio 2017, open up the .csproj file and add to the first block:

<RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>

Usually the result will be:

<PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
    <RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>
</PropertyGroup>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!