473,503 Members | 13,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rename DLL after it is compiled

Jed
I have a DLL that I compiled to CodeAsset.dll.

The version is 1.1.0.0.

If I rename the file from CodeAsset.dll to CodeAsset.1.1.dll, reference it
in a web project, recompile the web project, and the newly named file is in
the bin directory, shouldn't the web project run fine?

I did this and instead I get the following error:
The located assembly's manifest definition with name 'CodeAsset.1.1' does
not match the assembly reference.

Why am I getting this error? I have tried various methods of adding the
file to the web.config compiler section, but they have not worked.

If I create a new release version (1.2.0.0) of my DLL and I want the two to
run side-by-side, I would have to rename the newly compiled version of the
dll file so CodeAsset.1.1 and CodeAsset.1.2 could run side-by-side? Unlikely
or rare I know, but possible if two different web projects are in the same
root and were compiled against different versions of the "same" dll.

I have searched all over and can't figure this out.



Nov 19 '05 #1
1 2401
You should read up on .NET assembly resolution semantics:

http://msdn.microsoft.com/library/de...asp?frame=true

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have a DLL that I compiled to CodeAsset.dll.

The version is 1.1.0.0.

If I rename the file from CodeAsset.dll to CodeAsset.1.1.dll,
reference it in a web project, recompile the web project, and the
newly named file is in the bin directory, shouldn't the web project
run fine?

I did this and instead I get the following error:
The located assembly's manifest definition with name 'CodeAsset.1.1'
does
not match the assembly reference.
Why am I getting this error? I have tried various methods of adding
the file to the web.config compiler section, but they have not worked.

If I create a new release version (1.2.0.0) of my DLL and I want the
two to run side-by-side, I would have to rename the newly compiled
version of the dll file so CodeAsset.1.1 and CodeAsset.1.2 could run
side-by-side? Unlikely or rare I know, but possible if two different
web projects are in the same root and were compiled against different
versions of the "same" dll.

I have searched all over and can't figure this out.


Nov 19 '05 #2

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

Similar topics

7
9389
by: Tom | last post by:
I'm having a problem using a path with spaces as a parameter to os.rename() in a program on WinXP. This works fine at the command line (where the folder "c:\aa bb" exists) > os.rename( "c\aa...
3
6044
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
1
1986
by: Jay at SCA | last post by:
I've been having the following issue with a windows service I've created in vb.net (.net fw 1.1): Basically, my service monitors a folder for the creation of any new files of a particular type...
2
2942
by: Bruce Russell | last post by:
This may sound stupid but I can't rename the WebForm1.aspx in the solution explorer. The file is located in my local web server at C:\Inetpub\wwwroot\Lab3-VB-Starter\WebForm1.aspx Is there...
5
2703
by: Tony Meyer | last post by:
On Windows, if I do os.rename(old, new) where old is a file that is in-use (e.g. python itself, or a dll that is loaded), I would expect that an error would be raised (e.g. as when os.remove is...
6
2513
by: shuaishuaiyes | last post by:
Hello everyone... I'm a Chinese student and my English is very poor...So excuse me if I make grammar mistake. I want to ask some questions about "rename". I'm a beginner, so my C ..... :) I...
1
5704
by: cheesey_toastie | last post by:
I have a long query which I have set off and would like to stop, and rename one of the tables used. My query is due to my lack of understanding of the underlying structure of MSSQL-Server... ...
2
3611
by: =?iso-8859-1?b?cultaQ==?= | last post by:
Hi, I would like to rename files (jpg's ones) using a text file containing the new names... Below is the code that doesn't work : ***** #!/usr/bin/python #-*- coding: utf-8 -*- from os...
1
2772
by: swapniliit2222 | last post by:
Hi I have a little problem, I have a source code which need to be compiled in two diffrent ways With some diffrent # defines in both cases. And I need to link both library to link to the same...
0
7212
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
7098
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
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7364
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...
0
4696
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...
0
3186
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...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
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...

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.