Acces is denied to folder in Temporary ASP.NET Files
-
I'm getting this error message when trying to request my web application: Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\root\6afc08f4\6af070d3" is denied. What could be the reason and how to solve that? Notice that I could not root\6afc08f4\6af070d3 folders in 'Temporary ASP.NET Files' folder. IIS is configured to point to the right directory and first page. Thanks for any help. Here is the stack trace: [UnauthorizedAccessException: Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\root\6afc08f4\6af070d3" is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String str) +393 System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632 System.IO.Directory.CreateDirectory(String path) +195 System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext context) +85 System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context) +97 System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile) +29 System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation() +91 System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +148 System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125 System.Web.UI.TemplateParser.GetParserCacheItem() +88 System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +171 System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43 System.Web.HttpApplicationFactory.Init(HttpContext context) +485 System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
-
I'm getting this error message when trying to request my web application: Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\root\6afc08f4\6af070d3" is denied. What could be the reason and how to solve that? Notice that I could not root\6afc08f4\6af070d3 folders in 'Temporary ASP.NET Files' folder. IIS is configured to point to the right directory and first page. Thanks for any help. Here is the stack trace: [UnauthorizedAccessException: Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\root\6afc08f4\6af070d3" is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String str) +393 System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632 System.IO.Directory.CreateDirectory(String path) +195 System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext context) +85 System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context) +97 System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile) +29 System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation() +91 System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +148 System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125 System.Web.UI.TemplateParser.GetParserCacheItem() +88 System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +171 System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43 System.Web.HttpApplicationFactory.Init(HttpContext context) +485 System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
When I have gotten these type of weird errors, I ususally make sure I have stopped and started the web site, I am sure you have already tried that. Stopped and started the app pool. If I am still getting it, I re-copy out the web site and make sure I delete all of the dlls in the bin directory before I copy the site out. Usually after those steps I won't get that error anymore. Hope that helps. Ben