编辑(整个问题,它太不清楚)为什么.NET不能找到OpenSSL.NET DLL?
我想用OpenSSL.NET
的OpenSSL.NET安装说明页: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
我已经把libeay32.dll
和ssleay32.dll
都在我的bin/Debug
和bin/Release
目录。我也把它们放在system32
。
这里是我的全码:
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();
}
}
}
我收到以下错误: Unable to load DLL 'libeay32' http://localhostr.com/files/a719c5/Error.gif (无法加载DLL 'libeay32')
这里是过程监控日志(根据要求): alt text http://localhostr.com/files/726a46/ProcMon.gif
我在做什么错?为什么没有找到该DLL?
BTW,C#不搜索对于DLL - .NET的确如此。 – 2009-09-08 20:33:18
你的系统是64位的吗?更重要的是,你的.NET应用AnyCPU或x86? – ConsultUtah 2009-09-08 20:55:04
我的系统是32位的,我不知道如何检查其他设置。 – Lazlo 2009-09-08 21:14:19