unable to load cvextern in a c# project

前端 未结 8 1328
青春惊慌失措
青春惊慌失措 2020-12-03 17:18

i\'m trying to debug my program, using emgu and HaarCascade in c#. i\'m getting an exception like so :

Unable to load DLL \'cvextern\': The specifie

8条回答
  •  伪装坚强ぢ
    2020-12-03 17:29

    My problem for this error was that VS2015 was running the web project in 32 bit IIS Express. The fix was to ensure it was using 64 bit IIS Express

    I added this code at startup to remind myself when setting up a new machine

    if (IntPtr.Size != 8)
    {
         throw new Exception("Change VS options to ensure 64bit IIS Express");
    }
    

提交回复
热议问题