How to call DLLs in Web Service

S

Siegfried Heintze

For a windows or console mode application to call a function in a DLL, you
just put the DLL in the current directory or the same directory as EXE
(assuming you don't have access to directories like WinNT/System32).

How can I write a DLL so the ASP.NET process (aspnet_wp.exe I believe) will
find it in same directory as my web service? Hmmm...
I could
(1) Write some C# code to alter the PATH variable and put the current
directory in that page
(2) Use platform invoke to call load library and explicitly specify the
path to the DLL.
Any other ideas?
 

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

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,688
Members
48,796
Latest member
Greg L.

Latest Threads

Top