473,811 Members | 3,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gui/Monitor/Config/Controller for a Windows Service

Hi NG

I'm have made a server application (WinForms) but I would very much
like to move the tasks that my app runs into a Windows Service.

But have you any experience building an communication interface between
the Gui and a Windows Service, I'd like to hear from you.

Is the solution:
Sockets - with commands and data send directly
Remoting?
Web Services?
COM+?
Something else?

It's small size data that has to be transfered. Both the Winforms App
and the Windows Service can communicate with a SQL Server (same
database).
The Winforms App. also has to show what the Windows Service is doing
right now - realtime is preferred but not required.

What I want to end up with is the behavior something like WebTrends
where you have a Server that runs as a Windows Service and a
WebInterface (in my case WinForms app) running on the same machine. The
Windows Service does all the hard work while the Winforms app. tells
the Windows Service how to do it, and shows what the Windows Service is
working on.

Any suggestions?

Apr 14 '06 #1
1 2864
I've written a number of services for our office using a number of
different communication methods. For short simple messages Sockets
work just fine but when I want to get back a larger chunk of data (over
45k) I chose the remoting route.

Debugging services is a galactic pain when dealing with threads and
socket issues but once it's all working it's great.

My only complaint against .net services is the memory footprint of the
services. The template that comes with VS will generate a service that
consumes between 16-24MB on startup while doing nothing. I've started
experimenting with a windows service that dynamically loads in modules
into different appdomains to reduce the memory footprint.

Also, loading modules that are compiled with NGEN and published into
the GAL into a service makes them run a little slower overall. After
an article I read in MSDN magazine apparently thats perfectly normal.

Apr 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1516
by: Fritz Bosch | last post by:
We are in the process of refactoring our GUI-based test application for radio equipment and are rewriting a significant part in Python. The new architecture will substantially be based on the model-view-controller pattern, as follows: User Input | v +-------------+ service request service request +-------------+
0
1058
by: hegdeuday_nick | last post by:
Want to develop a component/app that performs like a Windows Service Service Controller. Basically I am interested in the methods and events of a service controller to be implemented in an application. This application is going to be like a mediator/controller for many other subscribing applications Do you think its a good idea to inherit System.ServiceProcess.ServiceController?
3
3875
by: maxim iulian | last post by:
I want to create o program in C# that's monitor IIS server. Thank's a lot ! Maxim Iulian *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
4
2747
by: \Rob\ | last post by:
On a domain controller, the ASPNET (v1.1) worker process (aspnet.wp.exe) runs under the IWAM_machinename acount (IIS 5). I have expressly denied this user the logon locally right in the domain controller GPO and yet this profile gets created under the Document and Settings folder. The IWAM_machinename registry hive remains loaded when the process ends. I have to manually unload it with regedt32.exe. Is this normal behavior?
1
5746
by: SL | last post by:
How do I set up access to a file on a Windows Server 2003 Domain Controller that also has IIS? The file sits on another server. The Domain Controller / IIS server connects to this file through a share. Domain controllers have no local users so ASPNET user is not available. Microsoft states, "On Windows 2003 domain controller servers, ASP.NET applications run under the NETWORK SERVICE identity (regardless of the IIS isolation mode)....
6
1962
by: Me | last post by:
I am looking for some suggestions or sample code for an application the sits in the system tray (a TSR) and then executes code that I specify when a certain executable is launched. As an example, an TSR that pops a Dialog Box up in the middle of the screen when winword.exe is launched. Any ideas, John
3
2621
by: Chris Dunaway | last post by:
I am writing a Windows Service that reads and processes files on a set schedule. I want to create a second app that can monitor the Windows service. The Windows service will write trace messages at certain points while executing. The monitoring app I want to write will be very simple, just picking up these traces and displaying them to show progress of the service. My question is what is the best method of communication between the...
0
1093
by: Miikka Laakso | last post by:
I have custom windows service (ServiceBase) and user interface for the service controller (ServiceController). If something goes wrong, for example during service startup, is there any way to controller to ask from the service about the reason why it couldn't be started. For example function like GetServiceCustomStatus( out int iStatus ) would be enough.
0
1052
by: vaportrail | last post by:
I am designing a new db server and have some questions. I am a UNIX guy so please be gentle :) App: 500G data 3000+ tables 90/10 read/write (currently on AIX/DB2) Hardware: Dell 2950 2xquad core 32G ram 2x146G internal drives raid 1 for the OS and SQL install 2 MD1000 shelves 15 146G 15K drives with 1 dedicated to hot spare each 1 SAS controller (the next box could have 2) 4 disks raid 10 for logs
0
9605
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,...
0
10647
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10384
jinu1996
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...
0
10130
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
agi2029
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...
1
7667
isladogs
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...
0
6887
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();...
0
5553
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...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.