Cannot load dll on windows server?

To add comments, please log in or register
Amy Liu
1008
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!

lippmaje
1055
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
Amy Liu
1008
Amy Liu  
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.

Mehmet Bastem
1728
Mehmet Bastem  
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

William Roeder
20233
William Roeder  
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


To add comments, please log in or register