unmanaged dll DllNotFoundException

P

Petr Makagon

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???!!!
 
Y

Yan-Hong Huang[MSFT]

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 www.sysinternals.com 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! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Petr Makagon" <[email protected]>
!Sender: "Petr Makagon" <[email protected]>
!Subject: unmanaged dll DllNotFoundException
!Date: Fri, 8 Aug 2003 02:29:51 -0700
!Lines: 7
!Message-ID: <[email protected]>
!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???!!!
!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top