all groups > dotnet myservices > february 2007 >
You're in the

dotnet myservices

group:

Add Installer error for Windows Service


Add Installer error for Windows Service Chris Gin
2/1/2007 3:45:27 PM
dotnet myservices: I have Visual Studio 2005 Std Edition and I'm trying to build a small
Windows Service (with C#) using the following guide:

http://msdn2.microsoft.com/en-us/library/76477d2t(VS.80).aspx

I get to the point of adding an installer, but when I right click the
service class in design mode and select "Add Installer", I get the
following error:

"Service name contains invalid characters, is empty, or is too long
(max length = 80)"

My service name is "TestService" but I've tried other variations and I
get the same error.

Has anyone come across this problem before?
Re: Add Installer error for Windows Service koloskova NO[at]SPAM hotmail.com
2/9/2007 6:28:13 AM
Hi Chris,
Go to designer view of your service code file, right click, select
properties and make sure the "Service Name" property is filled in.
If you dont see this property make sure the constructor of your
windows service class exists and has all the code necesary, see the
guide at the URL you're mentioning.
Best of luck
Anna.
AddThis Social Bookmark Button