Solved

CREATE AND INSTALL WINDOWS SERVICE ON REMOTE SERVER 2008

Posted on 2008-11-01
3
1,324 Views
Last Modified: 2013-11-26
hi
i have successfully managed to build a service in VS2005, i can install it locally via the service setup (right click install) but do nothow how to set this up on a remote server. i have remote desktop connection and full access

i presume it has something to do with publish, this does create a exe, but when ran shows a windows wervice start failure message:
Cannot start service from the command line or a debugger, A windows service must first be inbstalled (using intallutil.exe) .......

i see that this is telling me what to do, but i dont unserstand it.

thanks in advance
0
Comment
Question by:glumlun
3 Comments
 
LVL 35

Accepted Solution

by:
torimar earned 500 total points
ID: 22868185
Try the following:

Transfer the executable containing your service to the remote machine, start a shell (command prompt), type:
installutil path\filename.exe
replacing path\filename by the full path and name of your executable.

Then type
net start
and check whether your service is already running. If not, type:
net start "name of your service"

If that gives you an error message about your service not being available, you will have to check for its exact name.
Do this either on your own local machine or by opening administration > services.

Hope this helps.
0
 
LVL 11

Author Closing Comment

by:glumlun
ID: 31512306
got there in the end, thanks for your help
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
An article on effective troubleshooting
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

821 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