I am getting following error while running my asp.net web application through VS2013.
System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0c9c5fe5\51acd19b' is denied.
FYI, I was getting some error earlier and to resolve that error I deleted all files inside "Temporary ASP.NET Files\root\" folder which caused above error.
I tried following:
- Restarted VS2013 using admin privilege!
- Added full permissions IIS_IUSRS on my web app folder - C:\Samples\ASP.NET\WebApp1
- Added full permissions IIS_IUSRS on my aspnet temp folder - C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root
Are any of the dlls in your solution marked as readonly?
Have they been checked out from source control?
Did you reboot after changing the permissions?
What is the identity of the Application Pool User, do they have access to the temp folder?
Is your web app impersonating another user at all?
Is your App doing anything on bootup, that could cause this?
Use SysInternals FileMon to see if another process is using it.