The type initializer for "Emgu.CV.CvInvoke" made an exception for Win8 64bit, VS2012

I am trying to use EmguCV to create a website in Visual Studio. Getting the error The type initializer for 'Emgu.CV.CvInvoke' threw an exception with internal exception An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B). An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B).

The following are the details of my installation:

Windows 8 64-bit

VS2012

Emgu 2.3 Library for Windows x64

Most of the help I saw on the forums was for the project, but if that matters, it is a website.

I have already copied all the DLLs to the Website\bin . Therefore, I doubt that this is a problem. I put these DLLs in the System32 and SysWOW64 . Does not work.

+1
source share
1 answer

This error usually occurs when you forget to copy or include opencv dll files or an error occurred while installing MSVCRT. You can see more information in the Emgu Wiki .

+1
source

Source: https://habr.com/ru/post/948366/


All Articles