安装NServiceBus基础结构

时间:2012-12-07 14:37:09

标签: nservicebus

我目前正在尝试NServiceBus,它在我的系统上运行良好。现在我想在我们的一个内部服务器上安装它,以记录从头开始设置nservicebus需要做什么。我目前的策略是调用似乎有用的NServiceBus.Host /installInfrastructure,它报告安装了RavenDB和Msmq以及DTC。但是,当我尝试运行我的示例应用程序(作为管理员)时,我得到一个例外:

2012-12-07 15:13:43,599 [1] FATAL NServiceBus.Hosting.GenericHost [(null)] <(null)> - System.InvalidOperationException: There is a problem with the input queue: FormatName:DIRECT=OS:dev\private$\els.bus.els.service. See the enclosed exception for details. ---> System.Messaging.MessageQueueException: The queue does not exist or you do not have sufficient permissions to perform the operation.
   at System.Messaging.MessageQueue.MQCacheableInfo.get_Transactional()
   at System.Messaging.MessageQueue.get_Transactional()
   at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageReceiver.QueueIsTransactional()
   --- End of inner exception stack trace ---
   at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageReceiver.QueueIsTransactional()
   at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageReceiver.Init(Address address, Boolean transactional)
   at NServiceBus.Unicast.Transport.Transactional.TransactionalTransport.NServiceBus.Unicast.Transport.ITransport.Start(Address address)
   at NServiceBus.Unicast.UnicastBus.NServiceBus.IStartableBus.Start(Action startupAction)
   at NServiceBus.Hosting.GenericHost.Start()

我有什么遗失的吗?

1 个答案:

答案 0 :(得分:6)

除了安装基础结构之外,还需要调用/ install标志来创建队列(这需要管理员权限)。