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 8751689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:05:48+00:00 2026-06-13T13:05:48+00:00

Currently I have the following statement in my code to allow me to debug

  • 0

Currently I have the following statement in my code to allow me to debug windows services:

#If DEBUG Then
        System.Diagnostics.Debugger.Launch()
#End If

I place this in the OnStart method and when I start up the service I can attach to my instance of Visual Studio. Currently I have an instance where this is failing. I have the service installed on a virtual machine and I’m running into the following error:

An unhandled exception (‘Launch for user’) occurred in
MyService.exe [376]. Just-In-Time debugging this
exception failed with the following error: Debugger could not be
started because no user is logged on.

I’ve never had a problem debugging services like this on my local machine so I’m not sure what’s going on. The user is set to log on as LocalSystem if that matters. I am logged on to the virtual machine via Administrator.

  • 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-06-13T13:05:49+00:00Added an answer on June 13, 2026 at 1:05 pm

    I ended up putting the following statement in the OnStart method:

    #If DEBUG Then
        While True
    
        End While
    #End If
    

    This allows me to manually attach to the process in visual studio and set a break point in the while loop. Once I hit the breakpoint I manually step outside of the while loop to proceed with the rest of the application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have the following MySQL statement to replace the HTML entity for a
I currently have the following code which delays showing a fixed bar after a
currently i have jdbc code with the following basic stucture: get Connection (do the
I have the following code which I am are currently using .... Basically, this
I currently have the following code for my hub class: public class MatchMaker :
I currently have the following code: events.detect do |event| #detect does the block until
Currently, I have the following code in a script: print Loading... html = urllib2.urlopen(url).read()
Im currently in process of learning Javascript. And I have seen the following code,
I have the following JQuery statement and it is adding the class 'current' but
Currently I have following XML: <Rowsets> <Rowset> <Row> <DrilldownDepth>0</DrilldownDepth> <ScheduleWeek>---</ScheduleWeek> <ABC>---</ABC> <PQR>1500</PQR> <XYZ>15000</XYZ> <Quant>285</Quant>

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.