在 IIS 上发布时出现 EmguCV 异常 [英] EmguCV Exception when published on IIS

查看:40
本文介绍了在 IIS 上发布时出现 EmguCV 异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在本地 IIS 上调试或运行它,我的 ASP.NET 应用程序运行良好.但是如果我将它发布到 IIS 上,看起来 EmguCV 会丢失它需要的 dll.我的 VS 项目的 bin 文件夹和 IIS 上的 bin 文件夹是相同的.

My ASP.NET App works fine if I debug or run it on my local IIS. But if I publish it onto an IIS, it looks like EmguCV looses the dlls it needs. The bin folder of my VS project an the bin folder on the IIS are identical.

出现以下异常:'Emgu.CV.CvInvoke' 的类型初始值设定项抛出异常.StackTrace:在 Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IPL_DEPTH depth, Int32 channels) at Emgu.CV.Image2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image2.set_Bitmap(Bitmap value) at CustomerserviceWizard.ImageHelper.DecodeUrl(LuminanceSource source, Bitmap bitmap, List`1 methods) in :line 213

The following exception occurs: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. StackTrace: at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IPL_DEPTH depth, Int32 channels) at Emgu.CV.Image2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image2.set_Bitmap(Bitmap value) at CustomerserviceWizard.ImageHelper.DecodeUrl(LuminanceSource source, Bitmap bitmap, List`1 methods) in :line 213

感谢任何帮助.

推荐答案

好吧,经过大量的研究和白发,我终于说服我的老板只使用台式 PC 使用 EmguCV 处理图像.异常的(非常明显的)原因是服务器中缺少 nVidia Cuda GPU.

Alright, after a lot of research and grey hair I finally convinced my boss to just use an Desktop PC to process images with EmguCV. The (quite obvious) reason for the exception was the missing nVidia Cuda GPU in the server.

这篇关于在 IIS 上发布时出现 EmguCV 异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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