create public message queue at remote machine

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");
 
W

Willy Denoyette [MVP]

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.
 
G

Guest

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.
 
G

Guest

And if used to catch exception in MessageQueue class then
MessageQueue_Exception_object.MessageQueueErrorCode.ToString( )" gave
output as error code ""-1072824176"
 
W

Willy Denoyette [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top