So I have looked at similar questions to this such as here.
I cannot for the life of me figure out what is wrong. I am trying to setup an asp.net website. The website is stored on the D: Drive of the server. In IIS8 (windows server 2012) I point to the web folder where the web.config file is located. I have given the IIS_IUSRS group read access to the whole D: Drive as well as IUSR and Network Service which are part of the IIS_IUSRS group. I keep getting the error. I set up authentication as basic authentication. I have restarted the website. I have tried many things but have reached an impass. This is all on localhost. Does anyone have any more ideas as to why this may be happening? Could it possibly a configuration in my web config? This website is being ported from an IIS7 website. If you need specifics from my webconfig I can give you that however a lot of it contains sensitive information.
Error:
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 BeginRequest
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \?\D:\Applications\Portal\Portal.Web\web.config
Requested URL localhost:80/Portal
Physical Path D:\Applications\Portal\Portal.Web
Logon Method Not yet determined
Logon User Not yet determined
Request Tracing Directory C:\inetpub\logs\FailedReqLogFiles
Config Source: -1: 0: