472,989 Members | 3,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,989 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 1087
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...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.