1

我目前正在试用 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()

有什么我想念的吗?

4

1 回答 1

6

In addition to installing the infrastructure, you need to invoke the /install flag to get your queues created (which requires admin privileges).

于 2012-12-09T07:41:30.083 回答