Can't load file/assembly AVIExporterClientMW.DLL when creating a web-service. The same integration doesn't give a problem when running in a console app.Is there a difference in using milestone as a component in a console app and in a webservice?

I’m making a standalone application using the .NET Library which takes a frame from milestone, analyses it and returns a certain json.

For this, I made a seperate class “Analyzer” which uses a class “ImageSource” which in turn handles all the milestone initialization etc.

The “Analyzer” works just fine when initializing it in a console app, but it goes wrong when I try to make a WCF REST service using the class.

(To be clear: The service will not show any images, only the result of the analyzer )

When running the service it returns the error ons start-up: Can’t load file/assembly AVIExporterClientMW.DLL or one of it’s depencies… But the dll is in the bin folder of the service…

I’m running everything in 64bit & using IIS Express (in 64 bit).

Tested in Debug&Release (if it would matter)

Microsoft Visual Studio Professional 2017, Windows 10

Any ideas?

No, there is no difference, but I suspect that the current folder is sometimes not what you expect.. Ideas, see..

https://developer.milestonesys.com/s/question/0D50O00005NYfJ6SAL/error-when-starting-windows-service-which-connects-to-milestone-sdk

I ran into the exact same issue, and unfortunately wasn’t able to resolve it by reading the referenced post or any of the posts referenced within that one. I asked the same question in a new thread and was given a good workaround.

https://developer.milestonesys.com/s/question/0D53X0000A5QWsDSQW/could-not-load-file-or-assembly-aviexporterclientmwdll-or-one-of-its-dependencies-the-specified-module-could-not-be-found