'Emgu.CV.CvInvoke'的类型初始值设定项引发了Win8 64bit VS2012的异常 [英] The type initializer for 'Emgu.CV.CvInvoke' threw an exception for Win8 64bit, VS2012

查看:84
本文介绍了'Emgu.CV.CvInvoke'的类型初始值设定项引发了Win8 64bit VS2012的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用EmguCV在Visual Studio中创建网站。收到错误'Emgu.CV.CvInvoke'的类型初始化程序引发了一个异常,并带有内部异常。格式错误。 (来自HRESULT的异常:0x8007000B)。

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位

Windows 8 64-bit

VS2012

适用于Windows x64的Emgu库2.3

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.

我已经将所有DLL复制到了'网站\bin 文件夹。因此,我怀疑这是否是问题所在。我也将这些DLL放入 System32 SysWOW64 文件夹中。没用。

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.

推荐答案

通常,当您忘记复制或包含opencv dll或在Windows中出现错误时,会发生此错误。您的MSVCRT安装。您可能会在 Emgu Wiki

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.

这篇关于'Emgu.CV.CvInvoke'的类型初始值设定项引发了Win8 64bit VS2012的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆