all messages show sucefully install, but it doesn´t apear on the Services Window.
Why??
I created a new service application from the template, it works from the visual studio, but I can´t install it as windows service!!
Thank you,
Guilherme Costa
Printable View
all messages show sucefully install, but it doesn´t apear on the Services Window.
Why??
I created a new service application from the template, it works from the visual studio, but I can´t install it as windows service!!
Thank you,
Guilherme Costa
Not sure if this will help you, but I'll throw it out anyway.
I've always opted to make my services get installed through the setup project created in VS. This way you just have the next, next, finish thing with no "manual" steps.
There's an example in the help on how to do this, and there's a few steps involved - you really have to read the help carefully, because it's easy to miss something.
When I did miss something - not attaching the installer or whatever - the setup project appeared to work fine, but the service never showed up under services.
Maybe double-check to make sure you've set up everything correctly?
now it asks for an user and password, but it won´t accept a local user that i just created to it.
messages:
C:\Temp_VB.Net\Integracao_HS\bin>installutil integracao_hs.exe
Microsoft (R) .NET Framework Installation utility Version 1.0.3705.0
Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.
Running a transacted installation.
Beginning the Install phase of the installation.
See the contents of the log file for the c:\temp_vb.net\integracao_hs\bin\integracao_hs.exe assembly's progress.
The file is located at c:\temp_vb.net\integracao_hs\bin\integracao_hs.InstallLog.
Installing assembly 'c:\temp_vb.net\integracao_hs\bin\integracao_hs.exe'.
Affected parameters are:
assemblypath = c:\temp_vb.net\integracao_hs\bin\integracao_hs.exe
logfile = c:\temp_vb.net\integracao_hs\bin\integracao_hs.InstallLog
Installing service Integracao HS...
Creating EventLog source Integracao HS in log Application...
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: O nome da conta é inválido, inexistente ou a senha não é válida para o nome de conta especificado
The Rollback phase of the installation is beginning.
See the contents of the log file for the c:\temp_vb.net\integracao_hs\bin\integracao_hs.exe assembly's progress.
The file is located at c:\temp_vb.net\integracao_hs\bin\integracao_hs.InstallLog.
Rolling back assembly 'c:\temp_vb.net\integracao_hs\bin\integracao_hs.exe'.
Affected parameters are:
assemblypath = c:\temp_vb.net\integracao_hs\bin\integracao_hs.exe
logfile = c:\temp_vb.net\integracao_hs\bin\integracao_hs.InstallLog
Restoring event log to previous state for source Integracao HS.
The Rollback phase completed successfully.
The transacted install has completed.
The installation failed, and the rollback has been performed.
C:\Temp_VB.Net\Integracao_HS\bin>
It is a problem my VS.net be in English, and my windows 2000 be in Portuguese?
Thanks for any help,
Guilherme Costa
Don't know about Portuguese/English conflicts, sorry. Is it asking for a user name/password when you try to install? I believe permissions require that only an administrator can install a service - but I could be wrong.
Do you have an installer in your project? If so, you can set the ServiceProcessInstaller.Account property to "LocalSystem" and the install routine does not prompt for credentials.