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.
28 thoughts on “IIS7 – Cannot read configuration file due to insufficient permissions”
I see apache structure invade IIS
I can’t find the IIS_IUSRS,httpdocs folder
welcome back! 😉
thanks much needed.
Thank you! Just what I was looking for.
Thank you.I was searching for this exactly
Thanks in advance. Very simple and very clear.
Great! Short and to the point! Very helpful blog post, many thanks!
I’m glad to see that this post could help a few people who encountered this error for the first time.
Well I got this problem.. says just that.. I have given permission.. on all files NOW.. 😛
still does not work.. Please guys need some help!
Jesper, did you apply the permission to the main directory too?
Anyway, I can’t test anything now. I don’t use Windows anymore. 😦
I added the permission full control for IISUser but still getting the same error
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. 🙂
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!
THANK YOU THANK YOU THANK YOU!!!!!!!!
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!
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).
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
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!
Change IIS authentication method to BasicAuthentication
where to change this?
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.
It helped. thanks.
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.
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:\HostingSpaces\sunetbus\bhagyodaylogistics.in\wwwroot\web.config
Requested URL http://www.bhagyodaylogistics.in:80/login.aspx
Logon Method Not yet determined
Logon User Not yet determined
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.
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.
For most recent information you have to go to see web and on the web
I found this website as a best site for most up-to-date updates.