File used by another process...?

  • Thread starter Thread starter Pankaj
  • Start date Start date
P

Pankaj

Hi All:
Is there a solution to below problem...without....restarting VS.Net 2003 so
may be sometimes restarting PC.
//
Cannot copy assembly 'MyClient.Client' to file
'C:\bin\Debug\MyClient.Client.dll'. The process cannot access the file
because it is being used by another process.

-Pankaj
 
Hi Fergus:

Yeah I understand that the dll is being used by other process.. but how do
you find out which process...?
Task Manager doesn't hint a thing about that
I tried to use ListDLLS from sysinternals.com but that doesn't help too ?
What do you use to figure it out ?
I have heard from more than one people...that VS.NET is sometimes using
this...file.
In this post also people have pointed that out.
I wonder like James did ..is this a Bug in VS.NET ?

-Pankaj
 
James:

I would remember to close explorer next time it occurs.... but my gut
feeling is that VS.Net uses this file and it seems like a bug to me
wonder...if MS has to say something about it ?

-Pankaj
 
There was a bug that would sometimes lock assemblies. The suspected cause
was assembly size. While i don't know if it was ever proven, when i had the
problem breaking the offending assembly up into 3 pieces (some code
remaining in itself, other pieces being split into other assemblies, it
forced me to modularlize abit more).
It also could have had to do with intellisense or the toolbox(i really don't
remember).
Also, as i recall but don't have any records to be sure, this bug was not
able to be fixed by vs.net 2003 rtm.

Some people ended up switching to a build system using nant, others split up
offending assemblies until they stopped causing trouble,
 
Back
Top