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. C#
  4. Problem with a newer version of a dll

Problem with a newer version of a dll

Scheduled Pinned Locked Moved C#
helpannouncementcsharpasp-nettutorial
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.
  • K Offline
    K Offline
    KittyKit
    wrote on last edited by
    #1

    Hello We have a asp.net website that has reference to simIO.dll which was developed by my predecessor. I have the source project of simIO.dll in hand. This inturn refers to a 3rd party dll called config.dll (using DllImport). Now the 3rd party has released a newer version of config.dll that I need to update in our website. I first tried to replace the new version of config.dll in the system32 folder and got the following error. The specified module could not be found. (Exception from HRESULT: 0x8007007E) can not be loaded. But it works fine with the older version config.dll Can somebody advise me how to change the reference to the new dll? Many thanks Kit

    D 1 Reply Last reply
    0
    • K KittyKit

      Hello We have a asp.net website that has reference to simIO.dll which was developed by my predecessor. I have the source project of simIO.dll in hand. This inturn refers to a 3rd party dll called config.dll (using DllImport). Now the 3rd party has released a newer version of config.dll that I need to update in our website. I first tried to replace the new version of config.dll in the system32 folder and got the following error. The specified module could not be found. (Exception from HRESULT: 0x8007007E) can not be loaded. But it works fine with the older version config.dll Can somebody advise me how to change the reference to the new dll? Many thanks Kit

      D Offline
      D Offline
      ddecoy
      wrote on last edited by
      #2

      In the simIO project you need to replace the reference to the old config.dll with the new config.dll and then recompile the project, otherwise the simIO.dll will try to call the old config.dll which has been replaced.

      Learning without thought is labor lost; thought without learning is perilous. (Confucius)

      K 1 Reply Last reply
      0
      • D ddecoy

        In the simIO project you need to replace the reference to the old config.dll with the new config.dll and then recompile the project, otherwise the simIO.dll will try to call the old config.dll which has been replaced.

        Learning without thought is labor lost; thought without learning is perilous. (Confucius)

        K Offline
        K Offline
        KittyKit
        wrote on last edited by
        #3

        Many thanks for the swift reply. The simIO project uses DllImport("config.dll", EntryPoint="ReadWrite@10", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true) I replaced the config.dll in system32 folder and recompiled simIO and replaced the new simIO.dll in the website. I am unsure whether this is sufficient. How to I change the reference of config.dll in simIO project?

        D 1 Reply Last reply
        0
        • K KittyKit

          Many thanks for the swift reply. The simIO project uses DllImport("config.dll", EntryPoint="ReadWrite@10", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true) I replaced the config.dll in system32 folder and recompiled simIO and replaced the new simIO.dll in the website. I am unsure whether this is sufficient. How to I change the reference of config.dll in simIO project?

          D Offline
          D Offline
          ddecoy
          wrote on last edited by
          #4

          Nevermind the references in the project if u use DllImport to call the dll. Try specifing the full path of the dll to see if the dll could be found. Also try to put in the dll into the bin folder of the project. (If your config.dll resides in the system32 folder,the app that calls the dll should be run in the same folder...)

          Learning without thought is labor lost; thought without learning is perilous. (Confucius)

          K 1 Reply Last reply
          0
          • D ddecoy

            Nevermind the references in the project if u use DllImport to call the dll. Try specifing the full path of the dll to see if the dll could be found. Also try to put in the dll into the bin folder of the project. (If your config.dll resides in the system32 folder,the app that calls the dll should be run in the same folder...)

            Learning without thought is labor lost; thought without learning is perilous. (Confucius)

            K Offline
            K Offline
            KittyKit
            wrote on last edited by
            #5

            I tried putting the new version in bin folder. no help. I'll see whether its possible to include full path of the dll in dllImport However the last part of ur reply is not clear. What do u mean by my app should reside in system32?? thanks again. Kit

            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