[英]EmguCV Exception when published on IIS
如果我在本地IIS上調試或運行它,我的ASP.NET App可以正常工作。 但是,如果我將其發布到IIS上,則好像EmguCV失去了所需的dll。 我的VS項目的bin文件夾與IIS上的bin文件夾相同。
發生以下異常:'Emgu.CV.CvInvoke'的類型初始化器引發了異常。 StackTrace:在Emgu.CV.Image 2.處為Emgu.CV.CvInvoke.cvCreateImageHeader(大小大小,IPL_DEPTH深度,Int32通道)在Emgu.CV.Image 2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image
處為2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image
.set_Bitmap(位圖)值)在第213行的CustomerserviceWizard.ImageHelper.DecodeUrl(LuminanceSource源,位圖位圖,列表1方法)處
任何幫助表示贊賞。
我曾經遇到過類似的問題,也許這對您有幫助:請檢查IIS應用程序池設置,並確保在“高級設置”下啟用32位應用程序。
好吧,經過大量研究和研究,我終於說服了我的老板只使用台式PC通過EmguCV處理圖像。 (非常明顯的)例外原因是服務器中缺少nVidia Cuda GPU。
當我嘗試在IIS上執行EmguCV時顯示錯誤- Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
異常The type initializer for 'Emgu.CV.CvInvoke' threw an exception
。
就我而言,我通過為Windows服務器(在我的情況下為Windows Server 2012 R2)啟用UI桌面體驗解決了此問題,因為默認情況下,Microsoft從未在Windows Server上啟用該功能。
解
對於Windows Server 2008
對於Windows Server 2012
希望此解決方案可以為您提供幫助:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.