Why doesn't .NET find the OpenSSL.NET dll?
Posted
by Lazlo
on Stack Overflow
See other posts from Stack Overflow
or by Lazlo
Published on 2009-09-08T20:26:11Z
Indexed on
2010/05/11
12:04 UTC
Read the original article
Hit count: 450
EDIT (the whole question, it was too unclear)
I want to use OpenSSL.NET
The OpenSSL.NET install instructions page: INSTALL
Make sure you have libeay32.dll and ssleay32.dll in the current working directory of your application or in your PATH. DONE
In your .NET project, add a reference to the ManagedOpenSsl.dll assembly. DONE
I have put libeay32.dll
and ssleay32.dll
in both my bin/Debug
and bin/Release
directories. I have also put them in system32
.
Here is my FULL code:
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
OpenSSL.Crypto.RSA rsa = new OpenSSL.Crypto.RSA();
}
catch (Exception e)
{
Console.WriteLine(e.InnerException.Message);
}
Console.Read();
}
}
}
I get the following error: (Unable to load DLL 'libeay32')
Here is the Process Monitor log (upon request):
What am I doing wrong? Why isn't the DLL found?
© Stack Overflow or respective owner