473,382 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Windows SERVICE, .NET 2005

Hey guys,

I've written an NT Service. I seem to have everything it needs, an
OnStart, OnStop, events. It compiles fine and I don't get any errors or
warnings. My problem is that I don't have an Installer Class. I've tried to
add one, but I've taken some code off the internet, but it all seems to be
for Visual Studio 2003. I am using VS 2005. It says I need to add to my uses
class "System.Configuration.Installs". It says that no such thing exists. I
have VS 2005 Professional so it SHOULD include that.
When I do run the install app under the VS2005 CMD, it says it installs it,
but I don't see any new services pop up. I am assuming this is because I
don't have an installer class.

Any idea what I might be doing wrong?
Thanks!!!

Todd
Nov 6 '06 #1
1 1195
For anyone that happens to find this in a search, I've figured out what I
need to do:

This link was helpful to me:

http://csharpcomputing.com/Tutorials/Lesson22.htm
Basically, when I got to this point, what I needed to do was open the
Service1.Designer window. (the grey blank screen that says it has no
components on it). Right click in the open grey area and select "Add
Installer". It automatically creates a file called ProgramInstaller.cs. Make
sure you don't already have one created, otherwise it will error out.

This worked for me.
Thanks,

Todd

"Todd Jaspers" wrote:
Hey guys,

I've written an NT Service. I seem to have everything it needs, an
OnStart, OnStop, events. It compiles fine and I don't get any errors or
warnings. My problem is that I don't have an Installer Class. I've tried to
add one, but I've taken some code off the internet, but it all seems to be
for Visual Studio 2003. I am using VS 2005. It says I need to add to my uses
class "System.Configuration.Installs". It says that no such thing exists. I
have VS 2005 Professional so it SHOULD include that.
When I do run the install app under the VS2005 CMD, it says it installs it,
but I don't see any new services pop up. I am assuming this is because I
don't have an installer class.

Any idea what I might be doing wrong?
Thanks!!!

Todd
Nov 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andreas Kviby | last post by:
I have a HTML-form that I need to be able to POST from my VB.NET client application and store the resulting XML in a STRING or XML-document. This is the HTML-form code: <form name="form1"...
3
by: Yves Royer | last post by:
Hi all, I have a little question about Windows Services. For my app i need 3 different Windows Services, each with its own functionality. I'm trying to make a test service to see what happens...
3
by: Steve Amey | last post by:
Hi all Is it possible to retrieve data from a Windows Service? Let's say I have a service that contains code in the OnStart method that creates a DataSet, from a client application I'm using a...
4
by: Groundskeeper | last post by:
I can't seem to get a custom UnhandledException handler working for a Windows Service I'm writing in VB.NET. I've read the MSDN and tried various different placements of the AddHandler call, to no...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
2
by: Val3 | last post by:
Hi all. I need to build dll(s) and windows services using VB .NET 2005 Express. When I make File/New project the windows contain only Windows application, Windows control library, Console...
0
by: CESAR DE LA TORRE [MVP] | last post by:
I am using WSE 3.0 with Visual Studio 2005, specifically I'm using Kerberos authentication and passing Kerberos ticket from Presentation Tier (VSTO.2005 client) to Server Tier through our Web...
7
by: Sunil Varma | last post by:
Hello all, I wrote a Windows Service in VC.NET 2005 I want to debug the solution. I tried as mentioned in the following link. ...
3
by: JM | last post by:
Hi, I have created a Solution in VS 2005 with 2 simple projects. First project is simple Windows Service which writes an entry into event log when it starts and when it stops. Nothing else. I...
0
by: JM | last post by:
I have created simple windows service which just write message to event log when it starts and stops. I am able to install it succesfully using: installutil <service_file.exe>, where...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.