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
Solved

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

Posted on 2004-08-29
3
673 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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