Giter Site home page Giter Site logo

Running Emgu in server IIS about emgucv HOT 12 OPEN

joaobdc avatar joaobdc commented on May 21, 2024
Running Emgu in server IIS

from emgucv.

Comments (12)

sopheakmorm avatar sopheakmorm commented on May 21, 2024 15

Hey @joaobdc , you need to enable UI Desktop experience for windows server because Microsoft never enabled that feature on Windows Server by default,
You can follow these above steps :
Enable Desktop Experience on Window Server

Hope this solution can help you :)

from emgucv.

bernd5 avatar bernd5 commented on May 21, 2024 1
  • The default .net runtime is 32 Bit... (BadImageFormatException usually means a 32 bit app found / tried to load a 64 bit dll)

from emgucv.

ralphcode avatar ralphcode commented on May 21, 2024 1

Thanks @sopheakmorm. After hours of investigation our Windows 2012R2 server needed this Desktop Experience feature. After installing this, all working as expected 👍

from emgucv.

chamnan avatar chamnan commented on May 21, 2024 1

@sopheakmorm you're awesome, saved my day.

from emgucv.

Squiggle avatar Squiggle commented on May 21, 2024 1

Thanks for the solution. This fixed it for us as well.

emgucv team - is this requirement documented anywhere?

from emgucv.

joaobdc avatar joaobdc commented on May 21, 2024

After copying the x64 dlls directly to the bin directory of the build the error changed to:

System.TypeInitializationException: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
   at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
   at Emgu.CV.CvInvoke..cctor()
   --- End of inner exception stack trace ---
   at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IplDepth depth, Int32 channels)
   at Emgu.CV.Image`2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels)
   at Emgu.CV.Image`2.set_Bitmap(Bitmap value)
   at VerifyID.Managers.ImageTreatmentsManager.ExtractDocumentFromImage(Bitmap bitmap)
   at VerifyID.VerifyWorker.ExecuteOCR(BigIdRequest request, BigIdEvent bigIdEvent)

from emgucv.

jovargas avatar jovargas commented on May 21, 2024

Wich Windows Server version are you running?
Had the same problem on WS 2012 R2, I then tested on WS 2016 Standard and it worked.
There is something about Microsoft Mainstream support for older versions that avoids EmguCV to work properly.

from emgucv.

vzhadeyev avatar vzhadeyev commented on May 21, 2024

Try to copy both x86 and x64 folder and configure build for "Any CPU", so it will depend only on your IIS AppPool settings (if you have no any other dependences built for specific architecture).

from emgucv.

sopheakmorm avatar sopheakmorm commented on May 21, 2024

Good job @Ralpharoo

from emgucv.

a-jahanshahlo avatar a-jahanshahlo commented on May 21, 2024

@sopheakmorm OMG this take several hours from me.
You are really awesome . 🥇

from emgucv.

aanjunian avatar aanjunian commented on May 21, 2024

Subhanallah, Alhamdulillah... Jazakallah khoir @sopheakmorm Thanks a lot

from emgucv.

huytran123 avatar huytran123 commented on May 21, 2024

I have same issue when i publish website on IIS Server, are there any solutions if i can not "Enable Desktop Experience on Window Server". Because i am using share hosting. My Services Provider do not allow "Enable Desktop Experience on Window Server".

Thanks All

from emgucv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.