Assembly References

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Trevor Hardwick

    #1

    Assembly References

    Hi

    I have an application that tries to load another assembly. When it tries I
    get the following error message:

    "Additional information: The located assembly's manifest definition with
    name [Assembly Name] does not match the assembly reference."

    Can anyone think of any obvious reasons why this error is occurring. I've
    used ildasm.exe to check the manifest but can't see any obvious problems.

    Regards

    Trevor Hardwick


  • Felix Wang

    #2
    Re: Assembly References

    You are referencing to a strong-named assembly and that assembly has been
    rebuilt.

    --
    Regards,

    Felix Wang

    "Trevor Hardwick" <trevor@leaveme alone.com> wrote in message
    news:#7KH9Us1DH A.2948@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hi
    >
    > I have an application that tries to load another assembly. When it tries[/color]
    I[color=blue]
    > get the following error message:
    >
    > "Additional information: The located assembly's manifest definition with
    > name [Assembly Name] does not match the assembly reference."
    >
    > Can anyone think of any obvious reasons why this error is occurring. I've
    > used ildasm.exe to check the manifest but can't see any obvious problems.
    >
    > Regards
    >
    > Trevor Hardwick
    >
    >[/color]


    Comment

    • Felix Wang

      #3
      Re: Assembly References

      Too elaborate a little bit more:

      If you are using VS.Net to develop that strong-named assembly, everytime it
      is rebuilt, its version get incremented (by default). If you have another
      application referencing the assembly outside VS.Net, the application will
      detect that the assembly does not match the record in its manifest.

      --
      Regards,

      Felix Wang

      "Felix Wang" <v-felwa@offline.m icrosoft.com> wrote in message
      news:eBfPEgs1DH A.2868@TK2MSFTN GP09.phx.gbl...[color=blue]
      > You are referencing to a strong-named assembly and that assembly has been
      > rebuilt.
      >
      > --
      > Regards,
      >
      > Felix Wang
      >
      > "Trevor Hardwick" <trevor@leaveme alone.com> wrote in message
      > news:#7KH9Us1DH A.2948@TK2MSFTN GP09.phx.gbl...[color=green]
      > > Hi
      > >
      > > I have an application that tries to load another assembly. When it[/color][/color]
      tries[color=blue]
      > I[color=green]
      > > get the following error message:
      > >
      > > "Additional information: The located assembly's manifest definition with
      > > name [Assembly Name] does not match the assembly reference."
      > >
      > > Can anyone think of any obvious reasons why this error is occurring.[/color][/color]
      I've[color=blue][color=green]
      > > used ildasm.exe to check the manifest but can't see any obvious[/color][/color]
      problems.[color=blue][color=green]
      > >
      > > Regards
      > >
      > > Trevor Hardwick
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Trevor Hardwick

        #4
        Re: Assembly References

        We have the files under source control. The build tree was deleted then
        recreated from the files in source control. I don't see how the version
        numbers can change. The build works on all mchines except one.

        Regards

        Trevor Hardwick

        "Felix Wang" <v-felwa@offline.m icrosoft.com> wrote in message
        news:edHEzms1DH A.2676@tk2msftn gp13.phx.gbl...[color=blue]
        > Too elaborate a little bit more:
        >
        > If you are using VS.Net to develop that strong-named assembly, everytime[/color]
        it[color=blue]
        > is rebuilt, its version get incremented (by default). If you have another
        > application referencing the assembly outside VS.Net, the application will
        > detect that the assembly does not match the record in its manifest.
        >
        > --
        > Regards,
        >
        > Felix Wang
        >
        > "Felix Wang" <v-felwa@offline.m icrosoft.com> wrote in message
        > news:eBfPEgs1DH A.2868@TK2MSFTN GP09.phx.gbl...[color=green]
        > > You are referencing to a strong-named assembly and that assembly has[/color][/color]
        been[color=blue][color=green]
        > > rebuilt.
        > >
        > > --
        > > Regards,
        > >
        > > Felix Wang
        > >
        > > "Trevor Hardwick" <trevor@leaveme alone.com> wrote in message
        > > news:#7KH9Us1DH A.2948@TK2MSFTN GP09.phx.gbl...[color=darkred]
        > > > Hi
        > > >
        > > > I have an application that tries to load another assembly. When it[/color][/color]
        > tries[color=green]
        > > I[color=darkred]
        > > > get the following error message:
        > > >
        > > > "Additional information: The located assembly's manifest definition[/color][/color][/color]
        with[color=blue][color=green][color=darkred]
        > > > name [Assembly Name] does not match the assembly reference."
        > > >
        > > > Can anyone think of any obvious reasons why this error is occurring.[/color][/color]
        > I've[color=green][color=darkred]
        > > > used ildasm.exe to check the manifest but can't see any obvious[/color][/color]
        > problems.[color=green][color=darkred]
        > > >
        > > > Regards
        > > >
        > > > Trevor Hardwick
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Felix Wang

          #5
          Re: Assembly References

          Let's look into the GAC of that particular machine and see whether we have
          another version of the assembly in the GAC.

          --
          Regards,

          Felix Wang

          "Trevor Hardwick" <trevor@leaveme alone.com> wrote in message
          news:#yPiq6s1DH A.2636@TK2MSFTN GP09.phx.gbl...[color=blue]
          > We have the files under source control. The build tree was deleted then
          > recreated from the files in source control. I don't see how the version
          > numbers can change. The build works on all mchines except one.
          >
          > Regards
          >
          > Trevor Hardwick
          >
          > "Felix Wang" <v-felwa@offline.m icrosoft.com> wrote in message
          > news:edHEzms1DH A.2676@tk2msftn gp13.phx.gbl...[color=green]
          > > Too elaborate a little bit more:
          > >
          > > If you are using VS.Net to develop that strong-named assembly, everytime[/color]
          > it[color=green]
          > > is rebuilt, its version get incremented (by default). If you have[/color][/color]
          another[color=blue][color=green]
          > > application referencing the assembly outside VS.Net, the application[/color][/color]
          will[color=blue][color=green]
          > > detect that the assembly does not match the record in its manifest.
          > >
          > > --
          > > Regards,
          > >
          > > Felix Wang
          > >
          > > "Felix Wang" <v-felwa@offline.m icrosoft.com> wrote in message
          > > news:eBfPEgs1DH A.2868@TK2MSFTN GP09.phx.gbl...[color=darkred]
          > > > You are referencing to a strong-named assembly and that assembly has[/color][/color]
          > been[color=green][color=darkred]
          > > > rebuilt.
          > > >
          > > > --
          > > > Regards,
          > > >
          > > > Felix Wang
          > > >
          > > > "Trevor Hardwick" <trevor@leaveme alone.com> wrote in message
          > > > news:#7KH9Us1DH A.2948@TK2MSFTN GP09.phx.gbl...
          > > > > Hi
          > > > >
          > > > > I have an application that tries to load another assembly. When it[/color]
          > > tries[color=darkred]
          > > > I
          > > > > get the following error message:
          > > > >
          > > > > "Additional information: The located assembly's manifest definition[/color][/color]
          > with[color=green][color=darkred]
          > > > > name [Assembly Name] does not match the assembly reference."
          > > > >
          > > > > Can anyone think of any obvious reasons why this error is occurring.[/color]
          > > I've[color=darkred]
          > > > > used ildasm.exe to check the manifest but can't see any obvious[/color]
          > > problems.[color=darkred]
          > > > >
          > > > > Regards
          > > > >
          > > > > Trevor Hardwick
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • GuruJim

            #6
            re:Assembly References

            I have the exact same problem, I am using a strong named assembly. And
            the problem only occurs on a single xp machine out of around 50
            tested. I have checked the GAC and the same versions are in there.

            Moving the files between machines they work elsewhere.

            A rebuild does not help.

            I have also tried reinstalling the framework.

            This is an interop library, I have tried adding a reference to it in
            VB6 on the troubled machine. As soon as it tries to create the object
            it fails with the manifest error


            Posted Via Usenet.com Premium Usenet Newsgroup Services
            ----------------------------------------------------------
            ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
            ----------------------------------------------------------
            Best Usenet Service Providers 2026 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

            Comment

            Working...