DLL Version problems

T

Tomas Vera

Hello All,
I have a Commerce Server application that uses
Microsoft.VisualBasic.Compatibility.DLL .

My development machine uses Framework 1.0.3705 .

When I deploy this app to a machine with Framework 1.1 I get the
"<add assembly="*"/>" configuration errors.

In the stack trace I see this line:
"Version redirect found in framework config: 7.0.3300.0 redirected to
7.0.5000.0." So I assume that the system is trying to load version 7.0.5000
of my DLL. The problem is that this DLL does not exist. The version that is
installed with Commerce Server is 7.0.9466.0 .

How do I tell the system, that my app uses v7.0.9466 of this DLL?

I can't remove the dependancy since this is part of MS Commerce Server. Are
Commerce Server users required to use v1.0 of the Framework?



-tomas
 
P

Peter Koen

Hello All,
I have a Commerce Server application that uses
Microsoft.VisualBasic.Compatibility.DLL .

My development machine uses Framework 1.0.3705 .

When I deploy this app to a machine with Framework 1.1 I get the
"<add assembly="*"/>" configuration errors.

In the stack trace I see this line:
"Version redirect found in framework config: 7.0.3300.0 redirected to
7.0.5000.0." So I assume that the system is trying to load version
7.0.5000 of my DLL. The problem is that this DLL does not exist. The
version that is installed with Commerce Server is 7.0.9466.0 .

How do I tell the system, that my app uses v7.0.9466 of this DLL?

I can't remove the dependancy since this is part of MS Commerce
Server. Are Commerce Server users required to use v1.0 of the
Framework?



-tomas

Add a <bindingRedirect> directive to your app.config file:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="en-us" />
<bindingRedirect oldVersion="1.0.0.0"
newVersion="2.0.0.0 - 4.0.1.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
 
T

Tomas Vera

OK, Next questions.

This is a web app and there is no file named <MyApp>.config.

Do I place these entries in the Web.config file? When I do this, I get an
"unrecognized element" error on the "<runtime>" entry.

Or do I have to place them in the Machinge.Config file? It seems that this
is not the right place for this since this only applies to my app. Besides,
the same error comes up here.

Thanks for your help so far.


-tomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top