Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using C# 3.0 build a Web Application in same time i am Facing same Exception even we have Run The Project or Application.

the Exception occur in this web Application is in Load time or Execution time..Exception is.
The file or directory is corrupted and unreadable.

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.IO.IOException: The file or directory is corrupted and unreadable.


Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IOException: The file or directory is corrupted and unreadable.
]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7717448
System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +7542218
System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption) +37
System.IO.Directory.GetDirectories(String path) +14
System.Web.Compilation.StandardDiskBuildResultCache.FindSatelliteDirectories() +27
System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +115
System.Web.Compilation.BuildManager.Initialize() +238
System.Web.Compilation.BuildManager.InitializeBuildManager() +267
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +224

[HttpException (0x80004005): The file or directory is corrupted and unreadable.
]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897659
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259


this is exception when i Run this web Application..so Viewers Please give me Right solution of this Exception.thank you...
Posted

Hi,

Have a look here:
http://ola.kodar.se/2010/04/25/asp-net-system-io-ioexception-the-file-or-directory-is-corrupted-and-unreadable/[^]
You'll read this folder name: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root, but on my computer, the v2.0.50727 is v4.0.30319, so you need to find out yourself which folder to empty.
 
Share this answer
 
Delete files from this location

C:\Users\<user name="">\AppData\Local\Temp\Temporary ASP.NET Files\root\

Thanks
 
Share this answer
 
Comments
Deepu S Nair 29-Jan-15 2:20am    
Answering old questions adds nothing to the previous solution and is likely to attract
downvoting.
Rajesh waran 29-Jan-15 2:20am    
This is a very old question(nearly 2 years old). no need to answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900