Windows Service

G

Guest

i tried to create a very simple Windows Service using C#, after i install the exe as Windows Service by using installutil ... the Windows Service does not displayed in Services ... can anyone help ?
i get this for mcWebService.InstallLog file where [mcWebService] is my ServiceName
========================================================================
Installing assembly 'c:\mcwebservice\bin\debug\mcwebservice.exe'.
Affected parameters are:
assemblypath = c:\mcwebservice\bin\debug\mcwebservice.exe
logfile = c:\mcwebservice\bin\debug\mcwebservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\mcwebservice\bin\debug\mcwebservice.exe assembly.
Committing assembly 'c:\mcwebservice\bin\debug\mcwebservice.exe'.
Affected parameters are:
assemblypath = c:\mcwebservice\bin\debug\mcwebservice.exe
logfile = c:\mcwebservice\bin\debug\mcwebservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\mcwebservice\bin\debug\mcwebservice.exe assembly.
Remove InstallState file because there are no installers.
====================================================================

and i get this for InstallUtil.IinstallLog file ...
====================================================================
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\mcwebservice\bin\debug\mcwebservice.exe assembly's progress.
The file is located at c:\mcwebservice\bin\debug\mcwebservice.InstallLog.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\mcwebservice\bin\debug\mcwebservice.exe assembly's progress.
The file is located at c:\mcwebservice\bin\debug\mcwebservice.InstallLog.

The Commit phase completed successfully.

The transacted install has completed.
======================================================================
 
J

José Joye

According to your log, the installer part is missing.

Have a look to the link below for a step by step sample:

http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=32

José

Machi said:
i tried to create a very simple Windows Service using C#, after i install
the exe as Windows Service by using installutil ... the Windows Service does
not displayed in Services ... can anyone help ?
i get this for mcWebService.InstallLog file where [mcWebService] is my ServiceName
========================================================================
Installing assembly 'c:\mcwebservice\bin\debug\mcwebservice.exe'.
Affected parameters are:
assemblypath = c:\mcwebservice\bin\debug\mcwebservice.exe
logfile = c:\mcwebservice\bin\debug\mcwebservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be
found in the c:\mcwebservice\bin\debug\mcwebservice.exe assembly.
Committing assembly 'c:\mcwebservice\bin\debug\mcwebservice.exe'.
Affected parameters are:
assemblypath = c:\mcwebservice\bin\debug\mcwebservice.exe
logfile = c:\mcwebservice\bin\debug\mcwebservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be
found in the c:\mcwebservice\bin\debug\mcwebservice.exe assembly.
Remove InstallState file because there are no installers.
====================================================================

and i get this for InstallUtil.IinstallLog file ...
====================================================================
Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the
c:\mcwebservice\bin\debug\mcwebservice.exe assembly's progress.
The file is located at c:\mcwebservice\bin\debug\mcwebservice.InstallLog.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the
c:\mcwebservice\bin\debug\mcwebservice.exe assembly's progress.
 
R

Ravichandran J.V.

You have added installer from elsewhere onto your Windows Service Design
page.

Right Click on the Service design page and select "Add Installer". Work
with these installers and not the ones that you have right now. Delete
the current installers.

with regards,


J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top