Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Windows service that makes use of the EMGU.CV nuget package.

I can install as a web service perfectly happily on my dev machine (Windows 10) with installutil and everything works beautifully.

When I try and install the same service on a server (Windows Server 2012) everything appears okay but I hit an exception as soon as I try to call a constructor from a DLL ...

Outer exception: The type initializer for 'Emgu.CV.CvInvoke' threw an exception.

Inner exception: Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The service is running under the local system account.

I'm sure I'm overlooking something very obvious here, but ...

What I have tried:

I have tried copying the appropriate DLLs into Windows/system32

I've also tried changing the working directory at the top of my OnStart():

Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;


Neither has worked.
Posted
Updated 5-Sep-19 0:51am

1 solution

Maybe that can sched a light on your issue?
SO: Emgu Could not found cvextern in IIS server[^]
 
Share this answer
 
Comments
PeejayAdams 5-Sep-19 7:03am    
That looks very useful, thank you. I've been Googling for a more generic solution but it does appear to be something very odd in the EMGU set-up!
phil.o 5-Sep-19 7:11am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900