Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have this problem with my IIS7.

C:\Users\vtortola.dk>%windir%\system32\inetsrv\appcmd.exe list site
ERROR ( message:Configuration error
Filename: redirection.config
Line Number: 0
Description: Cannot read configuration file due to insufficient permissions
. )

Every time I try to publish an ASP.NET app to my computer, I cannot use it because IIS cannot read the configuration file, and I don't know how to fix this problem.

I've found the file at C:\Windows\System32\inetsrv\config

An the permisions are for:

SYSTEM MyDomain/Me Administrators (MyPC\Administrators) TrustedInstaller

Is this correct?

Any idea?

Kind regards.

share|improve this question
add comment

1 Answer

Yes, you need to make sure that you run AppCmd.exe from an elevated command prompt, since otherwise you will not be running as Administrator.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.