The type initializer for 'Emgu.CV.CvInvoke' threw an exception for Win8 64bit, VS2012

筅森魡賤 提交于 2019-12-11 13:14:37

问题


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

Following are the details of my setup:

Windows 8 64-bit

VS2012

Emgu library 2.3 for Windows x64

Most of the help I saw in forums was for a project, but in case it matters, this is a website.

I have already copied all DLLs into 'Website\bin' folder. So, I doubt if that is the problem. I put these DLLs into System32 and SysWOW64 folders as well. Didn't work.


回答1:


Normally, this error occurs when you forgot to copy or include the opencv dlls or there's an error in your MSVCRT installation. You may see additional info at Emgu Wiki.



来源:https://stackoverflow.com/questions/14426942/the-type-initializer-for-emgu-cv-cvinvoke-threw-an-exception-for-win8-64bit-v

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!