By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,851 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,851 IT Pros & Developers. It's quick & easy.

create public message queue at remote machine

P: n/a
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:MachineN ame\\QueueName");

or

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


--
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx
Nov 16 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a


"deepak" <de*********@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
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:MachineN ame\\QueueName");

or

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


--
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx


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.
Nov 16 '05 #2

P: n/a
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.

"Willy Denoyette [MVP]" wrote:


"deepak" <de*********@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
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:MachineN ame\\QueueName");

or

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


--
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx


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.

Nov 16 '05 #3

P: n/a

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

"Willy Denoyette [MVP]" wrote:


"deepak" <de*********@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
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:MachineN ame\\QueueName");

or

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


--
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx


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.

Nov 16 '05 #4

P: n/a

"deepak" <de*********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...

And if used to catch exception in MessageQueue class then
MessageQueue_Exception_object.MessageQueueErrorCod e.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.


Nov 16 '05 #5

P: n/a
yaa, its ok.
But how to resolve the security issue?
Is there any work around?

"Willy Denoyette [MVP]" wrote:

"deepak" <de*********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...

And if used to catch exception in MessageQueue class then
MessageQueue_Exception_object.MessageQueueErrorCod e.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.


Nov 16 '05 #6

P: n/a
http://msdn.microsoft.com/library/de...SecNetch08.asp

"deepak" <de*********@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
yaa, its ok.
But how to resolve the security issue?
Is there any work around?

"Willy Denoyette [MVP]" wrote:

"deepak" <de*********@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
>
> And if used to catch exception in MessageQueue class then
> MessageQueue_Exception_object.MessageQueueErrorCod e.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.


Nov 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.