About
Pricing
Community
Teams
Start Free Trial
Log in
RadhaKrishnaKiJaya
asked on
10/1/2016
Debug Windows Service program in C#
Hello Experts,
I want to Debug a Windows Service program. Any idea how can I do that? When I do it by hitting F5, it works till a point. After that I get the attached message. Please help. Thank you in advance.
Thank you!
DebugWindowsService.png
.NET Programming
C#
4
1
Last Comment
RadhaKrishnaKiJaya
8/22/2022 - Mon
ste5an
10/1/2016
It depends on the concrete code and situation..
I develop service code as a class library. Thus allows to use unit test and to create a console application to test the code.
Also use a loging framework like
EntLib Logging
or
log4net
. And
https://support.microsoft.com/en-us/kb/815788
traces
are also an option.
RadhaKrishnaKiJaya
10/1/2016
ASKER
Hello ste5an,
Thank you! Do you have any sample code?
Thank you!
ASKER CERTIFIED SOLUTION
Lucas
10/2/2016
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
RadhaKrishnaKiJaya
10/6/2016
ASKER
Thank you Lucas. That worked.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
I develop service code as a class library. Thus allows to use unit test and to create a console application to test the code.
Also use a loging framework like EntLib Logging or log4net. And https://support.microsoft.com/en-us/kb/815788traces are also an option.