Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
HI

  In my ASP.net Application i did the excel Export from grid view by using EPPLUS DLL. before save that excel i want to delete the file excel if already exists in the folder.but first time the excel was Exported on the second time excel generation that excel file was not able to delete and shows the error as
"System.IO.IOException: The process cannot access the file 'F:\Test\\report.xlsx' because it is being used by another process".
and also i was not able to delete the excel as manually that time error was thrown as
"The action can't be completed because the file is open in webdev.webserver.exe".i m using vs2005 and sql 2005 with IIS 6.0

kindly do the needful to fix this error.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900