System.UnauthorizedAccessException: Filename: redirection.config

If you see this error when activating a feature which makes use of the Microsoft.Web.Administration namespace, and the account you are using to activate this feature does not have permissions to C:\Windows\System32\inetsrv\config, chances are, you will see this error.

The fix – give that account access, or use a higher-privileged account.

If there are other solutions out there that people have come into, please let me know, I would love to hear them.

%d bloggers like this: