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

"The process cannot access the file because it is being used by another process"

I am using VS.Net 2003 on Windows 2003 Server (standard edition) and I am
getting "The process cannot access the file because it is being used by
another process" on DLL's in a VS.Net solution.

I have made sure all the dependancies and the build order is correct but the
actually instance of VS.Net (devenv.exe) is LOCKING THE DAM DLL'S IT IS
TRYING TO BUILD. ?????

I have used Process Explorer from sysinternals.com to confirm this.

VS.Net started this last week and is now doing it with 2 of my projects in
my solution??????

Any one got any ideas?????

The solution does contain 2 DLL's that are in the GAC but are not causing
the issue and are not the DLL's getting locked. 1 DLL that is getting locked
has been registered as a COM+ service, but even when this is deleted it
still locks the dam DLL.

I have turned of Index Server as well and this has not help either

Anyone any idea before I throw the ******* machine out the *******
window....
Cheers

Ollie
Nov 15 '05 #1
4 13212
http://support.microsoft.com/default...microsoft.com:
80/support/kb/articles/q313/5/12.ASP&NoWebContent=1

Ollie

"Earth Worm Jim" <sdd> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl...
I am using VS.Net 2003 on Windows 2003 Server (standard edition) and I am
getting "The process cannot access the file because it is being used by
another process" on DLL's in a VS.Net solution.

I have made sure all the dependancies and the build order is correct but the actually instance of VS.Net (devenv.exe) is LOCKING THE DAM DLL'S IT IS
TRYING TO BUILD. ?????

I have used Process Explorer from sysinternals.com to confirm this.

VS.Net started this last week and is now doing it with 2 of my projects in
my solution??????

Any one got any ideas?????

The solution does contain 2 DLL's that are in the GAC but are not causing
the issue and are not the DLL's getting locked. 1 DLL that is getting locked has been registered as a COM+ service, but even when this is deleted it
still locks the dam DLL.

I have turned of Index Server as well and this has not help either

Anyone any idea before I throw the ******* machine out the *******
window....
Cheers

Ollie

Nov 15 '05 #2
And Yes I do copy all my DLL's to a common folder....

And Yes I realise this probably the problem, but WOW what a problem that is.
Not all of us are writing "Hello World" applications.......

"Earth Worm Jim" <sdd> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl...
I am using VS.Net 2003 on Windows 2003 Server (standard edition) and I am
getting "The process cannot access the file because it is being used by
another process" on DLL's in a VS.Net solution.

I have made sure all the dependancies and the build order is correct but the actually instance of VS.Net (devenv.exe) is LOCKING THE DAM DLL'S IT IS
TRYING TO BUILD. ?????

I have used Process Explorer from sysinternals.com to confirm this.

VS.Net started this last week and is now doing it with 2 of my projects in
my solution??????

Any one got any ideas?????

The solution does contain 2 DLL's that are in the GAC but are not causing
the issue and are not the DLL's getting locked. 1 DLL that is getting locked has been registered as a COM+ service, but even when this is deleted it
still locks the dam DLL.

I have turned of Index Server as well and this has not help either

Anyone any idea before I throw the ******* machine out the *******
window....
Cheers

Ollie

Nov 15 '05 #3
What do you mean with:
when this is deleted it still locks the dam DLL.
what process is holding the file locked?

Willy.
"Earth Worm Jim" <sdd> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl...
I am using VS.Net 2003 on Windows 2003 Server (standard edition) and I am
getting "The process cannot access the file because it is being used by
another process" on DLL's in a VS.Net solution.

I have made sure all the dependancies and the build order is correct but
the
actually instance of VS.Net (devenv.exe) is LOCKING THE DAM DLL'S IT IS
TRYING TO BUILD. ?????

I have used Process Explorer from sysinternals.com to confirm this.

VS.Net started this last week and is now doing it with 2 of my projects in
my solution??????

Any one got any ideas?????

The solution does contain 2 DLL's that are in the GAC but are not causing
the issue and are not the DLL's getting locked. 1 DLL that is getting
locked
has been registered as a COM+ service, but even when this is deleted it
still locks the dam DLL.

I have turned of Index Server as well and this has not help either

Anyone any idea before I throw the ******* machine out the *******
window....
Cheers

Ollie

Nov 15 '05 #4
devenv.exe aka VS.Net is locking a DLL that it is trying to build so it
can't build the solution.

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:ek**************@TK2MSFTNGP09.phx.gbl...
What do you mean with:
when this is deleted it still locks the dam DLL.
what process is holding the file locked?

Willy.
"Earth Worm Jim" <sdd> wrote in message
news:OQ*************@tk2msftngp13.phx.gbl...
I am using VS.Net 2003 on Windows 2003 Server (standard edition) and I am
getting "The process cannot access the file because it is being used by
another process" on DLL's in a VS.Net solution.

I have made sure all the dependancies and the build order is correct but
the
actually instance of VS.Net (devenv.exe) is LOCKING THE DAM DLL'S IT IS
TRYING TO BUILD. ?????

I have used Process Explorer from sysinternals.com to confirm this.

VS.Net started this last week and is now doing it with 2 of my projects in my solution??????

Any one got any ideas?????

The solution does contain 2 DLL's that are in the GAC but are not causing the issue and are not the DLL's getting locked. 1 DLL that is getting
locked
has been registered as a COM+ service, but even when this is deleted it
still locks the dam DLL.

I have turned of Index Server as well and this has not help either

Anyone any idea before I throw the ******* machine out the *******
window....
Cheers

Ollie


Nov 15 '05 #5

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

Similar topics

2
by: Matt | last post by:
If I do the following, the browse text box still cannot see C:/hello world/test.txt. <input type="file" name="fileName" value="C:/hello world/test.txt" size=80> Any ideas? and workarounds...
145
by: Sidney Cadot | last post by:
Hi all, In a discussion with Tak-Shing Chan the question came up whether the as-if rule can cover I/O functions. Basically, he maintains it can, and I think it doesn't. Consider two...
2
by: FrzzMan | last post by:
The first time I called this function, everything went well, but the second time I called it. An Exception thrown, do you know why? An unhandled exception of type 'System.IO.IOException' occurred...
3
by: JeffM | last post by:
I have a .dat file on a remote server that seems to be locked. I have tried to FTP to it and delete it, rename it, copy over it and I get the error. "Could not copy temporary files to the output...
2
by: lucy | last post by:
Hi, I use ADOX to create a Access database programmatically from my asp.net application and save ".mdb" file to a temp folder under my project foler on the web server. After database is created...
7
by: RSH | last post by:
Hi, I have an ASP .Net web page that creates a temp directory on the server then it is using the File.Copy command to move a file to a temp download directory, Then I am doing a...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
4
by: pizzetta72 | last post by:
Hi all, i just finish to install cygwin on windows XP adding also gcc compiler module. After I tried to execute a file called fstsg.0.3-sparc (www.fstha.com) used to cript a Unix shell, I receive...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...

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.