Re: TextStream.close problem



"AspProgrammer" <jdeckers@xxxxxxxxx> schrieb:
I'm writing a web application where i upload a file. then i open the
file use textstream. At the end of my application i close it by using
TextStream.close. But when i try to delete the file on my hard disk i
keep getting the error "file is being used by other program or person".
The only solution then is to restart iis and then delete the file.

Why isn't TextStream.close really closing my file??

Are you referring to the FSO's 'TextStream' object? I am just curious why you don't use the according classes from the 'System.IO' namespace.


--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


.



Relevant Pages

  • hard disk serial number
    ... i have aproblem in System.management namespace which use to get the serial ... "invalid class", mainly the class called ... "ManagementObjectSearcher" which retrieve all hard disk information. ...
    (microsoft.public.dotnet.general)
  • hard disk serial number
    ... i have aproblem in System.management namespace which use to get the serial ... "invalid class", mainly the class called ... "ManagementObjectSearcher" which retrieve all hard disk information. ...
    (microsoft.public.dotnet.framework.aspnet)
  • help plz hard disk serial number
    ... i have aproblem in System.management namespace which use to get the serial ... "invalid class", mainly the class called ... "ManagementObjectSearcher" which retrieve all hard disk information. ...
    (microsoft.public.dotnet.framework.aspnet.security)