473,396 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem debugging a windows service

I am having a problem trying to debug my windows service. The service
itself is working fine (it starts a timer, which writes a log entry
every 20 seconds). However, when I set my breakpoint on the line that
writes the log entry, the code never breaks - it just keeps writing
the log entries. I tried to attach my service to the running process
via Debug | Attach to Process (in VS 2005), but in the list of
Available Processes, my process is grayed out, and the Attach button
is disabled. Any idea what is preventing me from attaching to the
running process?

Feb 20 '07 #1
3 4841
Greg wrote:
I am having a problem trying to debug my windows service.
I tried to attach my service to the running process
via Debug | Attach to Process (in VS 2005), but in the list of
Available Processes, my process is grayed out, and the Attach button
is disabled.
Is the service built in Debug Mode and installed /configured to run
under /your/ user account?

HTH,
Phill W.
Feb 22 '07 #2
On Feb 22, 4:42 am, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote:
Greg wrote:
I am having a problem trying to debug my windows service.
I tried to attach my service to the running process
via Debug | Attach to Process (in VS 2005), but in the list of
Available Processes, my process is grayed out, and the Attach button
is disabled.

Is the service built in Debug Mode and installed /configured to run
under /your/ user account?

HTH,
Phill W.
It is built in debug mode. I get the same results whether it is run
under my user account or as a local system account. I'm hoping it's
something stupid I'm forgetting, but nothing is jumping out at me yet.

Feb 22 '07 #3
On Feb 22, 4:42 am, "Phill W." <p-.-a-.-w-a-r...@-o-p-e-n-.-a-c-.-u-k>
wrote:
Greg wrote:
I am having a problem trying to debug my windows service.
I tried to attach my service to the running process
via Debug | Attach to Process (in VS 2005), but in the list of
Available Processes, my process is grayed out, and the Attach button
is disabled.

Is the service built in Debug Mode and installed /configured to run
under /your/ user account?

HTH,
Phill W.
It is built in debug mode. I get the same results whether it is run
under my user account or as a local system account. I'm hoping it's
something stupid I'm forgetting, but nothing is jumping out at me yet.

Feb 22 '07 #4

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

Similar topics

8
by: Fabio Papa | last post by:
I am trying to write a windows service that sends emails to clients at specific times based on information in a sql db. Since this is done for multiple cities, I start a thread for each city and...
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...
0
by: Mel | last post by:
I have read the debugging document created by M.K Park (which has been referenced on this newsgroup), but unfortunately, it has not helped with solving my problem. I've spent time on the MS KB and...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
16
by: Julie Lerman | last post by:
Okay, so I'll try here now <g> I've been battling this problem for over a week now. So, if nothing else, hopefully my little tale of woe will be entertaining. But I'm really hoping someone...
1
by: JLuis Estrada | last post by:
Hi there. Id tried to find information about how to set up the remote debugging on win2003. I have a PC with winxpsp2 with VS2003 installed. And I developed an winservice app that runs on the...
1
by: sid1984 | last post by:
Hello sir, i am maintaining a windows service which run in every ten second and check if certain condition is true then it will connect with the database and made some entry when i install it on...
0
by: krystian | last post by:
Hello, I've been following the previous thread "Windows Service Starts and Immediately Stops" and I have a similar problem. I've been trying to get started on a windows service and have...
6
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hi, I've created a windows application C# service according to: http://msdn2.microsoft.com/en-us/library/ms123402.aspx?wa=wsignin1.0 But my service is not appearing in the computer management...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
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,...
0
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...
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
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...
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,...

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.