You may see “Access to the path is denied” error if the application is not able access to a path that is trying to read or write. This will show up as 401 Unauthorized error in IIS logs.
The error message:
Access to the path ‘C:\Windows\SysWOW64\inetsrv’ is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path ‘C:\Windows\SysWOW64\inetsrv’ is denied.
As the error message implies, the folder is not accessible. The check would be the Security permissions for the folder stated in the error message above. Your web application’s apppool identity should have permission to this folder. In my case, the error message referred to C:\Windows\SysWOW64\inetsrv folder.
If permissions assignment doesn’t work, I recommend enabling “32-bit Applications” for the application pool. Disabling Impersonation may help fixing this issue as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.