Solved

How to make a C Sharp 2010 application run as a service?

Posted on 2011-09-26
6
264 Views
Last Modified: 2012-05-12
Hello everyone,
          I am kind of new in Microsoft technology and I need to put a C Sharp application to run as a service. This application has 9 different projects on it that run at the same time. All of them get call by the main thread or project.

After we finish testing, we need to put this application to run as a service and I need to know how to do this.
the OS is Windows Server 2008 R2 Standard
      64 bit Operating System

We have three servers, Principal, Mirror, and witness. I need to do this in both, Principal and Mirror.

Any link of a manual or tutorial will be useful.
Thank you
0
Comment
Question by:iscivanomar
  • 3
  • 3
6 Comments
 
LVL 12

Accepted Solution

by:
serchlop earned 500 total points
Comment Utility
0
 

Assisted Solution

by:iscivanomar
iscivanomar earned 0 total points
Comment Utility
I need to defined SQL Server Service as required to start first. How can I do this?

Ones I create the Service, how can I assign My C Sharp application to it?

Thank you.
0
 
LVL 12

Assisted Solution

by:serchlop
serchlop earned 500 total points
Comment Utility
This can also be done via command prompt using the sc command. The syntax is:

sc config [service name] depend= <Dependencies(separated by / (forward slash))>

Note: There is a space after the equals sign, and there is not one before it. So if you want ServiceA to depend on both ServiceB and ServiceC--that is to say, ServiceA will not start until the other two have started--then you would use this:

sc config ServiceA depend= ServiceB/ServiceC

Edit: Also, if you want to remove all dependencies, you have to use the following syntax:

sc config ServiceA depend= /

0
The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

 
LVL 12

Assisted Solution

by:serchlop
serchlop earned 500 total points
Comment Utility
0
 

Author Comment

by:iscivanomar
Comment Utility
Thank you for you comments, I am going to try this tomorrow and I will let you know how it went.

Thank you.
0
 

Author Closing Comment

by:iscivanomar
Comment Utility
Thank you serchlop for all your useful information. I did not know anything about this but now, I know what I am doing.

Have a good day.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now