473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

create public message queue at remote machine

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
6 11456


"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
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

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

"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Prashanth Uppunda | last post by:
Hello, Does anybody have an idea on how to instantiate a DCOM server residing in another machine using C#? Thanks Prashanth
6
by: SamIAm | last post by:
Hi am creating a email application that needs to mail out a very large amount of emails. I have created a multithreaded c# application that using message queuing. I have created a threadpool of 5...
1
by: Mailstore | last post by:
Hi, This is the first time im working with MSMQ, so a very basic question. If I want to send a message to a queue that already exists on a remote machine, do I need to have message queuing...
8
by: DerekS | last post by:
Hi, I've been pulling my hair out trying to write a simple method to programatically create a system DSN with all parameters on a remote machine. I have ensured I have the correct permissions on...
1
by: Kishore Gopalan | last post by:
Hi, I have a strange trouble. My application sends messages to a local MSMQ Queue (say 'A') and I use a listener (a windows service) to move the messages to another local queue (say 'B') and my...
2
by: deepak | last post by:
-- bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx
2
by: deepak | last post by:
how to create msmq queue at remote machine? n how to send messege to remote queue? -- deepak
0
by: Marcus | last post by:
Hello All, I am trying to create a private MSMQ message queue on a remote application server from an asp.net application using the following code: Dim queue As MessageQueue queue =...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.