I am using the IIS 7 assembly Microsoft.Web.Administration to read and modify the MIME types for an ASP.NET site, and this works fine on Windows 2003 and 7, however on Windows Server 2012 (64 bit) I get the error "Filename: redirection.config Error:cannot read configuration file due to insufficent permissions".
This application is installed on multiple client sites where modifying the permissions on the system32 folder is not an option, and neither is disabling UAC. The application requires Windows Authentication, so switching to Basic Authentication is not an option. I have tried running the app pool as Network Service, Local System, ApplicationPoolIdentity and a domain account but get the same error.
I'm not sure why ASP.NET requires access to reditrection.config in order to access the functionality in the Microsoft.Web.Administration assembly.
Is it even possible to use Microsoft.Web.Administration on a 2012 Server with UAC enabled without having to modify system folder permissions or disabling UAC? or am I wrong in using Microsoft.Web.Administration for this function?
I had the same problem. The only solution was to give permission in "C:\Windows\System32\inetsrv\config" for user IIS_IUSRS. I could not solve otherwise.
Hope this helps.