topshelf reorg is done

18 views
Skip to first unread message

Dru Sellers

unread,
Nov 25, 2009, 7:50:46 PM11/25/09
to masstrans...@googlegroups.com
merging back to mainline. its not 100% backwards compatible. i think this is only in the command line args at the moment. I do want to get back to that, but I wanted to get this on the trunk for those that wanted to play with it and give feed back.

-d

Rob Tennyson

unread,
Nov 26, 2009, 10:10:31 AM11/26/09
to masstransit-discuss
Having a bit of trouble with the latest in the trunk.

First, it took the changes in this patch to get things to run at
all...

http://groups.google.com/group/masstransit-discuss/web/topshelf.patch

Now that it's running, I get this message:

---------------------------
Windows Service Start Failure
---------------------------
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 ServerExplorer, Windows Services Administrative tool
or the NET START command.
---------------------------
OK
---------------------------

Any thoughts? This is on Windows 7 if that makes a difference

Thanks,
Rob

Dru Sellers

unread,
Nov 26, 2009, 10:27:47 AM11/26/09
to masstrans...@googlegroups.com
makes tons of sense. have a really good idea whats up.
just a sec.
-d

--

You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/masstransit-discuss?hl=en.



Dru Sellers

unread,
Nov 26, 2009, 10:38:22 AM11/26/09
to masstrans...@googlegroups.com
yeah the image path was wrong. sorry. updating.
-d

Dru Sellers

unread,
Nov 27, 2009, 7:04:30 AM11/27/09
to masstrans...@googlegroups.com
ok. trying to fix this but I have corrupted something with the winservice. its not uninstalling.
so that I can get past this, does anyone have ideas how I can get past the service already exists error?

It doesn't show up in 'services'
i have tried using a VBScript
I have tried to P/Invoke it 
I don't see it in the registery

Its gotta be somewhere

-d

Dru Sellers

unread,
Nov 27, 2009, 7:06:14 AM11/27/09
to masstrans...@googlegroups.com
INFO  - Starting Host
DEBUG - Arguments: service
DEBUG - Running command: 'service'
DEBUG - Executing subcommand 'install'
INFO  - Received service install notification
DEBUG - Attempting to install 'stuff'

Running a transacted installation.

Beginning the Install phase of the installation.
INFO  - Installing Service stuff
Installing service stuff...
Service stuff has been successfully installed.
Creating EventLog source stuff in log Application...
Installing service stuff...
Creating EventLog source stuff in log Application...

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The specified service already exists

The Rollback phase of the installation is beginning.
Restoring event log to previous state for source stuff.
Restoring event log to previous state for source stuff.
Service stuff is being removed from the system...
Service stuff was successfully removed from the system.

The Rollback phase completed successfully.
FATAL - Host encountered an unhandled exception on the AppDomain
System.InvalidOperationException: The installation failed, and the rollback has been performed. ---> System.ComponentModel.Win32Exception: The specified service already exists
   at System.ServiceProcess.ServiceInstaller.Install(IDictionary stateSaver)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at Topshelf.Commands.WinService.SubCommands.HostServiceInstaller.Install(IDictionary stateSaver) in E:\Development\topshelf\src\Topshelf\Commands\WinService\SubCommands\HostServiceInstaller.cs:line 46
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
   --- End of inner exception stack trace ---
   at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
   at Topshelf.Commands.WinService.SubCommands.WinServiceHelper.Register(String fullServiceName, HostServiceInstaller installer) in E:\Development\topshelf\src\Topshelf\Commands\WinService\SubCommands\WinServiceHelper.cs:line 85
   at Topshelf.Commands.WinService.SubCommands.InstallService.Execute(IEnumerable`1 args) in E:\Development\topshelf\src\Topshelf\Commands\WinService\SubCommands\InstallService.cs:line 52
   at Topshelf.Commands.WinService.ServiceCommand.Execute(IEnumerable`1 args) in E:\Development\topshelf\src\Topshelf\Commands\WinService\ServiceCommand.cs:line 84
   at Topshelf.TopshelfDispatcher.Dispatch(RunConfiguration config, TopshelfArguments args) in E:\Development\topshelf\src\Topshelf\TopshelfDispatcher.cs:line 45
   at Topshelf.Runner.Host(RunConfiguration configuration, String[] args) in E:\Development\topshelf\src\Topshelf\Runner.cs:line 51
   at Stuff.Program.Main(String[] args) in E:\Development\topshelf\src\Stuff\Program.cs:line 46

The transacted install has completed.

Dru Sellers

unread,
Nov 27, 2009, 7:35:32 AM11/27/09
to masstrans...@googlegroups.com
ok the imagepath issue is fixed in the trunk.
I have taken my working copy and moved it to /branches/issue
- this code also removes the IServiceLocator for a lambda based object builder.

-d

Dru Sellers

unread,
Nov 27, 2009, 9:21:59 AM11/27/09
to masstrans...@googlegroups.com
Ok, pretty sure this is fixed. I was adding the installers twice.
That's what I get for leaving commented code lying around.
:)

I will be merging in the SL code back into main line in a bit.

-d
Reply all
Reply to author
Forward
0 new messages