The process cannot access the file 'xxx' because it is being used by another process.

  •  10-01-2008, 9:34 AM

    The process cannot access the file 'xxx' because it is being used by another process.

    I have an Uploader control on my page, doing a simple openStream() on the FileUploaded event (not using ajax, just straight up postback) and I keep on getting this error:
     
    The process cannot access the file 'xxx' because it is being used by another process.
     
    Any ideas?
     
    Thanks!
     
    Stack Trace...
     

    [IOException: The process cannot access the file 'xxxxxxx' because it is being used by another process.]
     
    System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7712640
     
    System.IO.File.Delete(String path) +7572872
     
    CuteWebUI.i.Delete(Guid guid) +44
     
    CuteWebUI.UploaderBase.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +432
     
    System.Web.UI.Page.RaiseChangedEvents() +165
     
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485

    Regards,

    Moe
View Complete Thread