Issue
After setting up the web App code on my local machine today, I got an error like “Cannot read configuration file due to insufficient permissions - HTTP Error 500.19 - Internal Server Error - The requested page cannot be accessed because the related configuration data for the page is invalid."
Fig 1: Web App Error - Cannot read configuration file due to insufficient permissions
Resolution:
It resolved when we add read access to IIS_IUSRS group on web app folder.
Also, make sure iis features are on under “Application Development feature” from “Turn Windows Features on or Off”
Fig 2: Set Read access to IIS_IUSRS on Web App folder
References: