.Net Framework >> .NET Windows Service

by Peter Milne » Mon, 19 Jul 2004 00:25:15 GMT

Hi,

I'm new to the windows service area. I have built a few of the examples of a
windows service (in C#) that are available on the net. Everything goes to
plan and they each install successfully with the Installutil.exe prog. My
trouble starts when I attempt to start the service, i get the message:

The AdderxService service failed to start due to the following error:

AdderxService is not a valid Win32 application.


All my other .NET apps work great.

Any help would be great

Thanks
Peter



.Net Framework >> RE: .NET Windows Service

by UGhhbmk » Thu, 05 Aug 2004 02:03:03 GMT


Hi Peter,
We have successfully written and deployed widows services in C# as well as unmanaged code (for loading wks or svr flavor of CLR) and to host remoting service. Never had a problem like this one. OS- XP, W2k3.

Can you provide few more details about what exactly you are trying to do...

-Phani

.Net Framework >> .NET Windows Service

by Larry Powell » Tue, 10 Aug 2004 01:22:41 GMT

Hi,

I have built a couple of Windows Service Application in Visual Studio and
can deploy them successfully with the installutil command line utility.
When I add a setup project and try to run the resultant msi the install runs
without issue and completes successfully but the windows service does not
show up in the services applet.



Any ideas?



Thanks,



LP



as unmanaged code (for loading wks or svr flavor of CLR) and to host
remoting service. Never had a problem like this one. OS- XP, W2k3.
do...

of a
to
My

.Net Framework >> .NET Windows Service

by pdhpoolplayer1957 » Tue, 24 Aug 2004 20:11:27 GMT

Hi Larry,

Just camping, because I have pretty much the same issue. I use
installutil successfully. (You would think that the msi would take
care of this.) Additionally, my service will start, but stops
immediately without doing what it's designed to do.

Back to the drawing board....

PH

Similar Threads

1. .NET Windows Service and Service Manager question. - VB.Net

2. Scheduler Question (.Net Windows Service or SQL Server Job Agent)

3. Posting to ASP page from .NET windows service

4. asp.net windows services

I need to create a asp.net page that will have the ability to start and stop and windows service that we have created.  Is there an api or something that I can use to interact with windows services ?

5. Call .NET windows service methods from C++

6. Loading svr build of CLR for my .net Windows Service

7. .NET Windows Service startup time (very slow)

8. COM interoping in a .net windows service

Not sure how did you run your service.
One possiblity is that you didn't register the typelib of your vb6 
component.

--------------------
>From: "news.microsoft.com" < XXXX@XXXXX.COM >
>Subject: COM interoping in a .net windows service
>Date: Tue, 29 Jul 2003 10:34:29 -0400
>Lines: 24
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
>Message-ID: < XXXX@XXXXX.COM >
>Newsgroups: microsoft.public.dotnet.framework.interop
>NNTP-Posting-Host: 
66-208-193-146.ubr01a.rosele01.nj.hfc.comcastbusiness.net 66.208.193.146
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.interop:17570
>X-Tomcat-NG: microsoft.public.dotnet.framework.interop
>
>Hi there,
>
>        I have a windows service which I have written in vb.net which runs
>under the localsystem account. This service uses a vb6 com dll. I just 
added
>the reference of the COM object to my project, so dot.net automatically
>created the interop wrapper for me.
>
>        I am facing a strange problem. When I run my service and try to use
>any method of the COM object, for example lets say SetOutput(byval str as
>String), I get the error,
>
>QueryInterface failed for SetOutput .....
>
>To debug the problem I created a sample windows application in vb.net which
>uses the same interop dll and accesses the com object and everything works
>fine there.
>
>Does anyone have any sugessions?
>
>Thanks for your help.
>
>Hiren
>
>
>