Solved

How to host windows service on Windows Server 2008

Posted on 2016-10-04
3
68 Views
Last Modified: 2016-10-19
Hello Experts,
I am trying to host a Windows Service in Windows Server 2008 R2.  I am able to host the same Service in the local machine using installutil  -i ...command in the DOS prompt.  By the the way, the services written in C# in Visual Studio 2010.  Please let me know.  

Thank you very much in advance!
0
Comment
Question by:RadhaKrishnaKiJaya
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
it_saige earned 500 total points
ID: 41828437
You still use installutil -i in order to run the server process installer.  You could also build a setup project in order to create an installer for the service.

-saige-
0
 

Author Comment

by:RadhaKrishnaKiJaya
ID: 41828748
Hi Saige,
Thank you!  I am using installutil -i and getting the following error.  What I am missing?

Thank you!

System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
0
 

Author Closing Comment

by:RadhaKrishnaKiJaya
ID: 41850778
Thank you Saige.  I just had to close the Services window and reopened.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

830 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