IIS Configuration Error Error: Cannot write configuration file due to insufficient permissions
While deploying my custom asp.net application I found it hard to browse through few asp.net pages. I tried to enable directory browsing feature to locate pages. Selecting enabled after clicking on directory browsing gaves me following error
Error: Cannot write configuration file due to insufficient permissions
Looking at above issue I thought that may be I need to start my IIS as an administrator so I closed my IIS and start IIS console again as an administrator but above error remain as is.
I decided to go for some research over the internet and found an unbelievable solution. i.e. My web.conf file was readonly :D.
Error: Cannot write configuration file due to insufficient permissions
Looking at above issue I thought that may be I need to start my IIS as an administrator so I closed my IIS and start IIS console again as an administrator but above error remain as is.
I decided to go for some research over the internet and found an unbelievable solution. i.e. My web.conf file was readonly :D.
Saved me hours. Thank you.
ReplyDeleteYou nailed it, thanks!
ReplyDeleteThank you! Solved my problem :-)
ReplyDeletegreat! thank you!
ReplyDeletePerfect! Unfortunately, I had already spent 2+ hours before I came across this thread! As a side, the error message should simply state the file is read-only:-| Thanks.
ReplyDeleteI almost got frustrated with my IIS problem, until I found your blog .. thank you for sharing ..
ReplyDeleteGreat job. Me too had already spent about 2 hours on this before finding your solution. It's silly of me as I should have noticed it!
ReplyDeleteMy web.config was not read-only. But I solved it by taking away ownership from TrustedInstaller and giving it to the domain administrator, then giving the Administrators group full permissions on the web.config file.
ReplyDeletePerfect !!
ReplyDelete