Click here to Skip to main content
11,494,851 members (65,950 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 ASP.NET
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 27-Dec-12 3:13am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Delete files from this location

C:\Users\\AppData\Local\Temp\Temporary ASP.NET Files\root\

Thanks
  Permalink  
Comments
Deepu S Nair at 29-Jan-15 2:20am
   
Answering old questions adds nothing to the previous solution and is likely to attract
downvoting.
Rajesh waran at 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)

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 Sergey Alexandrovich Kryukov 350
2 CHill60 318
3 Sascha Lefèvre 280
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,297
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,864
3 Maciej Los 3,412
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 29 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100