HTTP Error 500.19 IIS .net core 2.1 with error code 0x80070005

0

I'm trying to host a asp.net core 2.1 website using IIS. But I keep getting this error while I have installed the .net core 2.1 hosting pack and link rewrite package:

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

Module IIS Web Core

Notification Unknown

Handler Not yet determined

Error Code 0x80070005 Config Error Cannot read configuration file due to insufficient permissions

Config File \?\C:\Users\USER\source\repos\Frontis.Forecast\Frontis.Forecast\Frontis.Forecast.Web\bin\Release\PublishOutput\web.config

c#
iis
asp.net-core
.net-core
iis-10
asked on Stack Overflow Jun 4, 2018 by Tom Esendam • edited May 21, 2020 by Lex Li

1 Answer

5

Cannot read configuration file due to insufficient permissions

You're hosting the site from your user profile. The user running the application pool in IIS doesn't have permissions to read from your profile.

Deploy the site to a folder that the IIS app pool user has permissions to.

answered on Stack Overflow Jun 4, 2018 by CodeCaster

User contributions licensed under CC BY-SA 3.0