locked
Using DLL in IIS 8.0 RRS feed

  • Question

  • User1291592770 posted

    I have a ASP.NET project that use OPENSSL DLL's to check a signature of a certificate.

    The OPENSSL DLL's are compiled for 32bit environement, so my ASP.NET project is build for x86 at development time.

    I can use and test very well in IIS EXPRESS (Windows 8), the dll is loading and work fine.

    On the same Windows 8 Machine, if I publish the app into IIS 8.0, I got this error:

    Could not load file or assembly 'ManagedOpenSsl' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    I've tried all the ways in IIS, also enabling the 32-bit application in the pool. but the process is interrupted and forcibly returns 503 error.

    How can I solve this matter? I need to publish this project to the production server.

    Sunday, March 31, 2013 3:30 AM

All replies

  • User13850534 posted

    Have you checked if the refered DLL exists from website bin folder?

    Tuesday, April 2, 2013 5:31 AM
  • User1291592770 posted

    Yes of course, the problem is related to the different plattoform, the OPENSSL dll is build for x86 and my web service is for ANY CPU.

    Any suggestion?

    Tuesday, April 2, 2013 11:41 AM