IIS 7: error: lock violation on deleting Modules at Website level
Today while working on vista IIS 7 and I was trying to delete one of module named as CustomErrorModule for Default Web Site and immediate I was notified with this nice error.
And this seem to be happening only with Modules which are listed as Native . I was able to delete Managed module without any problem.Nothing was reported under system & application event viewer logs.
Solution was to go at Root level Modules configurations and select the required native module and Unlock it.
In IIS 7 Native Modules seem to be locked by default and same would be valid incase of appcmd tool.
C:\Windows\System32\inetsrv>appcmd unlock config /section:httpErrors
Unlocked section "system.webServer/httpErrors" at configuration path "MACHINE/WEBROOT/APPHOST".
See Ya!!!
Comments
Anonymous
May 10, 2009
PingBack from http://microsoft-sharepoint.simplynetdev.com/iis-7-error-lock-violation-on-deleting-modules-at-website-level/Anonymous
May 12, 2009
Thank you! I was having this same problem.Anonymous
May 13, 2009
Hi Tom, I really feel happy that it helped you! Thanks JasAnonymous
December 02, 2009
l need to desable asp.net l can not go tru and l forgot my passwordAnonymous
April 03, 2011
just what I was look for. thanks alot :-)