applicationHost.config Error: Cannot write configuration file due to insufficient permissions with IIS shared configuration

In our case the server disk was full. We added addtional disk space and the problem is solved.


I have deleted existing applicationhost.config file from my solution and reloaded the solution again. Solution created new ApplicationHost.config file itself.

Its resolved my issue.


To unlock your dcom properties object, you just have 2 steps to perfom.

Step 1 - Grant you 'Full Control' on the 'Ahadmin.dll' :

  • Goto your IIS server and browse to folder 'c:\windows\system32\'
  • Find 'Ahadmin.dll' and right click on it to open properties box
  • Goto 'Security' tab and grant to your NT user 'Full control'
  • If you're not able to grant you 'Full control', goto the 'Owner' tab and add your NT user or an admin group that you're member and click 'Apply' And than return to the 'Security' tab to grant you 'Full control'

Step 2 - Grant you 'Full Control' on the registry key :

  • On the IIS server open 'Registry Editor' (Run command : regedit).
  • Place your cursor on the root in the left pane.
  • Open a find box and type 'ahadmin' and click find.
  • The registry will find a key in the right pane. Right click on the parent folder of this key and open properties box
  • Goto 'Security' tab and grant to your NT user 'Full control'
  • If you're not able to grant you 'Full control', goto the 'Owner' tab and add your NT user or an admin group that you're member and click 'Apply' And than return to the 'Security' tab to grant you 'Full control'

    You can now edit your dcom properties object

    If the dcom porperties object is still lock, just wait some minutes and try again.

    After that, you just have to follow the procedure here.