FIX: You receive exception error messages when you use the StreamWriter.Flush () method or the StreamWriter.Close () method to access a file on a disk that has insufficient space in .NET Framework 1.1 (892544)
The information in this article applies to:
- Microsoft .NET Framework 1.1 Service Pack 1 (SP1)
- Microsoft .NET Framework 1.1
SYMPTOMSOn a computer that is running Microsoft .NET Framework 1.1, when you use the StreamWriter.Flush() method or the StreamWriter.Close() method to access a file on a disk that has insufficient space, you receive the following exception error message: System.IO.IOException: There is not enough space on the
disk.
After you free up space on the disk and then try to access the file again, you receive the following exception error message: System.IO.IOException: The process cannot
access the file "C:\outputTest.txt" because it is being used by another
process.
CAUSEThis problem occurs if the common language runtime (CLR) does not close the file handle after you receive the first exception error message. If the file handle does not close, you cannot access the file regardless of how much space is on the disk.RESOLUTIONA supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Service Pack that contains this hotfix. To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. Date Time Version Size File name
----------------------------------------------------------
24-Feb-2005 11:50 1.1.4322.2064 2,138,112 Mscorlib.dll
24-Feb-2005 11:50 10,912 Mscorlib.ldo
25-Feb-2005 03:50 1.1.4322.2064 2,519,040 Mscorsvr.dll
25-Feb-2005 03:51 1.1.4322.2064 2,506,752 Mscorwks.dll STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 4/7/2006 |
---|
Keywords: | kbQFE KBHotfixServer kberrmsg kbProgramming kbVS kbWindowsForms kbfix KB892544 kbAudDeveloper |
---|
|