?
Solved

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

Posted on 2014-12-15
5
Medium Priority
?
79 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 23

Expert Comment

by:Michael Fowler
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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
Suggested Courses

764 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