IIS7 – Cannot read configuration file due to insufficient permissions

The last time I intensively used IIS (Internet Information Services) was back in the year 2000 when I hosted a ASP site on the local Windows 2000 server. Since then, Apache has become my only friend in the web server world.

Fast forward to present day with the current job where Microsoft technology is heavily based on, it’s time for me to get back on track with “almost-everything” Microsoft.

Today, I tried to set up an Asp.net site on my local machine with IIS7, and I got the following error:

Config Error: Cannot read configuration file due to insufficient permissions
Config File: C:\Users\me\Documents\wwwroot\httpdocs\web.config

To fix this problem, we need to grant the read permission to IIS_IUSRS on ‘httdocs’ folder.

Credit: forums.asp.net

28 thoughts on “IIS7 – Cannot read configuration file due to insufficient permissions

  1. exactly the same boat, trying to get back up to speed on .NYET after almost ten years away. My first reaction is pure horror. It’s like stepping back in time somehow; reduced flexibility, crippled dynamic languages, and user interfaces that seem to be geared at low-end IT personnel rather than Software Engineers…

    • All I can say is good luck and wish you get back on track soon. As of this writing, I no longer have to use or maintain Windows system anymore. 🙂

  2. royal charlie says:

    Got this working alright but not based on suggestions above. My case is that am getting the 500 error running iis7 on a windows 2008 server in a domain. Just added a new user in the domain and basically allow read/execute access to the virtual directory or folder. Ensure that the virtual folder>basic settings> Connect As > Path credentials is set to a user with read/xecute access. You can test settings and both authentication and authorization should work. Cheers!

  3. Yeah, also a hybrid developer that has been mostly LAMP but getting back to MS for a single project.

    In my case, I had a added an application under the Default Web Site. The folder for the application indeed needed the IIS_IUSR permissions you suggested. Thx for the tip!

  4. Thanks for a clear, simple set of instructions on how to solve the problem. They were so easy to follow that in solving this problem, I ended up with a 401.3 error that I have to solve now. 😉 (Not your fault, though…a different error = progress).

  5. Ferdinand says:

    My asp file is not oppening ..errror is d same. Http 500 pleez help asap!!!html iz obv opening but asp isnt… I did oly d settings from control panel

  6. Sameel says:

    I found the solution 🙂

    1. Add IIS_IUSRS with Read permission on web.config
    2. Change IIS authentication method to BasicAuthentication
    3. Try, and it works!

    • Jezzrel says:

      highlight your default website, then under authentication click on open feature or simply double click to open thn from the list,select basic authentication and click on enable under actions.

  7. Some Person says:

    There should be a way to like this without having a wordpress account. This article was useful to me but I can’t easily like with without signing up for WordPress. I think more people should support Windows Live Authentication.

  8. Arvind Sharma says:

    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:\HostingSpaces\sunetbus\bhagyodaylogistics.in\wwwroot\web.config
    Requested URL http://www.bhagyodaylogistics.in:80/login.aspx
    Physical Path
    Logon Method Not yet determined
    Logon User Not yet determined
    Config Source

  9. Juan_Ligas says:

    if you are just testing the IIS tool, the best way to avoid this “denied access” problems is not to use the C:\Users folder.

  10. Thank you so much regarding giving us an update on this topic on your web-site.
    Please realise that if a fresh post appears or in the event that any adjustments occur on the current posting,
    I would be thinking about reading a lot more and learning how to
    make good use of those approaches you discuss. Thanks for your efforts and consideration of other men and women by making
    this web site available.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s