473,394 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Visual Studio .NET Bug

We are experiencing a debilitating VS.NET bug, in both 2002 and 2003.
We have solution with about 20 projects. 90% of the time, when we
rebuild, we get one or more errors saying "Cannot copy assembly 'xxx'
to file 'yyy'. The process cannot access the file because it is being
used by another process."

Sometimes, waiting 30 seconds makes this go away. Sometimes, we have
to exit and restart VS.NET. Sometimes, we have to reboot Win2k.

I have seen this bug posted MANY times in Google, and on GotDotNet.
No uSoft engineer has responded.

What gives, Microsoft? Does anyone know how to fix this?
Jul 21 '05 #1
7 1295
Check your references. Have you set Copy Local to True?

HTH;
Eric Cadwell
http://www.origincontrols.com
Jul 21 '05 #2
> Have you set Copy Local to True?

I experience this problem intermittently. I have local copy set to true on
the references. Should this be the case?

I have all my projects set to build their executables to a single directory
as they form part of the same application.

Thanks for the help,

Trev.

"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:e2***************@TK2MSFTNGP11.phx.gbl...
Check your references. Have you set Copy Local to True?

HTH;
Eric Cadwell
http://www.origincontrols.com

Jul 21 '05 #3
If your building a large solution with redundant references there's a chance
that the file could still be in use when it tries to copy it in again. This
results in the error.

Microsoft is recommending that you build to individual output directories.
http://support.microsoft.com/default...NoWebContent=1

You could then set up a script to copy them to a common folder once they are
built.

Also note that they recommend using project references.

HTH;
Eric Cadwell
http://www.origincontrols.com
Jul 21 '05 #4
use the project reference would resolve the problem.
-----Original Message-----
If your building a large solution with redundant references there's a chancethat the file could still be in use when it tries to copy it in again. Thisresults in the error.

Microsoft is recommending that you build to individual output directories.http://support.microsoft.com/default.aspx? scid=http://support.microsoft.com:80/support/kb/articles/q3
13/5/12.ASP&NoWebContent=1
You could then set up a script to copy them to a common folder once they arebuilt.

Also note that they recommend using project references.

HTH;
Eric Cadwell
http://www.origincontrols.com
.

Jul 21 '05 #5
> Microsoft is recommending that you build to individual output directories.

99% of the time it works ok. Closing and reopening the IDE isn't that much
of a pain (yet!)

Also note that they recommend using project references.
Yep. I'm using project references.

Thanks for the help.

Trev.
"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:uE**************@TK2MSFTNGP09.phx.gbl... If your building a large solution with redundant references there's a chance that the file could still be in use when it tries to copy it in again. This results in the error.

Microsoft is recommending that you build to individual output directories.
http://support.microsoft.com/default...NoWebContent=1
You could then set up a script to copy them to a common folder once they are built.

Also note that they recommend using project references.

HTH;
Eric Cadwell
http://www.origincontrols.com

Jul 21 '05 #6
I have this problem frequently on my project as well. I believe part of the
problem is that I'm creating controls and using them on forms (or other
controls) in the same project. I believe VisualStudio isn't unloading the
used controls from the designer once they're loaded, meaning that I have to
shut it down frequently. I sure hope they fix it at some point - I kinda
miss "real" dll's that unloaded properly.

Jason Dorie

"Codemonkey" <hu*********@hotmail.com> wrote in message
news:uk*************@TK2MSFTNGP10.phx.gbl...
Microsoft is recommending that you build to individual output directories.

99% of the time it works ok. Closing and reopening the IDE isn't that much
of a pain (yet!)

Also note that they recommend using project references.


Yep. I'm using project references.

Thanks for the help.

Trev.
"Eric Cadwell" <ec******@ns.insight.com> wrote in message
news:uE**************@TK2MSFTNGP09.phx.gbl...
If your building a large solution with redundant references there's a

chance
that the file could still be in use when it tries to copy it in again.

This
results in the error.

Microsoft is recommending that you build to individual output

directories.

http://support.microsoft.com/default...NoWebContent=1

You could then set up a script to copy them to a common folder once they

are
built.

Also note that they recommend using project references.

HTH;
Eric Cadwell
http://www.origincontrols.com


Jul 21 '05 #7
Thanks to all responses.

We have been using project references since the beginning. We have
also been building to separate output directories.

We **had** "Copy Local" set to True, and changed it to False. Same
problems.

If I run "ProcessExplorer", another wonderful tool from
sysinternals.com, I can determine that devenv.exe has a handle to the
file that devenv.exe complains it can't copy to because "another"
process has the file locked.

The problem is the same in 2003.

We have a Solution with about 9 C# class library assemblies, 1 managed
C++ class library assembly, and 2 executables. Ever since we added
the managed C++ project, we've had these problems. But they were
always confined to the MC++ project DLL, and building 2 or more times
would succeed. Now, the locked DLL has migrated to include most all
of the C# assemblies, also.

I saw something (somewhere) indicating that Intellisense might have
the DLL open, and might not be letting it go.

Thanks for any more suggestions.

john.
Jul 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: angelag | last post by:
I am currently taking a college course in Visual Basic.Net and I am a beginner. I bought Visual Studio.Net 2003 to do my homework at home. I built my first project and e-mailed it to myself at...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
1
by: Daniel A. Thomas | last post by:
License required Maybe you don't have this but have one of the products that qualifies for the upgrade such as ... Visual Studio .NET 2003 Professional Visual Studio .NET 2003 Professional...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
0
by: marathoner | last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio 2005. I am getting compiler errors involving the VS2005's platform SDK. When I removed directory references to that SDK,...
2
by: Cramer | last post by:
So, what is the relationship between Visual Studio and Visual Web Developer. I find a lot of documentation on MSDN that presents Visual Web Developer as it's own stand-alone product (which I'd...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
3
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.