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

  • Thread starter Thread starter Ponnurangam
  • Start date Start date
P

Ponnurangam

Hi,

I have a Web page that displays an image.

The image has three buttons at the bottom.

I have to delete the image on clicking of one of the button.

But when I try to delete the image in my code, I am getting the following
exception

Sytem.IO: The process cannot access the file because the file is being is
used be another process

Any help would be appreciated

Thanks

Ponnurangam
 
When you open a file, it is locked. When you close it, it is unlocked. If an
app opens a file and doesn't close it, well, you know the result. You
probably need to (1) Shut down Visual Studio and restart it, and (2) Find
where you're not closing a file in your code and fix it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
Back
Top