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 (5)

Cancel reply

  1. Tom says:

    Thank you!  I was having this same problem.

  2. jaskis says:

    Hi Tom,

    I really feel happy that it helped you!



  3. eddie says:

    l need to desable asp.net l can not go tru and l forgot my password

  4. Grant says:

    just what I was look for. thanks alot 🙂

Skip to main content