Solved

How to host windows service on Windows Server 2008

Posted on 2016-10-04
3
59 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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...
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
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…

810 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