How to host windows service on Windows Server 2008

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!
RadhaKrishnaKiJayaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
it_saigeConnect With a Mentor DeveloperCommented:
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
 
RadhaKrishnaKiJayaAuthor Commented:
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
 
RadhaKrishnaKiJayaAuthor Commented:
Thank you Saige.  I just had to close the Services window and reopened.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.