DLL Version problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tomas Vera

    #1

    DLL Version problems

    Hello All,
    I have a Commerce Server application that uses
    Microsoft.Visua lBasic.Compatib ility.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
  • Peter Koen

    #2
    Re: DLL Version problems

    Tomas Vera <tavera@NOxSPAM sbcglobal.net> wrote in
    news:ai6epv8dd8 fa9cdbsm49u0tk6 otgtn9vr8@4ax.c om:
    [color=blue]
    > Hello All,
    > I have a Commerce Server application that uses
    > Microsoft.Visua lBasic.Compatib ility.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
    >[/color]

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

    <configuratio n>
    <runtime>
    <assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
    <dependentAssem bly>
    <assemblyIdenti ty name="myAssembl y"
    publicKeyToken= "32ab4ba45e0a69 a1"
    culture="en-us" />
    <bindingRedirec t oldVersion="1.0 .0.0"
    newVersion="2.0 .0.0 - 4.0.1.0"/>
    </dependentAssemb ly>
    </assemblyBinding >
    </runtime>
    </configuration>


    --
    best regards

    Peter Koen
    -----------------------------------
    MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS

    Comment

    • Tomas Vera

      #3
      Re: DLL Version problems

      OK, Next questions.

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

      Do I place these entries in the Web.config file? When I do this, I get an
      "unrecogniz ed 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

      On Thu, 23 Oct 2003 02:45:24 -0700, Peter Koen <koen-newsreply&snusn u.at>
      wrote:
      [color=blue]
      >Tomas Vera <tavera@NOxSPAM sbcglobal.net> wrote in
      >news:ai6epv8dd 8fa9cdbsm49u0tk 6otgtn9vr8@4ax. com:
      >[color=green]
      >> Hello All,
      >> I have a Commerce Server application that uses
      >> Microsoft.Visua lBasic.Compatib ility.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
      >>[/color]
      >
      >Add a <bindingRedirec t> directive to your app.config file:
      >
      ><configuration >
      > <runtime>
      > <assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
      > <dependentAssem bly>
      > <assemblyIdenti ty name="myAssembl y"
      > publicKeyToken= "32ab4ba45e0a69 a1"
      > culture="en-us" />
      > <bindingRedirec t oldVersion="1.0 .0.0"
      > newVersion="2.0 .0.0 - 4.0.1.0"/>
      > </dependentAssemb ly>
      > </assemblyBinding >
      > </runtime>
      ></configuration>[/color]

      Comment

      Working...