Ask a Question related to ASP.NET Security, Design and Development.
-
flemming eriksen #1
DllImport to unmanaged
Hello NG
From a Web Project (C#, XP-box) I want to call unmanaged code :
so
[DllImport("mydll.dll", EntryPoint="FirstFunc")]
private static extern int FirstFunc();
BUT when I in my C# prog call FirstFunc(), I get "Unable to load dll
(mydll)"
I have copied mydll.dll from a to b without success.
So where should the dll be located and which access-rights should it be
equiped with?
(haven't found the rules)
Thanks,
flemming
flemming eriksen Guest
-
dllimport and web services
I have an C#/ASP.Net 1.1 Web Service that has an exposed Web Method that uses an unmanaged DLL via the DllImport Attribute. Is one copy of the DLL... -
DllImport Error
Hello friends, I need to load an unmanaged dll(which i wrote for license control) from system32 folder and then my asp. net project will read the... -
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#... -
DllImport and WebMethod and STAThread
I'm trying to use a 3rd party DLL, which I have no control over, in my WebService (written in C#). However, every time my WebService tries to call... -
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... -
Paul Glavich [MVP ASP.NET] #2
Re: DllImport to unmanaged
It should be in either the /bin directory or in c:\windows\system32
directory. You will need to grant the "interop" permission as well as by
default, web apps cannot access interop code. You can do this via the .Net
framework configuration inthe policy section, and allow interop for the
machine group.
--
- Paul Glavich
ASP.NET MVP
ASPInsider ([url]www.aspinsiders.com[/url])
"flemming eriksen" <flericsson@kabnosapma.com> wrote in message
news:O1HQredDFHA.2676@TK2MSFTNGP12.phx.gbl...> Hello NG
>
> From a Web Project (C#, XP-box) I want to call unmanaged code :
>
> so
>
> [DllImport("mydll.dll", EntryPoint="FirstFunc")]
> private static extern int FirstFunc();
>
> BUT when I in my C# prog call FirstFunc(), I get "Unable to load dll
> (mydll)"
> I have copied mydll.dll from a to b without success.
>
> So where should the dll be located and which access-rights should it be
> equiped with?
> (haven't found the rules)
>
>
> Thanks,
> flemming
>
>
>
Paul Glavich [MVP ASP.NET] Guest



Reply With Quote

