473,471 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

debugging a service

How on earth are you meant to debug a service in .net ? Clearly it wont let
me debug the service from the IDE, but running the service as a service on a
machine severely limits what you can do. debuggin by using the event log is
impossible.

Any ideas on how to best approach this ?

Olly

--
________________________________________________
ADSSupport.net
http://www.adssupport.net
Dedicated free Active Directory ServicesT support

email: oliver.marshall@no****@adssupport.net
Nov 20 '05 #1
3 1088
Hi Harry,

What do you mean impossible to use the Event Log? All you have to do is
keep a clunky MMC open, play with a waste of space foilder view, keep opening
and closing messages? Keep clearing down the log and 'yes, I'm sure, already'.
What more do you want?

At its worst, using the file system will be easier than the Event Log.
Leave that for going live. Just don't forget to keep flushing that debug file.

A better approach, perhaps: Is there anything particularly 'servicey'
about what your servioce does or is it an app that you just want to run as a
service?

If it's the latter, simply don't install it as a service. Write a GUI that
is separate and uses the service logic to do its thing. Then, when satisifed,
rebuild that same logic inside a Service framework.

If it's the former, you can use the same approach but write spoof servicey
stuff which will give your service correct values of your own choosing. Then,
as before, whack it back into a true service.

Regards,
Fergus
Nov 20 '05 #2
THanks Fergus,

Im convertng some vb6 apps to .net and thought i would use this as a chance
to convert some things to services with the new service feature of .net.

THink im gonna go shove hot pokers into my eyes instead.

Olly

"Fergus Cooney" <fi****@post.com> wrote in message
news:OV*************@TK2MSFTNGP09.phx.gbl...
Hi Harry,

What do you mean impossible to use the Event Log? All you have to do is keep a clunky MMC open, play with a waste of space foilder view, keep opening and closing messages? Keep clearing down the log and 'yes, I'm sure, already'. What more do you want?

At its worst, using the file system will be easier than the Event Log.
Leave that for going live. Just don't forget to keep flushing that debug file.
A better approach, perhaps: Is there anything particularly 'servicey'
about what your servioce does or is it an app that you just want to run as a service?

If it's the latter, simply don't install it as a service. Write a GUI that is separate and uses the service logic to do its thing. Then, when satisifed, rebuild that same logic inside a Service framework.

If it's the former, you can use the same approach but write spoof servicey stuff which will give your service correct values of your own choosing. Then, as before, whack it back into a true service.

Regards,
Fergus

Nov 20 '05 #3
Hi Olly,

ROFLMAO.

Well, when you're done, come here and we'll rub some cream (gently) into
them. It's been claimed that we're not a hospital here, but we can be good for
body, mind and soul, not to mention console.

I'd definitely recommend the VB6 App -> VB.NET App -> VB.NET Win Service
approach. The first stage will give you far more problems (ahem, challenges)
than the second stage.

Good luck. ;-)

Regards,
Fergus
Nov 20 '05 #4

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

Similar topics

3
by: David Evans | last post by:
Hi I have a service created in VS.NET, which I can install and run quite happily. After teh service is running, I can attach and run the debugger. However, if I set a breakpoint in the IDE the...
6
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody see the situation when the VS refuses to debug the Web Service at all? I can't catch why, the initially created Web Service can be debugged very easy but after some changes...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
3
by: Sathyaish | last post by:
How do you debug a web service in Visual Studio .NET 2003? To give you some background, I have been programming for some over 8 years now and know how to debug VB, VC++ apps in Visual Studio 6.0...
0
by: Ken Allen | last post by:
The MSDN documentation on remote debugging is a bit sparse, to say the least, and there is almost no information available on the 'best' way to configure this. I should note that my development...
4
by: John Wilmot | last post by:
I have a service that is set up to use remoting. Is there a way that calls from a web page to this service can be debugged in Visual Studio 2005?
3
by: Rick | last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to remote debug, when build ing the web site there is not a dll or PDB file generated. I can debug on my local machine but...
7
by: GaryDean | last post by:
(this was also posted on the MSDN WCF forum but the answers over there are not so good) I have a WCF Library hosted by IIS 6 and it all works fine. However I need to step through the code in the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.