Published on: 28 March, 2018

HTTP Error 500.19 - Internal Server Error when publishing ASP.Net Core Web API to IIS Server

Posted by andy | 108 views 0 likes 0 favourites 0 comments
Tumblr Digg Google Plus

If you try to deploy your ASP.Net Core API files in your live IIS server and receive the following error: HTTP Error 500.19 - Internal Server Error . There are two possible issues that might possibly trigger this problem.

The first possible issue is you may not have installed .Net Core Windows Server Hosting Bundle. This is required and need to be installed on your server. You can download the required software by visiting the following URL.

Once the software has been installed properly, you may have to restart your IIS server.

The second possible issue could be related to permission issue. In your IIS application pool, check the application advanced settings by right click of the selected application pools and select Advanced Settings. See if the framework has been set to No Managed Code and the identity of the application pool has been set to ApplicationPoolIdentity. ASP.Net runs in a separate process and does not rely on loading the CLR. So there is no need to set the .Net CLR version.

Once this is setup correctly, go to your site folder and make sure the permission of the folder grants the user access for the application pool user. The following is an example of screenshot if we have a site and application pool named:

Click the edit button and it will popup a window box for you to add a new username or group.Then click the add button.

Enter "IIS AppPool\DefaultAppPool" in the "Enter the object names to select:" text box. (Don't forget to change "DefaultAppPool" here to whatever you named your application pool.)

If this is your first time creating ASP.Net Core Web API, I would highly recommend to check out my article about creating your First ASP.Net Core WebAPI. I have included some explanations and images so you can easily follow the tutorial.

Create your first ASP.Net Core Web API

If you have any question or issue, feel free to post your comment or question below.


There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.
Share your article with us and add your own google adsense account to earn extra money. Plus, you can promote a link back to your site.
Related Articles
Published on: 21 April, 2018
When you deploy your Core 2.0 application, you may receive the following error message which is about processing failure or HTTP error 502.5. This particular error is maybe caused by the program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing.
Published on: 28 March, 2018
In this tutorial, you will learn how to create your first Web API in ASP.Net Core 2. You will also learn how to deploy your first ASP.Net Core Web API and how to install it on your live server. In addition, I will also demonstrate on how to consume those ASP.Net Core Web APIs using Postman program.