CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Posts
    35

    [RESOLVED] Service won't run after install

    Hi,

    I wrote a service in C#. On my Windows 7 development station, the service installs and runs (I installed it directly from the release directory in the Visual Studio 2008 tree). I've been able to test it and it does it's thing. I zipped up a copy of the release folder to be installed on a 2008 Server. The admin was able to install it and no errors were reported in the install log. But when he tries to start the service, he almost immediately gets the error: "1053 the service failed to start in a timely manner".

    Writing services is new to me. Is there something else I need to do in order for the service to run on a 2008 server?

    Thanks,

    Rob Tanner
    Linfield College

  2. #2
    Join Date
    Feb 2005
    Posts
    35

    Re: Service won't run after install

    Hmmm... I threw some extra logging in and zipped up another copy. Didn't make any other changes but this time it started right up. Go figure.

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: [RESOLVED] Service won't run after install

    Does your service have other service dependencies?

  4. #4
    Join Date
    Feb 2005
    Posts
    35

    Re: [RESOLVED] Service won't run after install

    No, no dependencies. Either it was just a fluke or the sysadmin installed it wrong on the server. It's working now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured