[Mono-bugs] [Bug 636915] New: native libraries needed by DllImport not found in non-app directory containing the executing assembly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 3 02:39:32 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=636915

https://bugzilla.novell.com/show_bug.cgi?id=636915#c0


           Summary: native libraries needed by DllImport not found in
                    non-app directory containing the executing assembly
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: interop
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: joe at mistachkin.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8)
Gecko/20100722 Firefox/3.6.8

A native library required for P/Invoke cannot be found by Mono [on Windows] if
it only exists in the directory of the currently executing assembly which has
been loaded from an arbitrary directory via the Assembly.LoadFrom method.  This
dynamically loaded assembly contains the DllImport attribute in question.

This scenario works correctly when running under the .NET Framework.


Reproducible: Always

Steps to Reproduce:
1. Compile all the projects attached to this bug report (3 total).
2. There should be two managed assemblies (one EXE & one DLL) and a native
library (DLL).
3. Run the EXE.

Actual Results:  
Mono fails to locate the native library and throws a DllNotFoundException.


Expected Results:  
The native library should load and execute correctly.

-- 
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