Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / October 2004

Tip: Looking for answers? Try searching our database.

How do you set the description on a Windows Service?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DanL - 01 Oct 2004 16:15 GMT
I can only imagine I have gone blind looking through the .NET documentation.

I have a Windows Service that installs and runs wonderfully.

However, I am a loss as to how to set the "description" text on the Service.
I have browsed through ServiceController, ServiceBase, ServiceInstaller
..etc.

Does anyone here know where this mysterious method/property may be hiding?
OR is it possible that the need to set the description of the Windows Service
was overlooked when the .NET System.ServiceProcess namespace was designed?

Thanks!
Signature

DanL

Saurabh Nandu - 03 Oct 2004 03:15 GMT
Hi Dan,

Try applying the ServiceProcessDescriptionAttribute from the
System.ServiceProcess namespace on the service class, it might do the trick

Eg
[ServiceProcessDescriptionAttribute("My Private Service")]
public class MyService:ServiceBase
{
....
}
Elp - 04 Oct 2004 14:58 GMT
> However, I am a loss as to how to set the "description" text on the
> Service. I have browsed through ServiceController, ServiceBase,
[quoted text clipped - 4 lines]
> Windows Service was overlooked when the .NET System.ServiceProcess
> namespace was designed?

Yes, it seems that they forgot this detail. There are quite a lot of
articles and discussion threads about this problem. Here is one of them:
http://www.codeproject.com/dotnet/dotnetscmdescription.asp
DanL - 04 Oct 2004 16:05 GMT
Thank you very much for the article reference! This is precisely what I was
seeking.

DanL

> > However, I am a loss as to how to set the "description" text on the
> > Service. I have browsed through ServiceController, ServiceBase,
[quoted text clipped - 8 lines]
> articles and discussion threads about this problem. Here is one of them:
> http://www.codeproject.com/dotnet/dotnetscmdescription.asp

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.