I am trying to create a simple service, actually all it does is present a msgbox upon the start and end. But once thats working it would be easy to build upon.
Anyway i have created the deployment project, and tried running the service and i am presented with this message "cannot start service from the command line or a debugger. A windows service must first be installed using installutil.exe and then started with the serverexpl, windows services or the NET START command."
So after a bit of research i went and ran the c:\winnt\Microsoft.Net\etc.....\installutil projectname.exe and was presented with the following errorlog.
Could someone please tell me where to go from here, as it still doesnt work?
--------------------------------------------------
Installing assembly 'c:\program files\servicemsgbox_install\servicemsgbox.exe'.
Affected parameters are:
assemblypath = c:\program files\servicemsgbox_install\servicemsgbox.exe
logfile = c:\program files\servicemsgbox_install\servicemsgbox.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\program files\servicemsgbox_install\servicemsgbox.exe assembly.
Committing assembly 'c:\program files\servicemsgbox_install\servicemsgbox.exe'.
Affected parameters are:
assemblypath = c:\program files\servicemsgbox_install\servicemsgbox.exe
logfile = c:\program files\servicemsgbox_install\servicemsgbox.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\program files\servicemsgbox_install\servicemsgbox.exe assembly.
Remove InstallState file because there are no installers.
------------------------------------------------------------
Also can i automate the installutil bit somehow, its not very user friendly for users to do.
Thanks.
Anyway i have created the deployment project, and tried running the service and i am presented with this message "cannot start service from the command line or a debugger. A windows service must first be installed using installutil.exe and then started with the serverexpl, windows services or the NET START command."
So after a bit of research i went and ran the c:\winnt\Microsoft.Net\etc.....\installutil projectname.exe and was presented with the following errorlog.
Could someone please tell me where to go from here, as it still doesnt work?
--------------------------------------------------
Installing assembly 'c:\program files\servicemsgbox_install\servicemsgbox.exe'.
Affected parameters are:
assemblypath = c:\program files\servicemsgbox_install\servicemsgbox.exe
logfile = c:\program files\servicemsgbox_install\servicemsgbox.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\program files\servicemsgbox_install\servicemsgbox.exe assembly.
Committing assembly 'c:\program files\servicemsgbox_install\servicemsgbox.exe'.
Affected parameters are:
assemblypath = c:\program files\servicemsgbox_install\servicemsgbox.exe
logfile = c:\program files\servicemsgbox_install\servicemsgbox.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\program files\servicemsgbox_install\servicemsgbox.exe assembly.
Remove InstallState file because there are no installers.
------------------------------------------------------------
Also can i automate the installutil bit somehow, its not very user friendly for users to do.
Thanks.