2
votes

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?

2

2 Answers

6
votes

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.

0
votes

I got this error when the IIS had a "Shared Configuration" set on a clustered IIS.

Before you do the solution get the password and encryption key for the shared config.

To solve the problem I unchecked "Enable shared configuration" made my changes and checked it again, adding username, password and encryption key.

Regards Martin