A workgroup installation computer does not support the operation
2012-03-26 22:04
471 查看
In one of our internal forums, recently, someone had posted a query regarding issues in connecting and receiving messages from journal queues. The exception they were getting was "Queue ID is not registered in DS". I hadn't worked with Journal queues
before, but this error seemed to me to be related to the queue path.
In my earlier blogs (here andhere),
I had discussed about the importance of specifying the right name for the queue and also mentioned how the path will typically look like. I decided to give it a try and created a private queue on my local machine and enabled journaling on it. Enabling journaling
is as trivial as checking a checkbox in the queue property window. You can also enable it by setting theUseJournalQueue property on the message.
Having done this, I used the syntax as described on
MSDN Documentation.
MessageQueue queue =new
MessageQueue(".\\test\\journal$");
To my surprise, I got an exception stating "A workgroup installation computer does not support the operation." Well, it isn't really a surprise, since this syntax is for public queues and that's what the error message is also indicating. The following
are the various syntaxes that did work for me. You could use either of the following based on your own preferences. Note that the "test" in the queue path is name of the private queue that i created.
MessageQueue queue =new
MessageQueue(".\\private$\\test\\journal$");
MessageQueue queue =new
MessageQueue(".\\private$\\test;journal");
The casing for "journal" doesn't matter and you can very well specify it as "JOURNAL". So much for local private queue. I quickly tried accessing the journal queue for a remote private queue as well, and following worked for me
MessageQueue queue =new
MessageQueue("FormatName:DIRECT=OS:server\\private$\\remote;journal");
Where "server" is the remote machine name. Again, "journal" can be specified as "JOURNAL" as well. The following, though is an extension of what worked in case of local private queue, didn't work for remote private queue and I got a "Format
name is invalid" exception.
MessageQueue queue =new
MessageQueue("FormatName:DIRECT=OS:punhjw30076\\private$\\remote\\journal$");
before, but this error seemed to me to be related to the queue path.
In my earlier blogs (here andhere),
I had discussed about the importance of specifying the right name for the queue and also mentioned how the path will typically look like. I decided to give it a try and created a private queue on my local machine and enabled journaling on it. Enabling journaling
is as trivial as checking a checkbox in the queue property window. You can also enable it by setting theUseJournalQueue property on the message.
Having done this, I used the syntax as described on
MSDN Documentation.
MessageQueue queue =new
MessageQueue(".\\test\\journal$");
To my surprise, I got an exception stating "A workgroup installation computer does not support the operation." Well, it isn't really a surprise, since this syntax is for public queues and that's what the error message is also indicating. The following
are the various syntaxes that did work for me. You could use either of the following based on your own preferences. Note that the "test" in the queue path is name of the private queue that i created.
MessageQueue queue =new
MessageQueue(".\\private$\\test\\journal$");
MessageQueue queue =new
MessageQueue(".\\private$\\test;journal");
The casing for "journal" doesn't matter and you can very well specify it as "JOURNAL". So much for local private queue. I quickly tried accessing the journal queue for a remote private queue as well, and following worked for me
MessageQueue queue =new
MessageQueue("FormatName:DIRECT=OS:server\\private$\\remote;journal");
Where "server" is the remote machine name. Again, "journal" can be specified as "JOURNAL" as well. The following, though is an extension of what worked in case of local private queue, didn't work for remote private queue and I got a "Format
name is invalid" exception.
MessageQueue queue =new
MessageQueue("FormatName:DIRECT=OS:punhjw30076\\private$\\remote\\journal$");
相关文章推荐
- Intel HAXM installation error - This computer does not support Intel Virtualization Technology (VT-x
- System.InvalidOperationException: The stream does not support reading
- This EntitySet of Type 'Data.Tbl_Student' does not support the 'Add' operation.原因
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- The server does not support version 2.5 of the J2EE Web module specification.解决方案
- The server does not support version 3.0 of the J2EE Web module specification
- 错误: Could not edit the data in the folder or database selected. The current version does not support editing (base, consistent, or closed)
- The server does not support version 3.1 of the JEE Web module specification.
- Longhorn's Server Core installation option may does not include the server graphic user interface (GUI)
- Android:AppCompat does not support the current theme features
- The server does not support version 3.0 of the J2EE Web module specification
- Qmake does not support build directories below the source directory
- SOS does not support the current target architecture解决方法
- MAGENTO安装提示错误Database server does not support the InnoDB storage engine - 让Magento1.7.0.2支持Mysql5.6
- AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOver
- 启动SpringBoot项目报错:The specified JRE installation does not exist
- delphi activex "The OLE control does not support self-registration"
- This version does not support documents saved in the Xcode 8 format. Open this document with Xcode 8
- The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.
- AppCompat does not support the current theme features