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

  • Home
  • SEARCH
  • 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 889187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:31:42+00:00 2026-05-15T13:31:42+00:00

I built a windows service, targeted for .NET 2.0 in VS 2008. I run

  • 0

I built a windows service, targeted for .NET 2.0 in VS 2008. I run it as a console app to debug it.

Console app is working great. I put it on my local computer as a service, compiled in debug mode, still working great. I’m ready to release now, and suddenly, when I set it to release mode, the service compiles and installs, but nothing happens. (No code in service is running at all).

I realize that the release vs debug mode are property configuration settings, but it seems that in release mode, even when I check define DEBUG constant, uncheck Optimize code, and set Debug info to ‘full’, it is still doing nothing.

Set it back to debug and it’s working like a charm again.

(As a sidenote, I tried resetting the target framework to 3.5 to make sure that wasn’t the issue, too)

So my questions (in order of importance) are these:

  1. Will using my “debug” version in any way ever cause any problems?

  2. What settings are different between debug and release besides the three I’ve been trying to change already?

  3. This seems like a weird error to me and has stirred up my curiosity. Any idea what would cause this?

EDIT:
Should mention, I already am using a custom installer. Basically I compile the program (in either debug or release) and then install it with the respective installer.

  • 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-15T13:31:43+00:00Added an answer on May 15, 2026 at 1:31 pm

    1) It might, if not directly, so indirectly by making the application slower and making it use more memory.

    2) When it runs in debug mode, there are certain things that works differently, for example:

    • The code is compiled with some extra NOP instructions, so that there is at least one instruction at the beginning of each code line, so that it will be possible to place a break point at any line.

    • The instructions can be rearranged in release mode, but not in debug mode, so that the code can be single stepped and the result will correspond to the exact order of the source code.

    • The garbage collector works differently, by letting references survive throughout their entire scope instead of only for the time that they are used, so that variables can be viewed in debug mode without going away before the scope ends.

    • Exceptions contain more information and takes a lot longer to process when thrown.

    All those differences are relatively small, but they are actual differences and they may matter in some cases.

    If you see a great difference in performance between debug mode and release mode, it’s usually because there is something wrong with the code, like for example if it’s throwing and catching a huge amount of exceptions. If there is a race condition in the code, it may only happen in release mode because there is some extra overhead in debug mode that makes the code run slightly slower.

    3) As to what the problem with your service is, I don’t know, but it doesn’t seem to be related to how the code is executed in debug mode or release mode. The code would start in any case, and if it was a problem with the code, it would crash and you would be able to see it in the event log.

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

Sidebar

Related Questions

I built a windows service on my local machine. when I install and run
I have built a windows service application in VB.net 2008, and used the Setup
This is a Windows Console application (actually a service) that a previous guy built
I have been working on many applications which run as windows service or scheduled
I have built setup file for my windows service in visual studio 2010.Its working
I've built a windows service application using Visual Studio .NET and C#. This service
We have built a .NET Windows Service that we install on client PCs to
I have written a .NET Windows service which has a WCF service built into
I havea windows service built in .net which must build some hl7, send it
I have built a Windows Service using VS 2008 targeting Framework 3.5. When I

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.