[Mono-bugs] [Bug 467215] New: DllImport ssleay32.dll throws System.DllNotFoundException
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jan 18 17:30:44 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=467215
Summary: DllImport ssleay32.dll throws
System.DllNotFoundException
Classification: Mono
Product: Mono: Runtime
Version: 2.2.x
Platform: 32bit
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: interop
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: barakawins at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Third Party Developer/Partner
I have compiled the OpenSSL package by hand. So, it has generated two
libraries:
-libeay32.dll
-ssleay32.dll
When i run the following code snippet, the system raise the
System.DllNotFoundException:
one.cs---------------------------------------------
[DllImport("ssleay32.dll")]
public static extern int some_function_name (string arg);
..
some_function_name("value");
-----------------------------------------------------
and running this other code snippet:
two.cs-----------------------------------------------
[DllImport("Kernel32", SetLastError = true)]
public extern static int LoadLibrary(string name);
..
Console.WriteLine("libeay32.dll: " + LoadLibrary("libeay32.dll").ToString ());
Console.WriteLine("ssleay32.dll: " + LoadLibrary("ssleay32.dll").ToString ());
..
-----------------------------------------------------
command> mono testing.exe
libeay32.dll: 1641545728
ssleay32.dll: 0
the handler to the seccond library seems to be bad.
I HAVE FOUND THE FOLLOWING SOLUTION:
commnad> del "c:\mono path\bin\libeay32.dll"
and, if i run the test again:
command> mono testing.exe
libeay32.dll: 21037056
ssleay32.dll: 22347776
and one.exe works fine!
======================================================
D:\pinvoke>mono --version
Mono JIT compiler version 2.2 (tarball)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none
Windows version: Windows Xp 2002, Service Pack 2.
OpenSSL version:
c:\mono path\bin\libeay32.dll: 0.9.7.3
my libeay32.dll: 0.9.8.10
ssleay32.dll: 0.9.8.10
regards.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list