Milestone plugin says it can't find dll when running as service.

I’m working a plugin which uses my dll to procces images.

Its working fine when the plugin is in a Client,

However when I want to run it in service(in event server), it says:

"Unable to load DLL… …The specified module could not be found. (Exception from HRESULT: 0x8007007E)@

But i know the DLL is available and the error only appears when i try to use object from an other dll in it. I tried to add all possible dependecy to the plugin folder and even for enviroment path, but still the same error.

What can cause such problem?

This might be the same issue, please see this link.

https://developer.milestonesys.com/s/question/0D50O00005npkM6SAI/videoosplatformsdkexportdll-fail-to-load-library-when-running-as-a-service

Thank you for your reply Rie.

Yeah i saw that post already, didn’t solve my problem.

However reisntalling Windows and build the project again fixed it, it putted all dependencies to its place correctly.