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

Lex Li
  • 60,503
  • 9
  • 116
  • 147
Rocco
  • 457
  • 5
  • 23

1 Answers1

6

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.

CodeCaster
  • 147,647
  • 23
  • 218
  • 272