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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:55:49+00:00 2026-06-16T19:55:49+00:00

This issue seems to be widely discussed, but I have problems with finding the

  • 0

This issue seems to be widely discussed, but I have problems with finding the solution in my particular case.

My service is set up to be running under Local System account. On my first machine with Windows 7 SP1 (64-bit) installed, everything works as expected. But, just after I try to start the service on my second machine with Windows Server 2008 R2 SP1 (64-bit), not even a second passes, and I’m facing this annoying error:

Windows could not start the ProService service on Local Computer
Error 1053: The service did not respond to the start or control request in a timely fashion

The System Log shows 2 entries:

The ProService service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.

and:

A timeout was reached (30000 milliseconds) while waiting for the ProService service to connect.

The implementation looks following:

Program.cs:

static void Main()
{
    AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;
    ServiceBase.Run(new ServiceBase[] { new ProService() });
}

static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
{
    if (e != null && e.ExceptionObject != null)
    {
        Logger.Record(e.ExceptionObject);
    }            
}

ProService.cs:

public ProService()
{
    InitializeComponent();
}

protected override void OnStart(string[] args)
{
    try
    {
        RequestAdditionalTime(10000);
        FireStarter.Instance.Execute();
    }
    catch (Exception e)
    {
        Logger.Record(e);
        throw;
    }            
}

The OnStart method is just starting a new thread, so it takes almost NO time load to execute. I used RequestAdditionalTime statement just in case – to reject this matter as a source of my problem. In addition, as you can see, I’m handling all of the exceptions, but no exception is written to my custom service event log during the startup (btw: logging is working on the first win7 machine). How to investigate what’s going on ?

  • 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-16T19:55:50+00:00Added an answer on June 16, 2026 at 7:55 pm

    I’ve figured out what was going on in a few steps:

    1. I’ve written console application – wrapper for what is basically done in OnStart method from service.
    2. I’ve executed console application – application started normally.
    3. I’ve copied content of service configuration file to console application configuration file.
    4. I’ve executed console application once again – application aborted silently and immediately (surprisingly similar to our service behavior, something is wrong).
    5. I’ve compared 2 configs – from service, and original from console application. As a result I’ve found some differences. Among others, there was such an entry – the source of the problem (after removal, everything works):

      <startup>
          <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
      </startup>
      

    So basically I had out of date configuration file. Previously service was compiled under .NET 4.5, then I’ve changed the framework to 4.0 and deployed files to the server, but left the previous configuration file (I’ve changed the target framework because my development machine has .NET 4.5 while server does not). I wouldn’t have thought the shown lines would hide all problems without any reasonable information, which could help to track the mess.

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

Sidebar

Related Questions

I have read a lot about this issue but mine still seems to be
This seems like such a simple issue but I cannot find an elegant solution.
I have a universal app but this issue seems to only relate to the
I have an issue that seems like very flaky behavour, is this a problem
This seems like an easy enough issue but I can't seem to find the
This seems like it would be a common issue to be but I don't
I know there is a forum for this issue but seems like WOT has
I have this jquery issue that seems to only break when using background image
This issue seems trivial, but I can't get it to work properly. I'm calling
I'm running into an issue that seems to be caused by gcc not finding

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.