Access to the path 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\...\hash\hash.web' is denied.

Document ID : KB000049519
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Server Error in '/npc' Application.

Access to the path 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\npc\0264f7b4\19746443\hash\hash.web' 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\Microsoft.NET\Framework\v2.0.50727\TemporaryASP.NET Files\npc\0264f7b4\19746443\hash\hash.web' is denied.

Solution:

The most common cause of problems accessing this specific file involves the Indexing Service contending with ASP.NET, which results in the hash.web file becoming locked.

To fix this issue, disable the Indexing Service and then rename or delete the website temporary file directory (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\TemporaryASP.NET Files\npc for instance).