phatboyg/MassTransit — Issue #46: Can't run PubSub sample
Author: RobGibbens
Created: 2012-02-28 22:10:19+00:00
State: open

In Master branch, I pulled the code, ran build.bat, set Client and Server to both start on debug :

CLIENT OUTPUT:
Client Loading
Topshelf v2.2.3.0, .NET Framework v4.0.30319.261
Detected the operating system: 'win'
[Topshelf] Before starting services complete
[ClientService] Create complete
(ClientService) Created
(ClientService) Starting
An exception occurred
Topshelf.Exceptions.TopshelfException: All services were not started within the
specified timeout
at Topshelf.Model.ServiceCoordinator.WaitUntilServicesAreRunning(IEnumerable`
1 services, TimeSpan timeout) in d:\BuildAgent-02\work\799c08e77fef999d\src\Tops
helf\Model\ServiceCoordinator.cs:line 226
at Topshelf.Model.ServiceCoordinator.Start() in d:\BuildAgent-02\work\799c08e
77fef999d\src\Topshelf\Model\ServiceCoordinator.cs:line 118
at Topshelf.Hosts.ConsoleRunHost.Run() in d:\BuildAgent-02\work\799c08e77fef9
99d\src\Topshelf\Hosts\ConsoleRunHost.cs:line 67
[Topshelf] Stopping

SERVER OUTPUT:
Server Loading
Topshelf v2.2.3.0, .NET Framework v4.0.30319.261
Detected the operating system: 'win'
Running as a console application, using the console host
Starting up as a console application
[Topshelf] Before starting services
[Topshelf] Before starting services complete
[PasswordUpdateService] Create
[PasswordUpdateService] Create complete
(PasswordUpdateService) Created
[PasswordUpdateService] Start
(PasswordUpdateService) Starting
An exception occurred
Topshelf.Exceptions.TopshelfException: All services were not started within the
specified timeout
at Topshelf.Model.ServiceCoordinator.WaitUntilServicesAreRunning(IEnumerable`
1 services, TimeSpan timeout) in d:\BuildAgent-02\work\799c08e77fef999d\src\Tops
helf\Model\ServiceCoordinator.cs:line 226
at Topshelf.Model.ServiceCoordinator.Start() in d:\BuildAgent-02\work\799c08e
77fef999d\src\Topshelf\Model\ServiceCoordinator.cs:line 118
at Topshelf.Hosts.ConsoleRunHost.Run() in d:\BuildAgent-02\work\799c08e77fef9
99d\src\Topshelf\Hosts\ConsoleRunHost.cs:line 67
[Topshelf] Stopping
(PasswordUpdateService) Fault
Fault on PasswordUpdateService: Topshelf.Exceptions.ServiceControlException
Service Start Exception: PasswordUpdateService (PasswordUpdateService)
at Topshelf.Builders.LocalServiceBuilder`1.StartService(T service) in d:\Buil
dAgent-02\work\799c08e77fef999d\src\Topshelf\Config\Builders\LocalServiceBuilder
.cs:line 71
at Topshelf.Model.LocalServiceController`1.CallAction[TBefore,TComplete](Stri
ng text, Action`1 callback, Func`1 before, Func`1 complete) in d:\BuildAgent-02\
work\799c08e77fef999d\src\Topshelf\Model\LocalServiceController.cs:line 155
HelpLink:

MassTransit.Exceptions.ConfigurationException
An exception was thrown during service bus creation
at MassTransit.ServiceBusFactory.New(Action`1 configure) in C:\dev\MassTransi
t\src\MassTransit\Configuration\ServiceBusFactory.cs:line 50
at MassTransit.Bus.Initialize(Action`1 configure) in C:\dev\MassTransit\src\M
assTransit\Bus.cs:line 52
at Server.Program.<>c__DisplayClass6.

b__2(PasswordUpdateService o) in C
:\dev\MassTransit\src\Samples\PublishSubscribe\Server\Program.cs:line 57
at Topshelf.Builders.LocalServiceBuilder`1.StartService(T service) in d:\Buil
dAgent-02\work\799c08e77fef999d\src\Topshelf\Config\Builders\LocalServiceBuilder
.cs:line 65
HelpLink:

MassTransit.Exceptions.ConfigurationException
Failed to create the bus service: SubscriptionRouterService
at MassTransit.Builders.ServiceBusBuilderImpl.RunBusServiceConfigurators(Serv
iceBus bus) in C:\dev\MassTransit\src\MassTransit\Configuration\Builders\Service
BusBuilderImpl.cs:line 109
at MassTransit.Builders.ServiceBusBuilderImpl.Build() in C:\dev\MassTransit\s
rc\MassTransit\Configuration\Builders\ServiceBusBuilderImpl.cs:line 59
at MassTransit.BusConfigurators.ServiceBusConfiguratorImpl.CreateServiceBus()
in C:\dev\MassTransit\src\MassTransit\Configuration\BusConfigurators\ServiceBus
ConfiguratorImpl.cs:line 157
at MassTransit.ServiceBusFactory.New(Action`1 configure) in C:\dev\MassTransi
t\src\MassTransit\Configuration\ServiceBusFactory.cs:line 44
HelpLink:

System.InvalidOperationException
Timeout waiting for subscription service to respond
at MassTransit.Services.Subscriptions.Client.SubscriptionClient.WaitForSubscr
iptionServiceResponse() in C:\dev\MassTransit\src\MassTransit\Services\Subscript
ions\Client\SubscriptionClient.cs:line 105
at MassTransit.Services.Subscriptions.Client.SubscriptionClient..ctor(IServic
eBus bus, SubscriptionRouter router, Uri subscriptionServiceUri, TimeSpan startT
imeout) in C:\dev\MassTransit\src\MassTransit\Services\Subscriptions\Client\Subs
criptionClient.cs:line 61
at MassTransit.Services.Subscriptions.Configuration.SubscriptionClientConfigu
ratorImpl.Create(IServiceBus bus, SubscriptionRouter router) in C:\dev\MassTrans
it\src\MassTransit\Services\Subscriptions\Configuration\SubscriptionClientConfig
uratorImpl.cs:line 42
at MassTransit.SubscriptionBuilders.SubscriptionRouterBuilderImpl.<>c__Displa
yClass4.b__3(Func`3 x) in C:\dev\MassTransit\src\MassTransit\Configuratio
n\SubscriptionBuilders\SubscriptionRouterBuilderImpl.cs:line 64
at Magnum.Extensions.ExtensionsToEnumerable.Each[T](IEnumerable`1 collection,
Action`1 callback) in d:\Builds\MassTransit-Magnum\src\Magnum\Extensions\Extens
ionsToEnumerable.cs:line 30
at MassTransit.SubscriptionBuilders.SubscriptionRouterBuilderImpl.Build() in
C:\dev\MassTransit\src\MassTransit\Configuration\SubscriptionBuilders\Subscripti
onRouterBuilderImpl.cs:line 64
at MassTransit.SubscriptionConfigurators.SubscriptionRouterConfiguratorImpl.C
reate(IServiceBus bus) in C:\dev\MassTransit\src\MassTransit\Configuration\Subsc
riptionConfigurators\SubscriptionRouterConfiguratorImpl.cs:line 66
at MassTransit.Builders.ServiceBusBuilderImpl.RunBusServiceConfigurators(Serv
iceBus bus) in C:\dev\MassTransit\src\MassTransit\Configuration\Builders\Service
BusBuilderImpl.cs:line 99
HelpLink:

[PasswordUpdateService] Stop
(PasswordUpdateService) Stopping

In Develop branch, I pulled the code, tried to run build.bat :
Building for .NET 3.5
rake aborted!
cannot load such file -- semver

I compiled the code anyway and got a compile error:

Error	6	The referenced assembly "C:\dev\MassTransit\src\Loggers\MassTransit.Log4NetIntegration\bin\Debug\MassTransit.Log4NetIntegration.dll" was not found. If this assembly is produced by another one of your projects, please make sure to build that project before building this one.	MassTransit.RuntimeServices