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

  • Thread starter Thread starter Guest
  • Start date Start date
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!
 
|
| 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.
 
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?
 
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.
| >
| >
| >
 
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?
 
Back
Top