Solved

PLEASE help...Message Queue access remote queue on win 2003 box C#

Posted on 2004-08-29
3
676 Views
Last Modified: 2008-01-09
i need to figure our what permissions i can set programmatically to access (.beginreceive) on a remote queue.  
here is the code I have.  I receive an error on the begin receive "Access to Message Queuing system is denied.".
Is there something i'm missing.  does anybody have example/sample code I can plug in to impersonate permissions in a queue.  I was thinking of ACL but i don't believe i can use that against a remote machine....


objLog4Net.Info ("  Queue server: " +  System.Configuration.ConfigurationSettings.AppSettings["mqserver"].ToString ());
System.Messaging.MessageQueue objQueue = new       System.Messaging.MessageQueue(@"FormatName:DIRECT=OS:" +
System.Configuration.ConfigurationSettings.AppSettings["mqserver"].ToString () );

objQueue.Formatter = new XmlMessageFormatter(new Type[]      {typeof(String)});
objQueue.ReceiveCompleted += new ReceiveCompletedEventHandler(MyReceiveCompleted);
objQueue.BeginReceive();  // PROBLEM HERE
0
Comment
Question by:racosta70
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11929630
the user you are running as needs permission to the queue ...

you can impersonate another user to access this as another user if you need to.
0
 
LVL 2

Expert Comment

by:netjkus
ID: 11931450
Try this.. enable trusted delegation on the machine that hosts the web page Tturn on integrated authentication. This is done through the MMC (Active Directory and Users->MachineName->Properties).

Hope it works
0
 

Author Comment

by:racosta70
ID: 12019643
figured out problem.  issue with site and accounts across domain.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question