Tuesday, October 23, 2007
« Radiohead New Album "In Rainbows" - Sell... | Main | Forms Authentication AJAX-Style Login »

Problem: I get an "access denied" error message when trying to save some change done to a web application in the IIS manager on Vista.

Possible solution:
Windows Vista comes with a new version of IIS. One of the new things in IIS 7 is that it saves it's configuration in the .net web.config files (previous versions used the "IIS metabase", which is a bunch of files internal to the IIS configuration tool). This is an improvement because it simplifies deployment and versioning - all you need to do is edit an xml file, whereas the IIS metabase is configurable only using a special API.

Correction(following Eyal's comment): actually the IIS metabase is an xml file that can be directly edited.

So, why the "access denied"? If you're making an application-level (as opposed to machine-level) configuration, many times it's because your application's web.config file is not checked-out for edit in VS, and so it is read-only on disk. IIS manager cannot write to it and shows you the error.

More on IIS 7 at pashabitz.com:
How to setup a custom HttpHandler in IIS 7
Developing ASP.NET apps under II7 on Vista.

Want to join me as partner in a cool new startup?
Get in touch: pasha at cohai dot co

Bookmark and Share Tuesday, October 23, 2007 11:58:50 PM (Jerusalem Standard Time, UTC+02:00)  #    Comments [5]  
Tuesday, October 23, 2007 7:51:53 PM (Jerusalem Standard Time, UTC+02:00)
"whereas the IIS metabase is configurable only using a special API" - Actually, that's not true. There's even a setting which allows you to control whether direct changes to the metabase file are permitted or not: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e6c04028-7db3-4564-9912-04e82c52d5ca.mspx?mfr=true
Also the metabase file IIS 6 is an XML file too..
Still - that's a good post ;)
Eyal
Sunday, April 17, 2011 2:09:12 AM (Jerusalem Daylight Time, UTC+03:00)
J54LWQ HHIS I should have tuohhgt of that!
Sunday, April 17, 2011 8:57:59 PM (Jerusalem Daylight Time, UTC+03:00)
KCvk6o <a href="http://jyqtgwgvxpvo.com/">jyqtgwgvxpvo</a>
Saturday, April 23, 2011 8:41:14 PM (Jerusalem Daylight Time, UTC+03:00)
eDG3ef <a href="http://gfwzohojzneh.com/">gfwzohojzneh</a>
Sunday, April 24, 2011 11:39:03 PM (Jerusalem Daylight Time, UTC+03:00)
1HytXL , [url=http://qajgvukuuoka.com/]qajgvukuuoka[/url], [link=http://wzfmqhokxvll.com/]wzfmqhokxvll[/link], http://nedhpjounhvp.com/
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):