Applicationhost.config – cannot write configuration due to insufficient permission

asp.netiis-7web services

I am deploying a c# webservice application to a machine with: Windows 2008 R2, IIS 7.5, framework 4 but i am encountering this error while converting it to application

"There was an error while performing this operation
Details:
Filename:
\?c:\WIndows\system32\inetsrv\config\applicationhost.config
Error: Cannot write configuration file due to insufficient permission
"

I already deployed several webservice application on the same machine without this error before. I already added iis to have permission on the application i am deploying.
Can you guide me what went wrong?

Best Answer

I have seen this error occur when there is 0 bytes with hard drive c:\ where applications are installed. Freeing some space resolves the problem. I hope this helps someone.