LLBLGen and NServiceBus

Posts   
 
    
kryten
User
Posts: 2
Joined: 10-Feb-2009
# Posted on: 28-Jul-2009 11:34:56   

Hi

Just wondered if anyone has ever had any success integrating llblgen entities with NServiceBus? We're currently trying to get somewhere with this, but we're getting a number of problems trying to load the bus.

Sample error:

System.TypeLoadException was unhandled Message="Method 'ValidateFieldValue' in type 'SD.LLBLGen.Pro.ORMSupportClasses.__Impl.IValidator' from assembly 'NServiceBus.Unicast.Transport.__Impl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation." Source="mscorlib" TypeName="SD.LLBLGen.Pro.ORMSupportClasses.__Impl.IValidator" StackTrace: at System.Reflection.Emit.TypeBuilder._TermCreateClass(Int32 handle, Module module) at System.Reflection.Emit.TypeBuilder.CreateTypeNoLock() at System.Reflection.Emit.TypeBuilder.CreateType() at NServiceBus.MessageInterfaces.MessageMapper.Reflection.MessageMapper.CreateTypeFrom(Type t, ModuleBuilder moduleBuilder) in d:\Helper\NSB\src\impl\messageInterfaces\NServiceBus.MessageInterfaces.MessageMapper.Reflection\MessageMapper.cs:line 163 at NServiceBus.MessageInterfaces.MessageMapper.Reflection.MessageMapper.InitType(Type t, ModuleBuilder moduleBuilder) in d:\Helper\NSB\src\impl\messageInterfaces\NServiceBus.MessageInterfaces.MessageMapper.Reflection\MessageMapper.cs:line 66 at NServiceBus.MessageInterfaces.MessageMapper.Reflection.MessageMapper.InitType(Type t, ModuleBuilder moduleBuilder) in d:\Helper\NSB\src\impl\messageInterfaces\NServiceBus.MessageInterfaces.MessageMapper.Reflection\MessageMapper.cs:line 80 at NServiceBus.MessageInterfaces.MessageMapper.Reflection.MessageMapper.InitType(Type t, ModuleBuilder moduleBuilder) in d:\Helper\NSB\src\impl\messageInterfaces\NServiceBus.MessageInterfaces.MessageMapper.Reflection\MessageMapper.cs:line 80 at NServiceBus.MessageInterfaces.MessageMapper.Reflection.MessageMapper.Initialize(Type[] types) in d:\Helper\NSB\src\impl\messageInterfaces\NServiceBus.MessageInterfaces.MessageMapper.Reflection\MessageMapper.cs:line 34 at NServiceBus.Serializers.XML.MessageSerializer.Initialize(Type[] types) in d:\Helper\NSB\src\impl\Serializers\NServiceBus.Serializers.XML\MessageSerializer.cs:line 51 at NServiceBus.Unicast.Transport.Msmq.MsmqTransport.set_MessageTypesToBeReceived(IList1 value) in d:\Helper\NSB\src\impl\unicast\NServiceBus.Unicast.Msmq\MsmqTransport.cs:line 193 at NServiceBus.Unicast.UnicastBus.Start(Action1[] startupActions) in d:\Helper\NSB\src\unicast\NServiceBus.Unicast\UnicastBus.cs:line 612 at Harrington.Shared.ServiceBusFactory.GetSubscriberBus() in C:\Conduit\NEW4\New\src\Shared\ServiceBusFactory.cs:line 37 at Harrington.Client.Subscriber1.Program.Main(String[] args) in C:\Conduit\NEW4\New\src\Harrington.Client.Subscriber1\Program.cs:line 16 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:

Any suggestions? Not really sure where to start with this.

Cheers

Jan

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39861
Joined: 17-Aug-2003
# Posted on: 28-Jul-2009 15:24:36   

NServiceBus ? Isn't that Udi Dahan's toolkit? From the looks of it, it looks like it tries to subclass something?

Perhaps this question is better suited in an NServiceBus forum, or perhaps you could mail Udi yourself (we know each other, so you can tell him I sent you (Frans Bouma)) as the error seems to be originating from some subclassing...

Frans Bouma | Lead developer LLBLGen Pro
kryten
User
Posts: 2
Joined: 10-Feb-2009
# Posted on: 28-Jul-2009 16:35:04   

Hi Frans,

Yes, that's it. We've posted a message to Udi also, but thought someone may have come across the problem before.

Looks like it's something to do with the way it tries to reflect on interfaces that contain methods...I'd agreed it probably is a problem more suited for Udi.

Thanks for the response. I'll drop your name into the conversation if we need to get the big guns out simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39861
Joined: 17-Aug-2003
# Posted on: 28-Jul-2009 17:22:23   

Ok simple_smile Please post back any feedback you receive or questions if we need to provide more info. simple_smile

Frans Bouma | Lead developer LLBLGen Pro