Solved

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

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# Linq - Join two objects into one 3 53
c#, datatable, aspx 4 51
Disable the weekends on datepicker control 6 51
VS C# how to design libary of functions 7 33
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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