Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now