473,385 Members | 1,359 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,385 software developers and data experts.

IDE Locking Dependant files

Hi,

I have a solution in VS.Net 2003 containing 2 projects - the main exe
project and a dll project.
The exe is dependant on the dll, and this is specified in the project
options, and the build order is correct - dll first then exe.

However, when I try to build the solution the build fails with the
message - "The file 'EfacsDataAccess.dll' cannot be copied to the run
directory. The process cannot access the file because it is being used
by another process."

The other process in question is the Visual Studio IDE!!!

This appears to be a major bug in the IDE, as it shouldn't really need
to have this file locked, and if it does it should release it before
trying to build it!

Has anyone else seen this, and has anyone got a solution that doesn't
involve closing the IDE?

Thanks.

Paul
Jul 22 '05 #1
3 1099
Yes, We've had the same issue.. and it's a major pain in the butt. The best
way to handle that I've found it is to not include the dll project in the
main project's solution, but have it in another solution and have it already
built.

A small amount of good news is that vs 2005 doesn't have the issue.. but of
course you'll have to upgrade everything including the .net framework and
Windows installer (to 3.0). Dev studio 8 does make the managed / unmanaged
smoother (no vcclrit.h hoops).

Good luck. Maybe someone else will know of a better workaround.
Jul 22 '05 #2

Thanks.

Apparently this is a well known issue, and affects all versions of
VS.Net 2002 / 2003. After a bit of searching I found complaints about
this all over the place.

Microsoft recognise it as a confirmed bug, and fixed it in October 2004,
but the patch is only available on request!

Check out these:

http://support.microsoft.com/default...b;en-us;313512
http://support.microsoft.com/default...b;en-us;887818
This patch should be released as a public download, as it is a major flaw.
Paul

GBullock wrote:
Yes, We've had the same issue.. and it's a major pain in the butt. The best
way to handle that I've found it is to not include the dll project in the
main project's solution, but have it in another solution and have it already
built.

A small amount of good news is that vs 2005 doesn't have the issue.. but of
course you'll have to upgrade everything including the .net framework and
Windows installer (to 3.0). Dev studio 8 does make the managed / unmanaged
smoother (no vcclrit.h hoops).

Good luck. Maybe someone else will know of a better workaround.

Jul 22 '05 #3
Paul,

Just had the same problem myself, called Microsoft and received the patch.
It seems to have solved the problem just fine. If you call, just ask for the
fix for the KB Article 887818 that you mention.

-Rob
"Paul Cheetham" wrote:

Thanks.

Apparently this is a well known issue, and affects all versions of
VS.Net 2002 / 2003. After a bit of searching I found complaints about
this all over the place.

Microsoft recognise it as a confirmed bug, and fixed it in October 2004,
but the patch is only available on request!

Check out these:

http://support.microsoft.com/default...b;en-us;313512
http://support.microsoft.com/default...b;en-us;887818
This patch should be released as a public download, as it is a major flaw.
Paul

GBullock wrote:
Yes, We've had the same issue.. and it's a major pain in the butt. The best
way to handle that I've found it is to not include the dll project in the
main project's solution, but have it in another solution and have it already
built.

A small amount of good news is that vs 2005 doesn't have the issue.. but of
course you'll have to upgrade everything including the .net framework and
Windows installer (to 3.0). Dev studio 8 does make the managed / unmanaged
smoother (no vcclrit.h hoops).

Good luck. Maybe someone else will know of a better workaround.

Jul 22 '05 #4

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

Similar topics

3
by: Brian van den Broek | last post by:
Hi all, I'm just starting to employ unit testing (I'm using doctest), and I am uncertain how to handle writing tests where the behaviour being tested is dependant on whether certain file paths...
2
by: Scott Bryce | last post by:
I am creating a CGI application in Perl that uses an Access database. It will be hosted on an NT server. I have used flat file DBMs (tied hashes) on UNIX servers, but I am not familiar with how...
15
by: z. f. | last post by:
Hi, i have an ASP.NET project that is using a (Class Library Project) VB.NET DLL. for some reason after running some pages on the web server, and trying to compile the Class Library DLL, it...
0
by: alex | last post by:
I have few web pages that allow to upload, delete, etc images (.jpg, ..bmp, .gif) Once the page is doen working with file thru Bitmap class I close file handles as: Bitmap bmp = new...
3
by: Paul Cheetham | last post by:
Hi, I have a solution in VS.Net 2003 containing 2 projects - the main exe project and a dll project. The exe is dependant on the dll, and this is specified in the project options, and the build...
5
by: Adrian | last post by:
Is there a way to lock records and/or files in multi user application, using C#? Adrian.
15
by: Matt Brandt | last post by:
I am trying to get multiple threads to lock specific regions of a file. However, since each thread has the same PID, it appears that a lock by one thread does not block another thread from the same...
7
dlite922
by: dlite922 | last post by:
I need to do some sort of Locking mechanism at interface level, instead of DB Level. I know how MySQL table locking works, but that won't work in my scenerio. Requirements: When someone is...
3
by: HugoVallejo | last post by:
Hi everyone. I've created an ASP.NET web site which uses a .NET assembly to read/write operations using an odbc driver. When a connection to the odbc database is made locking files are created, when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.