unmanaged dll DllNotFoundException

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default unmanaged dll DllNotFoundException

    i have a c++ managed wrapper around unmanaged dll.

    when i use this wrapper from managed console app it works
    fine but when i use it in aspx i have DllNotFoundException
    occurred in Unknown Module.

    any idea???!!!
    Petr Makagon Guest

  2. Similar Questions and Discussions

    1. Web Service and unmanaged DLL using ADO
      Hi. I'm writting a web service (C#) that using an unmanaged DLL written in C++. This DLL uses ADO to access to a MySQL database. If I use this...
    2. DllImport to unmanaged
      Hello NG From a Web Project (C#, XP-box) I want to call unmanaged code : so private static extern int FirstFunc(); BUT when I in my...
    3. Unmanaged DLL and ADO
      I have a C# written webservice that calls an unmanaged DLL. The DLL uses ADO to access SQL database. I can call the DLL with no problem from a C#...
    4. Problems using a unmanaged DLL from ASP.NET
      Hi I need to access a unmanaged DLL from my ASP.NET page. This DLL (a "true" DLL, not a COM DLL) is a database manager with 2 DLLs and 1 .EXE (no...
    5. How to access unmanaged DLL from within ASP.NET (using VB.NET)
      (This is a continuation of my post from earlier today.) I have been semi-successful by using the good old DECLARE FUNCTION like this: Declare...
  3. #2

    Default RE: unmanaged dll DllNotFoundException

    Hello Petr,

    Thanks for posting in the group.

    Based on my experience, you could check the following:

    1) Is the unmanaged C++ dll a debug build that needed some debug dependency files loaded on the test machines?
    Please get a release build of the dll and test again.

    2) Where do you put the C++ unmanaged DLL? Please put it in ASP.NET web application bin directory or system32 direcotry
    to see if the problem is still there.

    3) Please download filemon and regmon from [url]www.sysinternals.com[/url] to see which file is "access denied" or "not found" when
    called from asp.net.

    Hope it helps.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !Content-Class: urn:content-classes:message
    !From: "Petr Makagon" <makagon@genesyslab.com>
    !Sender: "Petr Makagon" <makagon@genesyslab.com>
    !Subject: unmanaged dll DllNotFoundException
    !Date: Fri, 8 Aug 2003 02:29:51 -0700
    !Lines: 7
    !Message-ID: <071401c35d8f$9e5d0a70$a601280a@phx.gbl>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Thread-Index: AcNdj55dDjvUu4nERUSlkBYIWRkqWg==
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:166057
    !NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !i have a c++ managed wrapper around unmanaged dll.
    !
    !when i use this wrapper from managed console app it works
    !fine but when i use it in aspx i have DllNotFoundException
    !occurred in Unknown Module.
    !
    !any idea???!!!
    !


    Yan-Hong Huang[MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139