create public message queue at remote machine

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have to create message queue at remote machin. My code works properly when
i use console application in c#. But it throws exception whenever i try it on
web application in c#. My code is


MessageQueue.Create("FormatName:DIRECT=OS:MachineName\\QueueName");

or

MessageQueue.Create("MachineName\\QueueName");
 
deepak said:
I have to create message queue at remote machin. My code works properly
when
i use console application in c#. But it throws exception whenever i try it
on
web application in c#. My code is


MessageQueue.Create("FormatName:DIRECT=OS:MachineName\\QueueName");

or

MessageQueue.Create("MachineName\\QueueName");

Please please, take some time to supply at least what exception is throwed
on you when posting.
I guess (that's all we can do) you have a security issue. So you'll have to
check if the caller identity has the apropriate rights to create (write to
etc..) message queues (messages).

Willy.
 
MessageQueueException object caught the exception and whenever i tried to print
"ObjectName.Message", its giving null exception but if i used to print the
"ObjectName.ErrorCode", its giving " -47467259" error code as output.
 
And if used to catch exception in MessageQueue class then
MessageQueue_Exception_object.MessageQueueErrorCode.ToString( )" gave
output as error code ""-1072824176"
 
deepak said:
And if used to catch exception in MessageQueue class then
MessageQueue_Exception_object.MessageQueueErrorCode.ToString( )" gave
output as error code ""-1072824176"

Ok, convert this error code to hex (will give - 0xC00E0090) and a simple
search in MSDN will return:

<MQ_ERROR_DS_LOCAL_USER (0xC00E0090)
(Introduced in MSMQ 3.0.) Returned when a local user, who is authenticated
as an anonymous user, attempts to access Active Directory.
Only authenticated domain users can access Active Directory. >


Which means, as I said before', that you have a security issue.

Willy.
 
Back
Top