Posted on: 5/23/2011 9:30:38 AM | Views : 1194

hi,
    I am creating .zip onbutton click and download (save as) it.
My code is working fine, But some time it is sowing Error -
"*** file is being used by another process, Please try after sometime." 
*** file also created dynamically and its included in .zip.
Code on Button_Click
protected void btnCreateSCORM_Click(object sender, EventArgs e) { string scormPath = "~/SCORM Packages/"; int courseID = 1334; scorm sc = new scorm(); sc.scormManage(courseID); GC.Collect(); string serverPath = Server.MapPath(scormPath); //create Zip File courseID = 1334; //43 scormPath = "~/SCORM Packages/"; LMS.ZipUtil.ZipFiles(serverPath + "/" + courseID, serverPath + "/" + courseID + ".zip", ""); SaveAtClientSidePopup(serverPath + courseID + ".zip"); GC.Collect(); ...

Go to the complete details ...