File in use error

  • Thread starter Thread starter Lee Swanson
  • Start date Start date
L

Lee Swanson

Hi,

I have a fairly large visual studio.net solution made up of about 8
projects. I needed to update a usercontrol in one of these projects, but
when I tried to open it I got the error 'The process cannot access the file
because it is being used by another process.". This error also stopped me
from compiling.

I tried everything to open this file. Restarting the server, recreating my
solution, copying the files, renaming them and then trying to open, deleting
the bin directories.

It was only happening for that file - I could open other controls. I then
decided I would create a new control and and then copy the code from the
other one (which i could open when copied to my local machine). The trouble
is, once I created the new control, I got the same error on that file!.

I can create controls in other directories, just not this particular one.

Has anyone had this problem? It is extremely frustrating.

Thanks,
Lee.
 
I managed to create a file in a different directory, then copy it into the
directory I was working on. This was fine for a little while, until I
started getting errors saying that I needed to check the file out. Not only
was it not checked in, we dont have source safe installed!!

After closing the file and trying to open it again I get my old 'in use by
another process' error again.

I feel my rage consuming me.
 
One trick u could try is open the task manager and kill the aspnet worker.
The other is open iis and restart it by right clicking and choosing restart.
Always worked for me.
 
Back
Top