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

64

Before everyone reads this, I just want to say that i know that there are related threads out there, but I have either tried them or do not understand. With that being said here goes nothing...

I am trying to get a MVC Web App running in my IIS. Unfortunately, I am absolutely stuck on this error:

HTTP Error 500.19 - Internal Server Error

The Request page cannot be accessed becasue the related configuration data for 
the page is invalid.

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: \foo\web.config
Request URL: http://localhost/WEBAPP
Logon Method: Not yet determined
Logon User: Not yet determined

Config Source
-1:
0:

I am not quite sure what else to do. I have also tried giving read permission to the web.config file and that did not seem to work.

If anyone has any information or would be able to help me work through this it would be much appreciated. Thanks!

c#
asp.net-mvc-3
iis-7
asked on Stack Overflow Sep 4, 2013 by scapegoat17 • edited Sep 4, 2013 by scapegoat17

10 Answers

107

In my case I needed to install the IIS URL rewrite module 2.0 because it is being used in the web.config and this was the first time running site on new machine.

answered on Stack Overflow Aug 14, 2014 by Josh D • edited Jan 5, 2016 by Pankaj Parkar
30

On this msdn blog: Troubleshooting HTTP 500.19 Errors in IIS 7 in sceanrio 8 for error code 0x80070005 (E_ACCESSDENIED - General access denied error) it says:

Grant Read permission to the IIS_IUSRS group ...
.... the worker process identity (and/or the IIS_IUSRS group) needs at least Read access to the directory so that it can check for a web.config file in that directory.

answered on Stack Overflow Sep 4, 2013 by rene • edited Sep 25, 2014 by rene
19

I fixed this by restarting VS.

I had opened a config file in another instance of VS and apparently sth went nuts...

answered on Stack Overflow Jan 24, 2014 by user2173353 • edited Oct 29, 2015 by user2173353
17

Please follow these step

  1. Go to Control Panel
  2. Go to Programs and Features
  3. Turn Window Feature on or off
  4. Go to Internet Information Service node
  5. Follow World wide web Services
  6. Then Please Check Application Development Feature
  7. Then Please check all Node Specially Asp or Application Framework Like Asp.net 3.5 or ASP.NET 4.5 whatever you have
answered on Stack Overflow May 19, 2017 by Amit Yadav • edited May 19, 2017 by Amit Yadav
7

**Enable** All Features under **Application Development Features** and Refresh the **IIS**

Goto Windows Features on or Off . Enable All Features under Application Development Features and Refresh the IIS. Its Working

answered on Stack Overflow Jul 20, 2018 by Aravind Rengasamy
2

I had a sub folder named web.config renaming this folder resolved the issue

answered on Stack Overflow Mar 10, 2015 by Thomas
1

My issue is that I accidentally installed another site as the default site instead of the IIS default (by opening another project.) I had to remove the default site and repoint it to the default location C:\inetpub\wwwroot using my domain login as the user to bypass with then just reopened my project that I was trying to run (the one showing this error) and it was all honky dorry

answered on Stack Overflow Dec 4, 2013 by Serj Sagan
1

I was accessing the project from inside a Virtual Machine - sharing the project folder from the host OS (Windows 10). After trying many of the solutions, and even ensuring the permissions for the IIS_IUSRS are given, still I could solve this.

Eventually, I copied this folder from the host, onto a path on the guest OS, and now I can properly run that same ASP.NET project without ado. But, I did also go ahead and give the IIS_IUSRS group full control over this new dir as well... maybe that's not really necessary in this case? I'm lazy to test that ATM.

answered on Stack Overflow May 18, 2016 by nemesisfixx
0

If Folder getting from other, and host file is already generated on ProjectName\.vs\config folder, then it conflicts with a new one and gets this error.
So delete host file from ProjectName\.vs\config and restart project once again. It was worked for me

answered on Stack Overflow Nov 30, 2018 by shruti Thakker • edited Nov 30, 2018 by Gihan Saranga Siriwardhana
0

In my case, Server had lower version framework than your application. installed latest version framework and it fixed this issue.

answered on Stack Overflow Jan 22, 2019 by PMC Karur

User contributions licensed under CC BY-SA 3.0