Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6691951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:48:40+00:00 2026-05-26T05:48:40+00:00

I am trying to start my debug build WindowsService but am getting the error

  • 0

I am trying to start my debug build WindowsService but am getting the error that it didn’t start in a timely fashion.

I’ve cleaned up the ctor and OnStart but still it won’t start so I am thinking maybe the dll it loads needs to be better installed, rather than just in the debug directory of my project directory. Maybe all that bumpf in main() is hanging it out to dry?

Any pointers for debugging the service? I can’t run it directly in the VStudio because obviously that doesn’t permit entry to its OnCustomCommand(int cmd) member and breaks it there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:48:41+00:00Added an answer on May 26, 2026 at 5:48 am

    If I understand correctly, you want to be able to debug the service before it’s sitting in it’s idle “Started” state?

    You can use Debugger.Break() function for this. For example, we often put the following into our Main function while in a debug build:

    #if DEBUG
    
    if (!Debugger.IsAttached)
    {
        Debugger.Break();
    }
    
    #endif
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're trying to debug a WCF service that is being consumed by a smart
I'm trying to start using LINQ and specifically LINQ to SQL but I'm having
I'm trying to start a service that has a argument that specifies a port
I'm trying to debug an application build with the NDK on a Motorola Droid.
I'm trying to build a pipeline with gst-launch in Windows 7 that will view
i am trying to build a small email worker that sends my emails. The
I've been trying to build the SDK statically on Mac OS X but I
The error: I get a popup window when trying to manually start the windows
I was trying to figure out why a debug build was blowing up with
I'm trying to troubleshoot why a release build doesn't work on the device but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.