Solved

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

Posted on 2014-12-15
5
64 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
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 …

708 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

17 Experts available now in Live!

Get 1:1 Help Now