Help: Can I Use a Windows DLL in Web Service?

G

Guest

I need to use a Windows Dll in a C# Web Service, but the Web Service can't
locate the Dll at runtime. I tried to run debugger, which virtually hangs the
Virtual Studio 2005. Can I ask for some guru help here?

Thanks a lot!
 
W

Willy Denoyette [MVP]

|
| I need to use a Windows Dll in a C# Web Service, but the Web Service can't
| locate the Dll at runtime. I tried to run debugger, which virtually hangs
the
| Virtual Studio 2005. Can I ask for some guru help here?
|
| Thanks a lot!
| --
| Thanks,
|
| Ben

Specify the full path in the DllImport.

Willy.
 
G

Guest

Thanks, Willy. I was trying your method but got runtime error, and I still
can't launch the Visual Studio debugger which makes debugging also
impossible. Any idea how to fix that?
 
W

Willy Denoyette [MVP]

What runtime error? how did you declare your DllImport signature, and are
you sure you (the webservice's identity) have read access to the load
library.
And what exactly do you mean with can't launch debugger.

Willy.

| Thanks, Willy. I was trying your method but got runtime error, and I still
| can't launch the Visual Studio debugger which makes debugging also
| impossible. Any idea how to fix that?
|
| --
| Thanks,
|
| Ben
|
|
| "Willy Denoyette [MVP]" wrote:
|
| >
| > | > |
| > | I need to use a Windows Dll in a C# Web Service, but the Web Service
can't
| > | locate the Dll at runtime. I tried to run debugger, which virtually
hangs
| > the
| > | Virtual Studio 2005. Can I ask for some guru help here?
| > |
| > | Thanks a lot!
| > | --
| > | Thanks,
| > |
| > | Ben
| >
| > Specify the full path in the DllImport.
| >
| > Willy.
| >
| >
| >
 
G

Guest

I'm working on an integration project, trying to use a Windows Dll inside a
C# Web Service. The Windows Dll works fine in my test Windows app. I used it
in the Visual Studio 2005 Web Service project, and it compiles fine, but I
can't start the Visual Studio debugger for runtime testing/debugging---the
error message saying I need to reinstall Visual Studio. Can someone help me
out?
 

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

Top