[C#] help file.close unhandled exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • halimunan
    New Member
    • Jun 2007
    • 7

    [C#] help file.close unhandled exception

    hi all,

    An unhandled exception of type 'System.IO.IOEx ception' occurred in mscorlib.dll

    Additional information: The process cannot access the file 'C:\Webdocs\xxx \xxx.xxx' because it is being used by another process.

    i`m doing an application to zip a file. this require system.io.file

    but i`m having problem as it cannot run because the error above..
    do i need to close the File.xxx as the library dont have the close function..

    can anyone help?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by halimunan
    hi all,




    i`m doing an application to zip a file. this require system.io.file

    but i`m having problem as it cannot run because the error above..
    do i need to close the File.xxx as the library dont have the close function..

    can anyone help?
    Make sure the file is not being used by another application?
    If you could post also the code that produced the exception ...

    Comment

    Working...