Unable to let Midas (Datasnap) invoke my plugin (cannot find dll)

I’m trying to use hydra from a Midas exe. I know this is really old technology, but it should be similar was it Datasnap.
When I run my server exe ‘manually’ and invoke a method in my plugin, it works just fine.
I have the dll’s located in the exe’s directory. Including RemObjects.Hydra.dll.

If however I start the client program (this will make Midas start and then the server exe will start) and then let the client remote invoke the same method as mentioned before, I get a message saying “Cannot open file “c:\Windows\system32\PluginModule.dll”. The specified file was not found”.
(My dll is named PluginModule.dll)

I tried to copy all of my dll files into that location then. No difference. I also tried giving them a strong name and added them to the GAC. No difference.

What is the problem?

Can you show how you start your server from client program?
probably you didn’t specify working path for server so it can’t detect and load plugin.

yes, that was it. Path is set to some windows directory when run as midas server. Solutions is to set it back yourself upon startup to your own folder.