Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Could not load file or assembly Error Plz Help

Could not load file or assembly Error Plz Help

Scheduled Pinned Locked Moved Visual Basic
helpdebuggingregexannouncement
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sabby2006
    wrote on last edited by
    #1

    HI Previously my project was having the Version=0.30.0.0 of the dll IKVM.GNU.Classpath now i am trying to include or refer Version=0.34.0.3, of the same dll and its throwing me this error and i a m just not able to run the project. The dll is in the bin\debug folder of the project from where i was referring it earlier and now also. Plz Help! I am getting this error. Could not load file or assembly 'IKVM.GNU.Classpath, Version=0.30.0.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Regards

    D 1 Reply Last reply
    0
    • S sabby2006

      HI Previously my project was having the Version=0.30.0.0 of the dll IKVM.GNU.Classpath now i am trying to include or refer Version=0.34.0.3, of the same dll and its throwing me this error and i a m just not able to run the project. The dll is in the bin\debug folder of the project from where i was referring it earlier and now also. Plz Help! I am getting this error. Could not load file or assembly 'IKVM.GNU.Classpath, Version=0.30.0.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

      Regards

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Basically, it looks like you tried to replace the .DLL file with a new version, then just ran your project. That doesn't work. You have to remove the references from your project to that .DLL, then add a new reference to the new version of the .DLL.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Basically, it looks like you tried to replace the .DLL file with a new version, then just ran your project. That doesn't work. You have to remove the references from your project to that .DLL, then add a new reference to the new version of the .DLL.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        S Offline
        S Offline
        sabby2006
        wrote on last edited by
        #3

        Thanks Dave! No, i am doing that only.. removing the reference from the project and then, adding new reference of the dll with different version.(I am not replacing the dll file only, I am also changing the reference also) just could not what is the problem...

        Regards

        D 1 Reply Last reply
        0
        • S sabby2006

          Thanks Dave! No, i am doing that only.. removing the reference from the project and then, adding new reference of the dll with different version.(I am not replacing the dll file only, I am also changing the reference also) just could not what is the problem...

          Regards

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Well, the error message says your reference is still pointing to the previous version.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          S 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Well, the error message says your reference is still pointing to the previous version.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            S Offline
            S Offline
            sabby2006
            wrote on last edited by
            #5

            Well its very bizard but keeping both the versions in GAC and referring the latest solved the problem.... Anyways Thanks For ur Time.......

            Regards

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups