Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - windows service problem

Reply
 
Old 04-23-2008   #1 (permalink)
Andrew


 
 

windows service problem

Hi,

I've created a windows application C# service according to:
http://msdn2.microsoft.com/en-us/lib...?wa=wsignin1.0

But my service is not appearing in the computer management panel at all.
Any ideas ?

cheers

My System SpecsSystem Spec
Old 04-23-2008   #2 (permalink)
Norman Yuan


 
 

Re: windows service problem

Have you started the service after installed it? A Windows service can be
set to automatic start when machine is turned on, or manaul start. If it is
latter, you will not see it in task manager until it gets started manually
(or by other programs).

"Andrew" <Andrew@xxxxxx> wrote in message
news:270CADCE-E723-48AF-8AB9-6E9FFF28F8CD@xxxxxx
Quote:

> Hi,
>
> I've created a windows application C# service according to:
> http://msdn2.microsoft.com/en-us/lib...?wa=wsignin1.0
>
> But my service is not appearing in the computer management panel at all.
> Any ideas ?
>
> cheers
My System SpecsSystem Spec
Old 04-23-2008   #3 (permalink)
Andrew


 
 

Re: windows service problem

Thanks for your reply.

But I don't even see the application on the "Computer Management\Services"
panel. So I can't even start the application up. I've tried both automatic
and manual modes. No luck.

Can it be a problem with my computer itself ?

cheers
Andrew

"Norman Yuan" wrote:
Quote:

> Have you started the service after installed it? A Windows service can be
> set to automatic start when machine is turned on, or manaul start. If it is
> latter, you will not see it in task manager until it gets started manually
> (or by other programs).
>
> "Andrew" <Andrew@xxxxxx> wrote in message
> news:270CADCE-E723-48AF-8AB9-6E9FFF28F8CD@xxxxxx
Quote:

> > Hi,
> >
> > I've created a windows application C# service according to:
> > http://msdn2.microsoft.com/en-us/lib...?wa=wsignin1.0
> >
> > But my service is not appearing in the computer management panel at all.
> > Any ideas ?
> >
> > cheers
>
>
My System SpecsSystem Spec
Old 04-23-2008   #4 (permalink)
Andrew


 
 

Re: windows service problem

I've looked into the Windows Task Manager window.

I see the application running there as "MyNewService.vhost.exe".
1) Shouldn't it be just ".exe" and not the ".vhost.exe" ?
2) I've tried to EndProcess, but it keeps on coming back again.
3) I still can't see the application in the Computer Management /Services
window.

cheers
Andrew

"Norman Yuan" wrote:
Quote:

> Have you started the service after installed it? A Windows service can be
> set to automatic start when machine is turned on, or manaul start. If it is
> latter, you will not see it in task manager until it gets started manually
> (or by other programs).
>
> "Andrew" <Andrew@xxxxxx> wrote in message
> news:270CADCE-E723-48AF-8AB9-6E9FFF28F8CD@xxxxxx
Quote:

> > Hi,
> >
> > I've created a windows application C# service according to:
> > http://msdn2.microsoft.com/en-us/lib...?wa=wsignin1.0
> >
> > But my service is not appearing in the computer management panel at all.
> > Any ideas ?
> >
> > cheers
>
>
My System SpecsSystem Spec
Old 04-23-2008   #5 (permalink)
Phil Wilson


 
 

Re: windows service problem

That link isn't workiung for me, so I don't know if it has installation
instructions using installutil, installer classes or a setup project.
If you're seeing ...vshost.exe that's the Visual Studio debugging host, so
perhaps you've got a debug version installed or something.

--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"Andrew" <Andrew@xxxxxx> wrote in message
news:270CADCE-E723-48AF-8AB9-6E9FFF28F8CD@xxxxxx
Quote:

> Hi,
>
> I've created a windows application C# service according to:
> http://msdn2.microsoft.com/en-us/lib...?wa=wsignin1.0
>
> But my service is not appearing in the computer management panel at all.
> Any ideas ?
>
> cheers

My System SpecsSystem Spec
Old 04-23-2008   #6 (permalink)
Andrew


 
 

Re: windows service problem

sorry about that, here's the link again.

http://msdn2.microsoft.com/en-us/lib...8a(VS.80).aspx

cheers

"Phil Wilson" wrote:
Quote:

> That link isn't workiung for me, so I don't know if it has installation
> instructions using installutil, installer classes or a setup project.
> If you're seeing ...vshost.exe that's the Visual Studio debugging host, so
> perhaps you've got a debug version installed or something.
>
> --
> Phil Wilson
> Definitive Guide to Windows Installer
> http://www.apress.com/book/view/1590592972
>
>
> "Andrew" <Andrew@xxxxxx> wrote in message
> news:270CADCE-E723-48AF-8AB9-6E9FFF28F8CD@xxxxxx
Quote:

> > Hi,
> >
> > I've created a windows application C# service according to:
> > http://msdn2.microsoft.com/en-us/lib...?wa=wsignin1.0
> >
> > But my service is not appearing in the computer management panel at all.
> > Any ideas ?
> >
> > cheers
>
>
>
My System SpecsSystem Spec
Old 04-24-2008   #7 (permalink)
Phil Wilson


 
 

Re: windows service problem

It's a bit vague there about installation, but what you have to do is a
Setup&Deployment Project, adding your service executable to it, and adding
custom actions referring to your service executable with InstallerClass
true. Calling the installer class methods as custom actions is what installs
and uninstalls your service.
--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"Andrew" <Andrew@xxxxxx> wrote in message
news:8CE59C13-ED62-4451-91CE-167C79D1EC93@xxxxxx
Quote:

> sorry about that, here's the link again.
>
> http://msdn2.microsoft.com/en-us/lib...8a(VS.80).aspx
>
> cheers
>
> "Phil Wilson" wrote:
>
Quote:

>> That link isn't workiung for me, so I don't know if it has installation
>> instructions using installutil, installer classes or a setup project.
>> If you're seeing ...vshost.exe that's the Visual Studio debugging host,
>> so
>> perhaps you've got a debug version installed or something.
>>
>> --
>> Phil Wilson
>> Definitive Guide to Windows Installer
>> http://www.apress.com/book/view/1590592972
>>
>>
>> "Andrew" <Andrew@xxxxxx> wrote in message
>> news:270CADCE-E723-48AF-8AB9-6E9FFF28F8CD@xxxxxx
Quote:

>> > Hi,
>> >
>> > I've created a windows application C# service according to:
>> > http://msdn2.microsoft.com/en-us/lib...?wa=wsignin1.0
>> >
>> > But my service is not appearing in the computer management panel at
>> > all.
>> > Any ideas ?
>> >
>> > cheers
>>
>>
>>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Problem after Installing Windows service pack 1 Vista installation & setup
Problem with updating service pack1 to service pack2 Vista installation & setup
Problem: Wdi [Windows diagnostic infrastructure] Service Host Hanging. General Discussion
Problem with a Service that Fails to Start (Bonjour Service) Vista General
Is anyone seeing a problem with the Windows Time-service in Vista? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46