Home
%3CLINGO-SUB%20id%3D%22lingo-sub-314602%22%20slang%3D%22en-US%22%3ESolution%20for%20%E2%80%9CAccess%20to%20the%20path%20inetsrv%20is%20denied%E2%80%9D%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-314602%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20may%20see%20%E2%80%9CAccess%20to%20the%20path%20is%20denied%E2%80%9D%20error%20if%20the%20application%20is%20not%20able%20access%20to%20a%20path%20that%20is%20trying%20to%20read%20or%20write.%20This%20will%20show%20up%20as%20401%20Unauthorized%20error%20in%20IIS%20logs.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20error%20message%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3EAccess%20to%20the%20path%20%E2%80%98C%3A%5CWindows%5CSysWOW64%5Cinetsrv%E2%80%99%20is%20denied.%3CBR%20%2F%3E%3CSTRONG%3EDescription%3A%3C%2FSTRONG%3E%20An%20unhandled%20exception%20occurred%20during%20the%20execution%20of%20the%20current%20web%20request.%20Please%20review%20the%20stack%20trace%20for%20more%20information%20about%20the%20error%20and%20where%20it%20originated%20in%20the%20code.%20%3CBR%20%2F%3E%3CSTRONG%3EException%20Details%3A%3C%2FSTRONG%3E%20System.UnauthorizedAccessException%3A%20Access%20to%20the%20path%20%E2%80%98C%3A%5CWindows%5CSysWOW64%5Cinetsrv%E2%80%99%20is%20denied.%26nbsp%3B%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20638px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65981iCAAE50EFBB6A0B6A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22access-denied.png%22%20title%3D%22access-denied.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EBackground%3C%2FFONT%3E%3CBR%20%2F%3EAs%20the%20error%20message%20implies%2C%20the%20folder%20is%20not%20accessible.%20The%20check%20would%20be%20the%20Security%20permissions%20for%20the%20folder%20stated%20in%20the%20error%20message%20above.%20Your%20web%20application%E2%80%99s%20apppool%20identity%20should%20have%20permission%20to%20this%20folder.%20In%20my%20case%2C%20the%20error%20message%20referred%20to%20C%3A%5CWindows%5CSysWOW64%5Cinetsrv%20folder.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EHow%20to%20solve%20%E2%80%9CAccess%20to%20the%20path%20is%20denied%E2%80%9D%20errors%3CBR%20%2F%3EOpen%20IIS%20Manager%3C%2FLI%3E%0A%3CLI%3EGo%20to%20%E2%80%9CServer%20%26gt%3B%20Application%20pools%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ENote%20the%20value%20in%20%E2%80%9CIdentity%E2%80%9D%20column%20for%20the%20application%20pool%20you%20are%20using%3C%2FLI%3E%0A%3CLI%3EGo%20to%20one%20folder%20above%20(%3CCODE%3EC%3A%5CWindows%5CSysWOW64%3C%2FCODE%3E)%3C%2FLI%3E%0A%3CLI%3ERight%20click%20and%20select%20%E2%80%9CProperties%E2%80%9D%20for%20the%20folder%20(%3CCODE%3Einetsrv%3C%2FCODE%3E)%3C%2FLI%3E%0A%3CLI%3EGive%20%E2%80%9CFull%20Control%E2%80%9D%20permission%20to%20the%20application%20pool%20identity%20(In%20my%20case%2C%20I%20gave%20permission%20to%20%E2%80%9CNetwork%20Service%E2%80%9D)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EIf%20permissions%20assignment%20doesn%E2%80%99t%20work%2C%20I%20recommend%20enabling%20%E2%80%9C32-bit%20Applications%E2%80%9D%20for%20the%20application%20pool.%20Disabling%20Impersonation%20may%20help%20fixing%20this%20issue%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-314602%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EYou%20may%20see%20%E2%80%9CAccess%20to%20the%20path%20is%20denied%E2%80%9D%20error%20if%20the%20application%20is%20not%20able%20access%20to%20a%20path%20that%20is%20trying%20to%20read%20or%20write.%20This%20will%20show%20up%20as%20401%20Unauthorized%20error%20in%20IIS%20logs.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

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. 

access-denied.png

 

Background
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.

 

  1. How to solve “Access to the path is denied” errors
    Open IIS Manager
  2. Go to “Server > Application pools”
  3. Note the value in “Identity” column for the application pool you are using
  4. Go to one folder above (C:\Windows\SysWOW64)
  5. Right click and select “Properties” for the folder (inetsrv)
  6. Give “Full Control” permission to the application pool identity (In my case, I gave permission to “Network Service”)

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.