MSMQ

  • Thread starter Thread starter Krishnan
  • Start date Start date
K

Krishnan

Hi,
Am extremely sorry, but I couldn't find a right group for this one.

I have a C# program which uses the Messaging component and I try to insert a
message into a public queue in my machine when I get a message saying "The
Quese is not registered in the DS". I see that it is the ADS it is reporting
about. How would I register a queue in the DS?

TIA
Krishnan
 
Krishnan,

I believe that you have to go to the Windows Components section of
Add/Remove components and then select messaging. I believe that when you
install MSMQ, that it asks you which Directory Server you want to use, if
you want to integrate it with one.

Hope this helps.
 
Hi,
Thanks for your reply.
But am afraid this doesn't help. Btw, I got a little further. If I access
the same queue from a desktop application, things go fine. But since am
accessing through an asp page, it just looks into ADS and if it doesn't find
the queue there, fails. Should I get to the pdc and register the queue?

TIA
Krishnan

Nicholas Paldino said:
Krishnan,

I believe that you have to go to the Windows Components section of
Add/Remove components and then select messaging. I believe that when you
install MSMQ, that it asks you which Directory Server you want to use, if
you want to integrate it with one.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Krishnan said:
Hi,
Am extremely sorry, but I couldn't find a right group for this one.

I have a C# program which uses the Messaging component and I try to
insert
a
message into a public queue in my machine when I get a message saying "The
Quese is not registered in the DS". I see that it is the ADS it is reporting
about. How would I register a queue in the DS?

TIA
Krishnan
 
Krishnan,

Ahh, yes, this is the source of your problem. By default, ASP.NET runs
under the ASPNET account, which has no rights to the network. It is a local
user account. To get around this, you have to change the web.config file
for the directory that the page is in so that it impersonates a user that
has rights. You can also impersonate another user for as long as you want
during the processing of the page through a call to the Impersonate method
on the WindowsIdentity class. There is an example in the documentation for
that method on how to use it.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Krishnan said:
Hi,
Thanks for your reply.
But am afraid this doesn't help. Btw, I got a little further. If I access
the same queue from a desktop application, things go fine. But since am
accessing through an asp page, it just looks into ADS and if it doesn't find
the queue there, fails. Should I get to the pdc and register the queue?

TIA
Krishnan

message news:[email protected]...
Krishnan,

I believe that you have to go to the Windows Components section of
Add/Remove components and then select messaging. I believe that when you
install MSMQ, that it asks you which Directory Server you want to use, if
you want to integrate it with one.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Krishnan said:
Hi,
Am extremely sorry, but I couldn't find a right group for this one.

I have a C# program which uses the Messaging component and I try to
insert
a
message into a public queue in my machine when I get a message saying "The
Quese is not registered in the DS". I see that it is the ADS it is reporting
about. How would I register a queue in the DS?

TIA
Krishnan
 
Access public queues from a COM+ server type application, that runs with
fixed domain credentials.

Willy.

Krishnan said:
Hi,
Thanks for your reply.
But am afraid this doesn't help. Btw, I got a little further. If I access
the same queue from a desktop application, things go fine. But since am
accessing through an asp page, it just looks into ADS and if it doesn't find
the queue there, fails. Should I get to the pdc and register the queue?

TIA
Krishnan

message news:[email protected]...
Krishnan,

I believe that you have to go to the Windows Components section of
Add/Remove components and then select messaging. I believe that when you
install MSMQ, that it asks you which Directory Server you want to use, if
you want to integrate it with one.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Krishnan said:
Hi,
Am extremely sorry, but I couldn't find a right group for this one.

I have a C# program which uses the Messaging component and I try to
insert
a
message into a public queue in my machine when I get a message saying "The
Quese is not registered in the DS". I see that it is the ADS it is reporting
about. How would I register a queue in the DS?

TIA
Krishnan
 
there's a best practices PPT on the microsoft.com web site
it recommends use of a DIRECT naming convention, and not rely upon the AD to do a lookup

also you need to change the permissions to everyone
if you search for your error message on the web, that's another recommendation.
 
Back
Top