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 4 1377
"Ben" <Be*@discussion s.microsoft.com > wrote in message
news:7E******** *************** ***********@mic rosoft.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.
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*@discussion s.microsoft.com > wrote in message news:7E******** *************** ***********@mic rosoft.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.
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*@discussion s.microsoft.com > wrote in message
news:0B******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > wrote in message
| > news:7E******** *************** ***********@mic rosoft.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.
| >
| >
| >
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*@discussion s.microsoft.com > wrote in message news:0B******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > wrote in message | > news:7E******** *************** ***********@mic rosoft.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. | > | > | > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the monitoring -
but do I need to somehow involve another thread to allow the service to do
other stuff as well, or is another thread created automatically when the
FileSystemMonitor object is created?
|
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: Document settings\ServerName\ASPNET\Local
settings\Temp
I said it must be a typo, they meant to say c:\Documents And Settings\Server
Name\ASPNET\Local settings\temp.
|
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 (other than the service being stopped) it
would restart it. I have written the service to do just this, and for
testing purposes I am running the program Notepad. And I even have it
making entries in the System Event Log.
However, and this is my...
|
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 in
background as NT service. I got a example code: SmallestService.py from
chapter 18 of the book "Python Programming On Win32" by Mark Hammond
etc. The code is as follows and runs well as an NT service.
|
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?
Why do I need to set a property within my code to the service name?
Are all these required or am I just doing this for consistency purposes?
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |