Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

Installation of .NET Core 2.1 on a web server

 

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

Common causes of this issue:

  • The application process failed to start
  • The application process started but then stopped
  • The application process started but failed to listen on the configured port

Troubleshooting steps:

  • Check the system event log for error messages
  • Enable logging the application process' stdout messages
  • Attach a debugger to the application process and inspect

 

 

 

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

Windows -> ASP.NET Core / .NET Core: Runtime & Hosting Bundle

 

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

Mobile
»
Installation of .NET Core 2.1 on a web server
»
Set upload of very large files in Asp.Net MVC Core 2.
»
Error: Identity column can not be updated, IDENTITY_INSERT is set to OFF
»
Asp Error: IDENTITY_INSERT OFF when accessing AspNetUsers registry
»
ASP IIS Error: 440.13 Not Found. upload file size is exceeded
»
InvalidOperationException: An exception occurred while reading a database value for property
»
A database operation failed while processing the request. SqlException: Invalid object name
»
InvalidOperationException: No database provider has been configured for this dbContext
»
NullReferenceException: Object reference not set to an instance of an object.
»
InvalidOperationException: The expected type was System.Boolean but the actual value was null.

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de