Solved

Help with Windows Service - Windows could not start the service on a local computer;

Posted on 2014-12-15
5
67 Views
Last Modified: 2015-01-14
I have a windows service app I created using Visual Studio.   I have it running successfully on one server.  On a second server, I can install it, but when I start it I get:  

Windows could not start the service on a local computer. Error 1067: The Process terminated unexpectedly.

I added some debug code, and it's never getting to my app; it's never starting.   Anyone ever see this?  Any thoughts?  Any thoughts as to differences on the servers that might cause this issue?  Both servers are 2008.
0
Comment
Question by:HLRosenberger
  • 3
5 Comments
 
LVL 23

Expert Comment

by:Michael74
ID: 40501511
Does the second server have the correct version of .NET installed?

http://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 40509838
as far as I can tell, yes.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 40526263
Any other dependencies? 3rd party DLLs etc? Service failing to start is usually a sign of dependency issues.
0
 
LVL 1

Accepted Solution

by:
HLRosenberger earned 0 total points
ID: 40540294
This ended up being a Microsoft bug unrelated to the fact I was running a service.

https://connect.microsoft.com/VisualStudio/feedback/details/825555/accessviolationexception-in-sqlconnection
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 40548552
this was the issue.
0

Featured Post

Make managing Office 365 email signatures a breeze

Are you using Office 365? Having trouble trying to set up email signatures for your users? Getting stressed out managing multiple signatures? Need an easier way to manage? We have a solution for you, try the most-user friendly and powerful signature management tool on the market.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now