Hi Michael,
When you running in ASP.Net what problem do you get?
May be you can try to use absolute path to see if the problem will
arise.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Michael Tissington" <mi*****@nospam.com>
| References: <un**************@tk2msftngp13.phx.gbl>
<u8**************@TK2MSFTNGP10.phx.gbl>
| Subject: Re: DLLImport and Unable to Load DLL
| Date: Thu, 11 Sep 2003 15:27:12 -0700
| Lines: 36
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u0**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups:
microsoft.public.dotnet.framework.aspnet,microsoft .public.dotnet.languages.c
sharp
| NNTP-Posting-Host: antelope.oaklodge.com 63.67.71.5
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:184228
microsoft.public.dotnet.framework.aspnet:176211
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Mattias,
|
| Thanks for the LoadLibrary link, however this does not seem to work when
| running as an ASP.NET web page.
|
| I guess I need to get the path to the original location of the page and
not
| the temporary location of the assembly.
|
| --
| Michael Tissington
| Oaklodge Technologies
|
http://www.oaklodge.com/technology
|
| "Mattias Sjögren" <ma********************@mvps.org> wrote in message
| news:u8**************@TK2MSFTNGP10.phx.gbl...
| > Michael,
| >
| > >Should I specifiy the path to the dll in the DllImport?
| >
| > See
http://www.dotnetinterop.com/faq/?q=LoadLibrary
| >
| > On the platforms where it's available, you can also call the
| > SetDllDirectory API.
| >
| >
http://msdn.microsoft.com/library/en...ldirectory.asp
| >
| >
| >
| > Mattias
| >
| > --
| > Mattias Sjögren [MVP] mattias @ mvps.org
| >
http://www.msjogren.net/dotnet/
| > Please reply only to the newsgroup.
|
|
|