Problem with a newer version of a dll
-
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
-
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
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)
-
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)
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?
-
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?
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)
-
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)