Problem:
If you upload a new web page with Asp.Net Core 2.1 to a web server and try to start it, then first an error message 502.5 appears on the web server.
HTTP Error 502.5 - Process Failure |
In the logs / log files of the Asp.Net Core 2.1 application you will find the message:
Alternatively, install the framework version '2.1.5'. |
Solution:
You have to download the following package on the webserver and just start it. Then the asp.net Core 2.1 application can be started directly in the IIS web server
Windows ->ASP.NET Core/.NET Core: [lnk:"Runtime & Hosting Bundle"/]
|
Documentation of the installation on the web server
Web server: Intel 64 bit
Operating system: Windows Server 2016 Standard
After uploading the Asp.Net Core 2.1 files to the IIS web server, the following error message appears when starting the web page
Error message in the website
HTTP Error 502.5 - Process Failure
|
Error message on IIS server
File: /logs/date.log Log file at startup
It was not possible to find any compatible framework version The specified framework 'Microsoft.NETCore.App', version '2.1.5' was not found. - Check application dependencies and target a framework version installed at: \ - Alternatively, install the framework version '2.1.5'. |
Installation of Asp.Net Core Hosting on the web server
Subject: Productive web server
To install the Core 2.1 Runtime environment on a productive web server running Microsoft IIS Internet Information Server, you need to install the Runtime and Hosting Bundle version.
Simply open the following link with the download of the hosting version, download the package and install. Then stop this web page with asp core 2.1 and higher on the IIS web server and start again.
Then on the link
[Lnk
"https://www.microsoft.com/net/download/dotnet-core/2.1" /]
.NET Core 2.1 downloads
Under-> Run apps - Runtime
Installation on the web server
In my experience, you can install the Microsoft .NET Core 2.1.5 Windows Server Hosting while running.
Restart on the IIS server
If you then stop the Web server on the web server and restarted, then the asp.net core 2.1 application should run again
Thereafter, opening the web page should work on the web server as well as on a desktop client.
Open on the web server with browse website. Here error messages are displayed rather than on a normal desktop