Hi all
Is it possible to retrieve data from a Windows Service? Let's say I have a
service that contains code in the OnStart method that creates a DataSet,
from a client application I'm using a ServiceControll er to check that the
Service on the specified machine is running, can I get the DataSet that is
held within the Service? Is it possible to create Properties or have a
function that returns the DataSet?
Kind Regards,
Steve 3 4785
Steve,
The "easiest" way would be for the Windows Service to be a .NET Remoting
host.
Then you client can use .NET Remoting to connect to the Service & retrieve
any information it wants.
Matthew MacDonald's book "Microsoft Visual Basic .NET Programmer's Cookbook"
from MS Press discusses in more detail various methods of interacting with a
Windows Service.
Hope this helps
Jay
"Steve Amey" <stevea@centuri on-ms_RemoveThis_. co.uk> wrote in message
news:OJ******** ********@TK2MSF TNGP12.phx.gbl. .. Hi all
Is it possible to retrieve data from a Windows Service? Let's say I have a service that contains code in the OnStart method that creates a DataSet, from a client application I'm using a ServiceControll er to check that the Service on the specified machine is running, can I get the DataSet that is held within the Service? Is it possible to create Properties or have a function that returns the DataSet?
Kind Regards, Steve
Hi Jay
Thanks for your reply.
I want to keep away from Remoting if possible. Do you have any links to
resources that describe how to share data across multiple instances of an
application? They do not have to share data across machine boundaries, so
remoting is not necessarily needed if there are other viable solutions.
What I'm looking for is to store a DataSet in 1 place and have all the
applications running (they will be the same application, just many
instances) accessing that data. I was hoping I could extract a DataSet from
a Windows Service, but I guess that's not possible if you don't want to use
remoting.
The data shared should only be in memory, not persisted to any files or
databases.
Thanks for any help,
Steve.
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:OV******** *****@TK2MSFTNG P14.phx.gbl... Steve, The "easiest" way would be for the Windows Service to be a .NET Remoting host.
Then you client can use .NET Remoting to connect to the Service & retrieve any information it wants.
Matthew MacDonald's book "Microsoft Visual Basic .NET Programmer's
Cookbook" from MS Press discusses in more detail various methods of interacting with
a Windows Service.
Hope this helps Jay
"Steve Amey" <stevea@centuri on-ms_RemoveThis_. co.uk> wrote in message news:OJ******** ********@TK2MSF TNGP12.phx.gbl. .. Hi all
Is it possible to retrieve data from a Windows Service? Let's say I have
a service that contains code in the OnStart method that creates a DataSet, from a client application I'm using a ServiceControll er to check that
the Service on the specified machine is running, can I get the DataSet that
is held within the Service? Is it possible to create Properties or have a function that returns the DataSet?
Kind Regards, Steve
Steve,
..NET Remoting is used to share data across process boundaries on the same
machine, just as easily as it can across machines.
The only caveat is, I understand that currently you need to use TCP/IP on
the same machine, where as VS.NET 2005 (aka Whidbey, due out later in 2005)
will have an IpcChannel that will allow you to use .NET Remoting on a single
machine without TCP/IP: http://msdn2.microsoft.com/library/tz3ew9z6.aspx
I believe you could implement an IpcChannel for VS.NET 2002 or 2003, however
I don't know of any samples.
You might try the microsoft.publi c.dotnet.framew ork.remoting newsgroup.
Alternatively you could try to use memory mapped files or even normal files.
The Service could save the data, your control program could read the data.
Hope this helps
Jay
"Steve Amey" <stevea@centuri on-ms_RemoveThis_. co.uk> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. Hi Jay
Thanks for your reply.
I want to keep away from Remoting if possible. Do you have any links to resources that describe how to share data across multiple instances of an application? They do not have to share data across machine boundaries, so remoting is not necessarily needed if there are other viable solutions.
What I'm looking for is to store a DataSet in 1 place and have all the applications running (they will be the same application, just many instances) accessing that data. I was hoping I could extract a DataSet from a Windows Service, but I guess that's not possible if you don't want to use remoting.
The data shared should only be in memory, not persisted to any files or databases.
Thanks for any help, Steve.
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message news:OV******** *****@TK2MSFTNG P14.phx.gbl... Steve, The "easiest" way would be for the Windows Service to be a .NET Remoting host.
Then you client can use .NET Remoting to connect to the Service & retrieve any information it wants.
Matthew MacDonald's book "Microsoft Visual Basic .NET Programmer's Cookbook" from MS Press discusses in more detail various methods of interacting with a Windows Service.
Hope this helps Jay
"Steve Amey" <stevea@centuri on-ms_RemoveThis_. co.uk> wrote in message news:OJ******** ********@TK2MSF TNGP12.phx.gbl. .. > Hi all > > Is it possible to retrieve data from a Windows Service? Let's say I > have a > service that contains code in the OnStart method that creates a > DataSet, > from a client application I'm using a ServiceControll er to check that the > Service on the specified machine is running, can I get the DataSet that is > held within the Service? Is it possible to create Properties or have a > function that returns the DataSet? > > Kind Regards, > Steve > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jason Schneekloth |
last post by:
Hey all....
I'm writing an app that needs to send/recieve data from other applications
running, I guess you could think of it as a data relay broker between running
applications. I had planned on creating a windows service to handle this,
but I found out that I cannot directly send/recieve data here, i can only
signal it. First off, am I...
|
by: Nathan Kovac |
last post by:
Yesterday afternoon I was getting the following errors in a windows service:
'DatabaseManager.DataComponent', 'Error', '3 Errors:
Line: 0 - Metadata file 'ScriptingMethods.dll' could not be found
Line: 0 - Metadata file 'RemoteLoader.dll' could not be found
Line: 0 - Metadata file 'wwScripting.dll' could not be found'
Service ran all...
|
by: Rachel |
last post by:
Hi,
I am using the data access application block successfully in our development
environment, however when I deploy to our testing server as Private
Assemblies I keep getting the following
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the...
|
by: OpticTygre |
last post by:
I have a windows service, and a separate desktop application used to
configure settings for the service. I'd also like to use the windows
application as a sort of debug, or notification window, to monitor the
activity of the service. What VB.NET programming techniques could be used,
and what resource documentation is there that may tell how...
|
by: Asus |
last post by:
Hello,
I'm new to Web Services.
I'm trying to develop a Web Service that retrieves some data out of a
database and sends them to the client as a DataSet when a method is invoked.
My question is: Is it possible to run another method on the Web Service
automatically to refresh the data? That means the Web Service should interact
as a Windows...
| |
by: Thomas Eichner |
last post by:
Hi,
does anybody know a public website which offers a service that displays all data send by a browser (or an app calling the website),
especially HTTP GET and POST data, browser data etc.?
I have a hard time finding what really my app is sending and this would be a great help!
Thank you very much !
Thomas
|
by: Jenbo |
last post by:
Hi all, I have a task at the minute which involves getting data from
csv files into a database and doing some nice auditing on the records
in there on a web front end. The csv files are going to be stored on a
file server and the web and database server will communicate no problem
with this. My question is this, what is the best way for the...
|
by: noah.blumenthal |
last post by:
I have created an application that uses 3 parts: 1) a windows service
that distributes email 2) a form that configures the settings
(incoming address, outgoing address, etc) for that service and 3) a
form that acts as a report for how that service is doing (emails sent,
etc).
I want the report form (3) to be updated real time with the...
|
by: Dylan |
last post by:
Hello,
I was trying to do a WCF tutorial (http://wcf.netfx3.com/content/
BuildingHelloWorld.aspx). I need to get the meta data from my service
usin svcutil.exe why is not working? Please see below:
E:\Program Files\Microsoft SDKs\Windows\v6.0\Bin>svcutil http://localhost/hello?wsdl
Microsoft (R) Service Model Metadata Tool
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |