473,563 Members | 2,709 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot Copy Assembly <MyAssembly> The Process Cannot Access The File Because It Is Being Used By Another Process

Ram
Hey,
I have a solution that is built from both C# and VB.Net projects that some
C# projects are referenced to VB.Net projects and vise versa.
Whenever I try to rebuild my solution I get the following errors:
"Cannot Copy Assembly <Assembly> - The Process Cannot Access The File
Because It Is Being Used By Another Process".
I tried to "kill" the ASPNET_WP process in a pre-built event and had no
success...
I read in more than a few old threads and a few KB articles (313512,324519)
about VS.Net locking assemblies in prior versions of VS.Net - 2002 and found
no real/working resolution.
I'm using VS.Net 2003 with Framework 1.1, Windows XP Pro, IIS 5.1.
Is there a known issue and hopefully a fix for that annoying VS.Net bug?
Thanks ahead

-- Ram
Jul 22 '05 #1
1 1861
This problem can happen for several reasons. Sometimes doing a full solution
compile (build) helps, but it's difficult to guess what the real cause is.

--
Klaus H. Probst, MVP
http://www.simulplex.net/
"Ram" <ni***@bezeqint .net> wrote in message
news:Oa******** ******@tk2msftn gp13.phx.gbl...
Hey,
I have a solution that is built from both C# and VB.Net projects that some
C# projects are referenced to VB.Net projects and vise versa.
Whenever I try to rebuild my solution I get the following errors:
"Cannot Copy Assembly <Assembly> - The Process Cannot Access The File
Because It Is Being Used By Another Process".
I tried to "kill" the ASPNET_WP process in a pre-built event and had no
success...
I read in more than a few old threads and a few KB articles (313512,324519) about VS.Net locking assemblies in prior versions of VS.Net - 2002 and found no real/working resolution.
I'm using VS.Net 2003 with Framework 1.1, Windows XP Pro, IIS 5.1.
Is there a known issue and hopefully a fix for that annoying VS.Net bug?
Thanks ahead

-- Ram

Jul 22 '05 #2

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

Similar topics

1
1553
by: Ray | last post by:
Hi, I am receiving this message in the output during compilation; it is not an error nor a warning. I have <myAssembly> as a library assembly included as part of my solution, and I have also added it as a reference in my project. This does not seem to have any side effects as it does not cause compilation to fail. But I'd like to get...
1
1562
by: joserobenator | last post by:
All right. I'v been the last 24h looking everywhere for a solution: -- Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
2
5824
by: Ram | last post by:
Hey, I have a solution that is built from both C# and VB.Net projects that some C# projects are referenced to VB.Net projects and vise versa. Whenever I try to rebuild my solution I get the following errors: "Cannot Copy Assembly <Assembly> - The Process Cannot Access The File Because It Is Being Used By Another Process". I tried to "kill"...
3
1814
by: Web Team | last post by:
Hi All, I recently moved our assembly which stores our 'common' code into the GAC. I then moved all copies of this assembly out of the /bin folders, restarted IIS. I get the error below. This is the first time I have put something into the GAC, from what I read, the GAC is probed first, before looking to application folders, so surely my...
2
10940
by: Luis Arvayo | last post by:
I am compiling and executing c# code at runtime and I need to define in CompilerParameters.ReferencedAssemblies one of my own assemblies together with the standard System.dll u others. Example: // compiler options System.CodeDom.Compiler.CompilerParameters options = new System.CodeDom.Compiler.CompilerParameters();...
0
1915
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this assembly with registration-free COM interop from a Win32 application. I also want to use this assembly with a .Net application that I want to...
5
1920
by: sajin | last post by:
Hi, I am trying to load an executable as assembly (this exe is not .net made, it is just an exe made using install shield). I am using the following code to load Assembly myAssembly = Assembly.LoadFrom(@"C:\setup.exe"); it is giving me the error that "BadImageFormatException"
0
1196
by: Paul Buckley | last post by:
Hi, I'm trying to gain access to a configuration section from within an assembly that has been loaded using Assemly.Load(byte). There is one main exe (lets say myApp.exe) and one config file (myApp.exe.config) which contains the config section. The dll (myAssembly.dll) is a "plugin" and loaded on request. The reason we use the byte array...
2
1654
by: Pieter | last post by:
Hi, We're using ClickOnce alreaddy more than a year for a given applicaiton, doing more than 50 publishes without any problem. Yesterday we made a minor change to one of our components (let's say with the name MyAssembly), and incremented it's version (AssemblyVersion: from 0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when...
0
7664
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7948
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.