How to fix the The type initializer for Emgu.CV.CvInvoke threw an exception problem when deploying to azure web apps - Digital Tool Factory blog How to fix the The type initializer for Emgu.CV.CvInvoke threw an exception problem when deploying to azure web apps - Digital Tool Factory blog

How to fix the The type initializer for Emgu.CV.CvInvoke threw an exception problem when deploying to azure web apps

I’ve been doing a little Facial Recognition lately – then came across the following error “The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception.” after I deployed to azure web apps.  Everything was working fine locally.

After doing more digging I realized that the actual .exe files for open cv were not being included in the web deployment – all that was necessary was to include the x86 and x64 directories in the project in the Solution Explorer in the project and presto!  Everything works wonderfully.

 

Written By Steve French

 

One response to “How to fix the The type initializer for Emgu.CV.CvInvoke threw an exception problem when deploying to azure web apps”

Leave a Reply

Your email address will not be published. Required fields are marked *






Copyright 2011 Digital Tool Factory. All Rights Reserved. Powered by raw technical talent. And in this case, WordPress.