Cannot load dll on windows server?

 

Hi, I wrote a DLL and it works fine on my desktops(Windows 8.1/10). But when I put it on a widows server where I have some MT4 running, there will be an "2019.03.18 11:50:01.646 Cannot load 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\2665AF226528B3E5842XXXXXXXXXX\MQL4\Libraries\my.dll' [126]" ERROR.

I have tried Windows server 2012 and Windows server 2012R2, neither can run.


Can anybody help? Thank you very much!

 
You could open the DLL with Dependency Walker to check where it depends on auxiliary DLLs. It may happen that your DLL runs fine in your development environment but fails to load when deployed. Because the operating envionment lacks a certain runtime. This could be a .NET 4.5 runtime or so, that would need to be installed for your DLL to load successfully. hth
 
lippmaje:
You could open the DLL with Dependency Walker to check where it depends on auxiliary DLLs. It may happen that your DLL runs fine in your development environment but fails to load when deployed. Because the operating envionment lacks a certain runtime. This could be a .NET 4.5 runtime or so, that would need to be installed for your DLL to load successfully. hth

Thank you. You're right. Fixed now.

 
Amy Liu:

Hi, I wrote a DLL and it works fine on my desktops(Windows 8.1/10). But when I put it on a widows server where I have some MT4 running, there will be an "2019.03.18 11:50:01.646 Cannot load 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\2665AF226528B3E5842XXXXXXXXXX\MQL4\Libraries\my.dll' [126]" ERROR.

I have tried Windows server 2012 and Windows server 2012R2, neither can run.


Can anybody help? Thank you very much!

https://www.mql5.com/en/forum/293517#comment_9811172

 
Mehmet Bastem: https://www.mql5.com/en/forum/293517#comment_9811172
Please use the link button Use the link button See the difference? https://www.mql5.com/en/forum/293517#comment_9811172
          Messages Editor