locking files during compiling...

  • Thread starter Thread starter Dmitri Shvetsov
  • Start date Start date
D

Dmitri Shvetsov

Hi All,

Did somebody have a problem compiling some solution in VS2003? I get the
error every time that some files are locked and are using by another
process. I repeat compiling again and again and finally the compilation can
be finished successfully after several tries. What can be a reason of that?
I turned off my antivirus software, no results. Maybe it's just a bug of the
VS2003? I installed the latest service pack for the Studio from the internet
and it's up-to-date now.

I attach below the little bit shorted message strings about this mistake. I
don't know, maybe the computer is too fast, maybe some other reason... But I
also know that several programmers around me are having these problems in
their PCs

I have no idea yet. So, if somebody has an idea how to solve it please let
me know.

Regards,
Dmitri.

P.S. Originally I get in several times more messages, I just compressed
these strings to insert here.

----------------------------------------------------------------------------
----

Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'c:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
The dependency 'xxx' could not be found.
The dependency 'xxx' could not be found.
The file 'xx.dll' cannot be copied to the run directory. The process cannot
access the file because it is being used by another process.
The file 'xxx.exe' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

etc.
 
Dmitri,

I got this error many times in VS .NET 2002. Seems to be a feature of the
IDE and this has nothing to do with anti-virus software. I usually just
re-start the IDE to get rid of this errors.
 
we have this problem as well although restarting the ide doesn't help
the problem is always with a class library project and the solution is to
delete the lib and obj directories for this project and then rebuild the
entire solution

Dmitriy Lapshin said:
Dmitri,

I got this error many times in VS .NET 2002. Seems to be a feature of the
IDE and this has nothing to do with anti-virus software. I usually just
re-start the IDE to get rid of this errors.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

Dmitri Shvetsov said:
Hi All,

Did somebody have a problem compiling some solution in VS2003? I get the
error every time that some files are locked and are using by another
process. I repeat compiling again and again and finally the compilation can
be finished successfully after several tries. What can be a reason of that?
I turned off my antivirus software, no results. Maybe it's just a bug of the
VS2003? I installed the latest service pack for the Studio from the internet
and it's up-to-date now.

I attach below the little bit shorted message strings about this
mistake.
I
don't know, maybe the computer is too fast, maybe some other reason...
But
I
also know that several programmers around me are having these problems in
their PCs

I have no idea yet. So, if somebody has an idea how to solve it please let
me know.

Regards,
Dmitri.

P.S. Originally I get in several times more messages, I just compressed
these strings to insert here.

--------------------------------------------------------------------------
--
----

Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'c:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
The dependency 'xxx' could not be found.
The dependency 'xxx' could not be found.
The file 'xx.dll' cannot be copied to the run directory. The process cannot
access the file because it is being used by another process.
The file 'xxx.exe' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

etc.
 
I have a general question to those who have problems with file locking. What
Windows do you use? XP? When I was working under 2000 I didn't know about
these problems at all. When I started to use XP I've got a lot of file
sharing problems during compilation. I suspect that XP has this problem
instead of VS.

Any opinion yet?

Regards,
Dmitri.

Dmitriy Lapshin said:
Dmitri,

I got this error many times in VS .NET 2002. Seems to be a feature of the
IDE and this has nothing to do with anti-virus software. I usually just
re-start the IDE to get rid of this errors.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

Dmitri Shvetsov said:
Hi All,

Did somebody have a problem compiling some solution in VS2003? I get the
error every time that some files are locked and are using by another
process. I repeat compiling again and again and finally the compilation can
be finished successfully after several tries. What can be a reason of that?
I turned off my antivirus software, no results. Maybe it's just a bug of the
VS2003? I installed the latest service pack for the Studio from the internet
and it's up-to-date now.

I attach below the little bit shorted message strings about this
mistake.
I
don't know, maybe the computer is too fast, maybe some other reason...
But
I
also know that several programmers around me are having these problems in
their PCs

I have no idea yet. So, if somebody has an idea how to solve it please let
me know.

Regards,
Dmitri.

P.S. Originally I get in several times more messages, I just compressed
these strings to insert here.

--------------------------------------------------------------------------
--
----

Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'c:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
The dependency 'xxx' could not be found.
The dependency 'xxx' could not be found.
The file 'xx.dll' cannot be copied to the run directory. The process cannot
access the file because it is being used by another process.
The file 'xxx.exe' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

etc.
 
Back
Top