471,354 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

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

Ben

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
Feb 17 '06 #1
4 1297

"Ben" <Be*@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
|
| 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.
Feb 17 '06 #2
Ben
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:

"Ben" <Be*@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
|
| 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.

Feb 17 '06 #3
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.

"Ben" <Be*@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
| 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:
|
| >
| > "Ben" <Be*@discussions.microsoft.com> wrote in message
| > news:7E**********************************@microsof t.com...
| > |
| > | 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.
| >
| >
| >
Feb 17 '06 #4
Ben
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?

--
Thanks,

Ben
"Willy Denoyette [MVP]" wrote:
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.

"Ben" <Be*@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
| 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:
|
| >
| > "Ben" <Be*@discussions.microsoft.com> wrote in message
| > news:7E**********************************@microsof t.com...
| > |
| > | 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.
| >
| >
| >

Feb 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Simon Harvey | last post: by
13 posts views Thread by Siegfried Heintze | last post: by
5 posts views Thread by Andrew | last post: by
5 posts views Thread by dm3281 | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.