All,
So I am working on a large enterprise wide Project and I am prototyping out for test of MassTransit with RabbitMQ and WPF. I have recreated essentially a slimmed down test case of your StarBucks app but for the customer I am using WPF. The problem is I am not sure the best place to Initialize MassTransit in the WPF Client. So that is question 1.
Question two is I think the nugget packages are broken. Well at least the ones I installed into my project. I get a topshelf exception because the log4net version that auto installed as a dependency is version 4 and it is looking for version 1.2.10.0
thanks,
Terry
System.TypeInitializationException was unhandled
Message=The type initializer for 'Topshelf.HostFactory' threw an exception.
Source=Topshelf
TypeName=Topshelf.HostFactory
StackTrace:
at Topshelf.HostFactory.Run(Action`1 configure)
at ServerComponent.Server.Main() in C:\Users\terry\documents\visual studio 2010\Projects\Sc2.MassTransit.RabbitMqTest\ServerComponent\Server.cs:line 45
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.FileLoadException
Message=Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source=Topshelf
FileName=log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821
FusionLog==== Pre-bind state information ===
LOG: DisplayName = log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821
(Fully-specified)
LOG: Appbase = file:///C:/Users/terry/documents/visual studio 2010/Projects/Sc2.MassTransit.RabbitMqTest/ServerComponent/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : Topshelf, Version=2.2.2.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821
LOG: Attempting download of new URL file:///C:/Users/terry/documents/visual studio 2010/Projects/Sc2.MassTransit.RabbitMqTest/ServerComponent/bin/Debug/log4net.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Build Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
StackTrace:
at Topshelf.HostFactory..cctor()
InnerException:
--
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.