473,233 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 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 1357

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Simon Harvey | last post by:
Hi everyone, I need to make a service that monitors a directory for changes in the files contained within it. I have two questions: 1. I'm going to be using a FileSystemWatcher object to do...
13
by: Siegfried Heintze | last post by:
I refered the engineer at my hosting service to http://support.microsoft.com/default.aspx?scid=kb;en-us;825738 where he tried to follow the directions there. He said there was no such file:...
5
by: Andrew | last post by:
Hey all, Requesting help from the VB.Net gurus in here. I was given a task to write a Windows Service (VB.Net) that would run an external program, and if that program closed for any reason...
3
by: zxo102 | last post by:
Hi there, I have a python application (many python scripts) and I start the application like this python myServer.py start in window. It is running in dos window. Now I would like to put it...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.