Solved

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

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains how to install and use the NTBackup utility that comes with Windows Server.
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 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…

733 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