无法从程序集'NServiceBus.Core,Version = 4.0.0.0加载类型'NServiceBus.Unicast.Subscriptions.ISubscriptionStorage',

时间:2013-05-31 14:03:34

标签: nhibernate fluent-nhibernate nservicebus

我在尝试在项目中使用NService 4.0 beta时遇到此错误

这是我的配置

public void Install(IWindsorContainer container, IConfigurationStore store)
    {
        Configure.With()
            .DefiningEventsAs(m => m.Namespace != null && m.Namespace.StartsWith("SomeMessage"))
            .CastleWindsorBuilder(container)
            .Log4Net(
            .XmlSerializer()
            .MsmqTransport()
            .DBSubcriptionStorage()
            .IsTransactional(false)
            .UnicastBus()
            .LoadMessageHandlers()
            .CreateBus()
            .Start();
    }

配置的NHibernate部分

<DBSubscriptionStorageConfig>}
<NHibernateProperties>}
  <add Key="connection.provider" Value="NHibernate.Connection.DriverConnectionProvider" />
  <add Key="connection.driver_class" Value="NHibernate.Driver.SqlClientDriver" />
  <add Key="connection.connection_string" Value="Server=myserver;initial catalog=NServiceBus;Integrated Security=SSPI" />
  <add Key="dialect" Value="NHibernate.Dialect.MsSql2008Dialect" />
</NHibernateProperties><br/>

堆栈追踪:

 at NServiceBus.ConfigureNHibernateSubscriptionStorage.DBSubcriptionStorage(Configure config, Configuration configuration, Boolean autoUpdateSchema)
   at NServiceBus.ConfigureNHibernateSubscriptionStorage.DBSubcriptionStorage(Configure config) in c:\TeamCity\buildAgent\work\nsb.master_9\src\nhibernate\Subscriptions\NServiceBus.Unicast.Subscriptions.NHibernate\Config\ConfigureNHibernateSubscriptionStorage.cs:line 57
   at Some.Publisher.Infrastructure.ConfigureNServiceBus.Install(IWindsorContainer container, IConfigurationStore store) in c:\Projects\SomeProject\Mainline\Some.Publisher\Infrastructure\ConfigureNServiceBus.cs:line 12
   at Castle.Windsor.WindsorContainer.Install(IWindsorInstaller[] installers, DefaultComponentInstaller scope)
   at Castle.Windsor.WindsorContainer.Install(IWindsorInstaller[] installers)
   at Some.Publisher.Infrastructure.RegisterAllComponents.RegisterEverything() in c:\Projects\SomeProject\Mainline\Some.Publisher\Infrastructure\RegisterAllComponents.cs:line 18
   at PublisherService..ctor() in c:\Projects\SomeProject\Mainline\Some.Publisher\PublisherService.cs:line 25
   at Some.Publisher.Program.Main(String[] args) in c:\Projects\SomeProject\Mainline\Some.Publisher\Program.cs:line 16
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

有人可以指出我正确的方向并让我知道我们在哪里可以找到“NServiceBus.Unicast.Subscriptions.ISubscriptionStorage”或者我是否需要在4.0中实现此接口?

0 个答案:

没有答案