我目前正在试用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()
我是不是漏掉了什么?
发布于 2012-12-09 15:41:30
除了安装基础设施之外,您还需要调用/install标志来创建队列(这需要管理员权限)。
https://stackoverflow.com/questions/13765202
复制相似问题