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

problem with versionning

hi all -

i've got a problem with versioned assemblies, and maybe somebody can help:
i created an assembly (dll) in two versions (1.0.0.0 and 2.0.0.0), put them
in the gac and produced a test app (testapp.exe) which references this
assembly (v1). additionally, i created an app.config (testapp.exe.config)
which references explicitly to version 2. when i run the testapp, it
*always* comes up with version 1.

thanks for any hints,
achim
Nov 15 '05 #1
4 1809
Can you post the section of your configure files?
Are you using bindingRedirect?

Qiu
"Achim Zeeck" <ma**@achimzeeck.de> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...
hi all -

i've got a problem with versioned assemblies, and maybe somebody can help:
i created an assembly (dll) in two versions (1.0.0.0 and 2.0.0.0), put them in the gac and produced a test app (testapp.exe) which references this
assembly (v1). additionally, i created an app.config (testapp.exe.config)
which references explicitly to version 2. when i run the testapp, it
*always* comes up with version 1.

thanks for any hints,
achim

Nov 15 '05 #2
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIndentity
name="sharedassembly" publicKeyToken="9a82ba6e51bfba16" culture="">
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
</assemblyIndentity>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

hth -

achim

"jennyq" <je**********@yahoo.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP12.phx.gbl...
Can you post the section of your configure files?
Are you using bindingRedirect?

Qiu
"Achim Zeeck" <ma**@achimzeeck.de> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...
hi all -

i've got a problem with versioned assemblies, and maybe somebody can help: i created an assembly (dll) in two versions (1.0.0.0 and 2.0.0.0), put

them
in the gac and produced a test app (testapp.exe) which references this
assembly (v1). additionally, i created an app.config (testapp.exe.config) which references explicitly to version 2. when i run the testapp, it
*always* comes up with version 1.

thanks for any hints,
achim


Nov 15 '05 #3
What's the culture of your assembly, it is a part of the full assembly name.
You may need to specify it in configure file.

Qiu

"Achim Zeeck" <ma**@achimzeeck.de> wrote in message
news:ul**************@tk2msftngp13.phx.gbl...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIndentity
name="sharedassembly" publicKeyToken="9a82ba6e51bfba16" culture="">
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
</assemblyIndentity>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

hth -

achim

"jennyq" <je**********@yahoo.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP12.phx.gbl...
Can you post the section of your configure files?
Are you using bindingRedirect?

Qiu
"Achim Zeeck" <ma**@achimzeeck.de> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...
hi all -

i've got a problem with versioned assemblies, and maybe somebody can help: i created an assembly (dll) in two versions (1.0.0.0 and 2.0.0.0), put

them
in the gac and produced a test app (testapp.exe) which references this
assembly (v1). additionally, i created an app.config (testapp.exe.config) which references explicitly to version 2. when i run the testapp, it
*always* comes up with version 1.

thanks for any hints,
achim



Nov 15 '05 #4
jenny,
i got it already fixed with mscorcfg.msc.
thanks,
achim
"jennyq" <je**********@yahoo.com> schrieb im Newsbeitrag
news:u9**************@TK2MSFTNGP09.phx.gbl...
What's the culture of your assembly, it is a part of the full assembly name. You may need to specify it in configure file.

Qiu

"Achim Zeeck" <ma**@achimzeeck.de> wrote in message
news:ul**************@tk2msftngp13.phx.gbl...
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIndentity
name="sharedassembly" publicKeyToken="9a82ba6e51bfba16" culture="">
<bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/>
</assemblyIndentity>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

hth -

achim

"jennyq" <je**********@yahoo.com> schrieb im Newsbeitrag
news:%2****************@TK2MSFTNGP12.phx.gbl...
Can you post the section of your configure files?
Are you using bindingRedirect?

Qiu
"Achim Zeeck" <ma**@achimzeeck.de> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...
> hi all -
>
> i've got a problem with versioned assemblies, and maybe somebody can

help:
> i created an assembly (dll) in two versions (1.0.0.0 and 2.0.0.0), put them
> in the gac and produced a test app (testapp.exe) which references this > assembly (v1). additionally, i created an app.config

(testapp.exe.config)
> which references explicitly to version 2. when i run the testapp, it
> *always* comes up with version 1.
>
> thanks for any hints,
> achim
>
>



Nov 15 '05 #5

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

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
3
by: Arnaud Debaene | last post by:
Hello all, In this article (http://msdn.microsoft.com/msdnmag/issues/01/03/buildapps2/), it is said in the "Version numbers" paragraph : "However, if the runtime sees that there are two...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
1
by: Michael Moreno | last post by:
Hello, I have been faced with an assembly versionning problem that I could not solve in two days and would appreciate any help. Here is what I have: C# Exe "Exe" that uses Win32 COM DLL ...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
4
by: MikeMikeMike | last post by:
Hi, I've made som applications with VS 2005 and now I try to distribute them to another machine. This aint working unless that machine has also got VS 2005 installed. I get an error that looks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.