Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Excel export
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 24-Apr-13 18:53pm

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

  Print Answers RSS
0 Dnyaneshwar@Pune 719
1 CHill60 315
2 Sergey Alexandrovich Kryukov 240
3 TheRealSteveJudge 190
4 Peter Leow 160
0 Sergey Alexandrovich Kryukov 9,193
1 OriginalGriff 6,786
2 Peter Leow 4,332
3 Zoltán Zörgő 3,809
4 Richard MacCutchan 2,672


Advertise | Privacy | Mobile
Web02 | 2.8.150128.1 | Last Updated 24 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100