Hello guys,
I'm facing a very strange problem, on my computer, an indicator which needs a dll works without problems.
But when i migrate all those beautiful people on a Vps (a true Vps, not a Empty4 integrated bullshit), well the indicator says it can't load the dll.
Searching on the net, i've read lots of things, but apparently there's a problem with the vps and the dlls.
I'm asking here the experts if it's true, or if someone could look at my dll, and repair it in the case needed.
Before sharing my next developments here, i need to be sure it's stable enough ...
Oh and the vps runs on windows 2012 server, just in case. Oh, and i don't have the source of the indicator i use.
Thanks !
Help with a dll call on a Vps
- LittleCaro
- Trader
- Posts: 63
- Joined: Tue May 19, 2015 7:09 am
Help with a dll call on a Vps
You do not have the required permissions to view the files attached to this post.
- pivotter
- Trader
- Posts: 38
- Joined: Sun May 01, 2016 12:02 am
- Location: The Hague, The Netherlands
Help with a dll call on a Vps
The source code can be found here:LittleCaro » Wed Oct 09, 2019 4:19 pm wrote:Hello guys,
I'm facing a very strange problem, on my computer, an indicator which needs a dll works without problems.
But when i migrate all those beautiful people on a Vps (a true Vps, not a Empty4 integrated bullshit), well the indicator says it can't load the dll.
Searching on the net, i've read lots of things, but apparently there's a problem with the vps and the dlls.
I'm asking here the experts if it's true, or if someone could look at my dll, and repair it in the case needed.
Before sharing my next developments here, i need to be sure it's stable enough ...
Oh and the vps runs on windows 2012 server, just in case. Oh, and i don't have the source of the indicator i use.
Thanks !
https://www.fx141.com/next-price-predic ... atrader-4/
At the bottom the Download.
Updated version of the DLL here:
https://www.mql5.com/en/code/9599
Confirmed that the DLL is not working on VPS
Pivotter
You think the rumbling comes from our "magic" black-box ?
- LittleCaro
- Trader
- Posts: 63
- Joined: Tue May 19, 2015 7:09 am
Help with a dll call on a Vps
Thanks Pivotter for the information.pivotter » Wed Oct 09, 2019 10:27 pm wrote:
The source code can be found here:
https://www.fx141.com/next-price-predic ... atrader-4/
At the bottom the Download.
Updated version of the DLL here:
https://www.mql5.com/en/code/9599
Confirmed that the DLL is not working on VPS
Pivotter
-
- Trader
- Posts: 22
- Joined: Fri Jul 28, 2017 4:18 pm
Help with a dll call on a Vps
Maybe this will work, maybe it will not, but I found an article that describes a similar situation, only with a different application. They describe 2 ways in order to try and fix the dll issue: a dirty way an a clean way.
The clean way:
The dirty way:
The clean way:
I really have no clue how to set up path this way, but maybe someone else could step in and help you out to do that.you can change the path value in your process by using the following code
[c]System.Environment.SetEnvironmentVariable("Path", searchPath + ";" + oldPath)[/c]
Then when LoadLibrary tries to find the unmanaged DLL it will also scan searchPath. This may be preferable to making a mess in System32 or other folders.
The dirty way:
I will go this way; its not the optimal way, but if it resolve your issue then be it.Try putting the dlls in the \System32\Inetsrv directory. This is the working directory for IIS on Windows Server.
If this doesn't work try putting the dlls in the System32 directory and the dependency files in the Inetsrv directory.