幾個月後,我終於回到使用nservicebus並開始在服務器上測試它。不幸的是我得到這個例外在nservicebus中創建隊列時出錯
The queue does not exist or you do not have sufficient permissions to perform the operation.
我使用計算機檢查經理和隊列確實存在,我已授予每個人在排隊但這個問題仍然存在完全的控制。我究竟做錯了什麼?
我使用
var bus = NServiceBus.Configure.With()
.SpringBuilder()
.XmlSerializer()
.MsmqTransport()
.IsTransactional(true)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.LoadMessageHandlers()
.CreateBus()
.Start();
和
<MsmqTransportConfig
InputQueue="ListenQueue"
ErrorQueue="error"
NumberOfWorkerThreads="1"
MaxRetries="5"
/>
我工作得很好我的開發框。完整的堆棧跟蹤(這似乎不那麼有用)看起來像
System.Messaging.MessageQueueException was unhandled
Message=The queue does not exist or you do not have sufficient permissions to perform the operation.
Source=NServiceListener
ErrorCode=-2147467259
StackTrace:
at NServiceListener.Program.Main(String[] args) in C:\temp\NServiceListener\NServiceListener\Program.cs:line 35
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()
我只是嘗試手動創建隊列也沒有工作。 – stimms 2010-02-24 17:25:45