Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

.NET Windows service

Posted on 2010-01-04
4
Medium Priority
?
294 Views
Last Modified: 2013-11-26
Hello All,

I currently have developed a windows service that works so far, however it is still in debug mode running from VS 2005 (VB.NET).

How can I compile this service and deploy it on a Windows 2003 Server with all the supporting .dll's it needs ?

Thanks in advance.
0
Comment
Question by:abennett10
4 Comments
 
LVL 11

Accepted Solution

by:
PlatoConsultant earned 668 total points
ID: 26173138
0
 
LVL 7

Expert Comment

by:technofile
ID: 26173191
This site should help clear things up for you.
It did for me.
http://www.devarticles.com/c/a/VB.Net/Creating-A-Windows-Service-in-VB.NET/
0
 
LVL 11

Assisted Solution

by:Kusala Wijayasena
Kusala Wijayasena earned 668 total points
ID: 26175387
@PlatoConsultant:

I think your link should start from here:

http://www.developerfusion.com/article/3441/creating-a-windows-service-in-vbnet/2/

-Kusala
0
 
LVL 15

Assisted Solution

by:angus_young_acdc
angus_young_acdc earned 664 total points
ID: 26178938
Have you also been sure to add an Installer Class to your project?  As that is required for the installation, with code similar to the following in it (name the strings to whatever you require.
Then simply follow the following instructions:
Click Start -> Visual Studio [Version] -> Visual Studio Tools then select Visual Studio [Version] Command Prompt, from here just type:

installutil.exe then the full path to your exe.  Eg:

installutil.exe "C:\MyApp\MyApp.exe"

That will install it.  Alternatively, you can create an MSI with a custom action to install your service, this would use the install class that you add in your project.

ServiceInstaller si = new ServiceInstaller(); 
            ServiceProcessInstaller spi = new ServiceProcessInstaller(); 
 
            si.ServiceName = ""; 
            si.DisplayName = ""; 
            si.Description = ""; 
            si.StartType = ServiceStartMode.Automatic; 
            this.Installers.Add(si); 
 
            spi.Account = System.ServiceProcess.ServiceAccount.User; 
            spi.Password = null; 
            spi.Username = null; 
            this.Installers.Add(spi);

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

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