473,804 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ 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****@adssupp ort.net
Nov 20 '05 #1
3 1104
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.co m> wrote in message
news:OV******** *****@TK2MSFTNG P09.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
1860
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 break point is (presumably) hit, but after a long pause there is an error that says "Source code cannot be found" I have tried:
6
25203
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 in a source code, maybe the source code becomes bigger that some hidden threshold, the debugger can't enter into this code anymore. I can use this web service, all methods but can't see in debugger what's going on. I have already catched this...
0
3232
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 converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
16
4230
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 project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
5
3651
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 New System.Diagnostics.Process 'p.Start(MDEPDirStr & "macrun.exe", sPPTOut) p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE") 'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
3
1696
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 and also know how to debug WinForms apps, Console Apps and ASP.NET apps in Visual Studio ..NET 2003. It occurs that this is the first time I am debugging a Web service.
0
1815
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 system is Windows XP Pro and the test machine is Windows 2003, both running the latest upgrades; Visual Studio 2005 is installed on the development system and the .Net 2.0 framework is installed on the test system. The two systems do not have the...
4
3614
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
2776
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 unable to attach to the process when running from the web server. Can someone tell me how to remote debug an ASP.Net Website that does not genate a dll or PDB file? Thanks in advance! Rick
7
4113
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 service. But when I hit F5 in VS2008 I get the following error message. . . A binding instance has already been associated to listen URI 'http://localhost:8877/VtaxDataService'. If two endpoints want to share the same ListenUri, they must also...
0
9711
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10343
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...
1
10335
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10088
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
6862
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
5529
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
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
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...

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.