Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Service not starting on 64 bit windows installation.

Posted on 2009-04-15
8
Medium Priority
?
685 Views
Last Modified: 2013-11-29
I am encountering an error when attempting to install a windows service on a 64 bit machine.  Previously, I was able to install the service, but just recently began having this issue.

The entire program will install correctly, then the attatched error will appear and the program will rollback the installation.  

I can successfully install the service manually.  However, when I attempt to start it, I receive an error about the service taking too long to respond...like it had timed out.  The timeout is set to 30 seconds.  It should never take longer than that.

I need to figure out why the service isn't starting and what I need to do to fix it.

Thanks in advance.


NOTES:
  - The service does get installed.  ( when the error message appears, the service will appear in the services list )  However, once 'Ok' is pressed, it is uninstalled during the rollback.
  - I have tested this on 64 bit XP, Vista and 7.  The same error occurs on all versions.
  - No code has changed in this service or it's installer class.
  - I placed logging into the installer class of the service, and none of the logging was reached.
  - I suspect it may have to do with the service itself, but any logging within the service is not reached.
  - The service has a 30 second timer that initializes once the service is started.  The timer is also stopped when the service stops.  This timer was has been present since the creation of the service (while it was installing correctly) and has not changed.
InstallationError.jpg
0
Comment
Question by:OFGemini
  • 4
  • 2
  • 2
8 Comments
 
LVL 41

Expert Comment

by:graye
ID: 24172528
Are you the author of the Service?     Does it make many low-level API calls?   What credentials are being used to start the service?
0
 

Author Comment

by:OFGemini
ID: 24175768
I am the author of the service.  It doesn't make any API calls, and the service is set to be run under the Local System group.
0
 
LVL 41

Expert Comment

by:graye
ID: 24175964
So, is this behavior only on related 64-bit PCs?  (you mentioned XP, Vista, and Win7.... were all of those 64-bit?)
And, it used to work on 64-bit PCs some time in the past, but now doesn't?
What does the Service Control Manager report in the Event Logs when you attempt to start the service?
I think you'll end up having to attach a debugger to the service to see what's going on.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:OFGemini
ID: 24176098
Yes, each of those OS' were 64-bit pc's.  It did work in the past, but I'm not exactly sure when it stopped working and there have been no changes to the service in a very long time.

I'll go ahead and check the Service Control Manager in the Event Logs and let you know what it says.
0
 

Author Comment

by:OFGemini
ID: 24176141
Here are the two logs from the Service Control Manager:

-----------------
The ServiceName service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.
-----------------
A timeout was reached (30000 milliseconds) while waiting for the ServiceName service to connect.
-----------------

One thing I did notice was that in the 'Services' area under control panel the service is set to 'Log On As'  Local System.   However, in the Task Manager under the services tab, the service's Group is display as 'N/A'.

I do notice a few other services running under the 'N/A' group, but I'm curious if this the issue?
0
 

Accepted Solution

by:
OFGemini earned 0 total points
ID: 24205115
I solved this by changine the compile options (under project properties) of the service to x86 only.

This prevents Windows 64-bit from attempting to launch the service as a 64-bit process.

(NOTE: I also increased the framework version from 2.0 to 3.5)
0
 
LVL 11

Expert Comment

by:wrmichael
ID: 33109244
I am having the same issue except that my service relies on a an underline 32 bit COM object.

When I try to compile as 64 Bit it will not recognize the com object.  All the help files say to compile as 32bit,  but when I do the service will not stat.

Did you have any issues like this?
0
 
LVL 11

Expert Comment

by:wrmichael
ID: 33109285
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question