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
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
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.
User contributions licensed under CC BY-SA 3.0