数か月後、ようやく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()