Frustrating error message - "Cannot copy assembly 'abc' to"...

  • Thread starter Thread starter Dmitry
  • Start date Start date
D

Dmitry

Hello everybody -

I'm working on a WinForms project (MSDev 2003, C#, .NET 1.1) and every now
and then I get the following error message when I try to build it:

"Cannot copy assembly abc to file C:\...\abc.dll'. The process cannot
access the file because it is being used by another process." .

The only way to build the application in this case is to exit Dev Studio and
delete the binaries, then to restart the DevStudio and to build it again.
Any advise would be highly appreciated - this is a truly frustrating error.

Regards,
Dmitry.
 
I think you have multiple dependent projects in the same solution.

Don't create controls and then test them in the design time environment in
the same solution.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
A-ha, thanks. I'll try to separate the solutions of the control and the app.

Regards,
Dmitry.
 
In fact it's even weirder than that - often even after quitting the MSDev I
can't delete the binaries using the Win explorer.
I need to a) kill the explorer using the Task Manager; b) re-start the
explorer; c) delete the binaries. Something is more fundamentally wrong with
this error message...
 
Are you doing something like creating a shell extenision or some sort of
system DLL in your project. If so this is a typical symptom..

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
I don't think so... There is nothing exotic in my application. Just a basic
GUI accessing Oracle...
 
Back
Top