473,403 Members | 2,284 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,403 software developers and data experts.

File used by another process...?

Hi All:
Is there a solution to below problem...without....restarting VS.Net 2003 so
may be sometimes restarting PC.
//
Cannot copy assembly 'MyClient.Client' to file
'C:\bin\Debug\MyClient.Client.dll'. The process cannot access the file
because it is being used by another process.

-Pankaj

Nov 15 '05 #1
3 5164
Hi Fergus:

Yeah I understand that the dll is being used by other process.. but how do
you find out which process...?
Task Manager doesn't hint a thing about that
I tried to use ListDLLS from sysinternals.com but that doesn't help too ?
What do you use to figure it out ?
I have heard from more than one people...that VS.NET is sometimes using
this...file.
In this post also people have pointed that out.
I wonder like James did ..is this a Bug in VS.NET ?

-Pankaj
"Fergus Cooney" <wo****@tesco.net> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
Hi Panjak,

I've had the same error. In all cases, for me, it was due to a process
remaining in memory when all visual indications (ie forms, tray icons, etc) had gone. Sometimes my form would terminate but the process remain.
Sometimes it would be a component that was still running free. Depends what I'm developing at the time.

Make friends with Task Manager. If your problem's cause is the same,
TM's got a great Kill switch!! :-)

Regards,
Fergus

Nov 15 '05 #2
James:

I would remember to close explorer next time it occurs.... but my gut
feeling is that VS.Net uses this file and it seems like a bug to me
wonder...if MS has to say something about it ?

-Pankaj
"James Liu" <ro*****@sina.com> wrote in message
news:eW**************@TK2MSFTNGP09.phx.gbl...
This is because some other application or process is using MyClent. Even
windows explore can sometimes cause this problem .

You can try to close other application. or check in TaskManager if any
process are using this assembly.

Ironically, sometimes VS.NET is using the assembly. :-) and you have to
restart the VS or even PC.
Is this a bug in VS? or ... when you do developing, anything can happen. It is annoying, anyway, it is a good time to take a cup of coffee.

:-)

James

"Pankaj" <pa******@hotmail.com> дÈëÓʼþ
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hi All:
Is there a solution to below problem...without....restarting VS.Net 2003

so
may be sometimes restarting PC.
//
Cannot copy assembly 'MyClient.Client' to file
'C:\bin\Debug\MyClient.Client.dll'. The process cannot access the file
because it is being used by another process.

-Pankaj


Nov 15 '05 #3
There was a bug that would sometimes lock assemblies. The suspected cause
was assembly size. While i don't know if it was ever proven, when i had the
problem breaking the offending assembly up into 3 pieces (some code
remaining in itself, other pieces being split into other assemblies, it
forced me to modularlize abit more).
It also could have had to do with intellisense or the toolbox(i really don't
remember).
Also, as i recall but don't have any records to be sure, this bug was not
able to be fixed by vs.net 2003 rtm.

Some people ended up switching to a build system using nant, others split up
offending assemblies until they stopped causing trouble,

"Pankaj" <pa******@hotmail.com> wrote in message
news:eH*************@TK2MSFTNGP09.phx.gbl...
Hi Fergus:

Yeah I understand that the dll is being used by other process.. but how do
you find out which process...?
Task Manager doesn't hint a thing about that
I tried to use ListDLLS from sysinternals.com but that doesn't help too ?
What do you use to figure it out ?
I have heard from more than one people...that VS.NET is sometimes using
this...file.
In this post also people have pointed that out.
I wonder like James did ..is this a Bug in VS.NET ?

-Pankaj
"Fergus Cooney" <wo****@tesco.net> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
Hi Panjak,

I've had the same error. In all cases, for me, it was due to a process remaining in memory when all visual indications (ie forms, tray icons,

etc)
had gone. Sometimes my form would terminate but the process remain.
Sometimes it would be a component that was still running free. Depends

what
I'm developing at the time.

Make friends with Task Manager. If your problem's cause is the same,
TM's got a great Kill switch!! :-)

Regards,
Fergus


Nov 15 '05 #4

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

Similar topics

6
by: Pekka Niiranen | last post by:
Hi, I have used the following example from win32 extensions: -----SCRIPT STARTS---- import win32file import win32con import win32security import pywintypes
7
by: A_StClaire_ | last post by:
hi, I'm working on a project spanning five .cpp files. each file was used to define a class. the first has my Main and an #include for each of the other files. problem is my third file...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
8
by: Gabe Moothart | last post by:
Hi, I'm writing a windows service which interacts with a separate process. Basically, it calls a process which creates a file, and then my service reads that file. The problem is, the external...
4
by: funkmusha | last post by:
I am trying to read a log file using vb.net. I get an error stating "The process cannot access the file 'C:\test.log' because it is being used by another process." Below is a sample of what I am...
5
by: bulldog8 | last post by:
I've read numerous posts and have tried multiple approaches that I found, but just cannot get a file renamed. I am using VB.Net 2002 ... Here is what I have tried: 1) Code common to all...
16
by: Eran.Yasso | last post by:
Hi, I have a mdb file shared in the LAN. I want to write app that verifies if it's open. If the file is not open, then my app can open the file. if the file is used, then the app won't open it....
8
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; I copied a new set of files over to my ASP.NET dir (and subdirs) on our test server. This replaced every file for the app. When I first then tried to bring it up, I got the below error. ...
0
nightangel
by: nightangel | last post by:
Hi dude,what i was done in my application is uploading a image file to my server using FTP, it work great when pushing a file into the server path using FTP. The problem i met now is i need to do a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.