MSMQ error opening queue
Hello. I'm trying to use msmq to establish communication between and indigo client and an indigo server.
I've set the endpoint like this on the server:
<endpoint
address="net.msmq://localhost/private$/indigotests"
binding="netMsmqBinding"
contract="ProgrammingIndigo.IWeather"
/>
And I've done this on the client:
<endpoint
configurationName="endpoint4"
address="net.msmq://localhost/private$/indigotests"
binding="netMsmqBinding"
contract="IWeather" />
when i try to runt the client i get this error:
unhandled exception: System.servicemodel.channels.mwmqexception: there was an error opening the queue: error -1072824214
I'm running the server and client on the same machine (win xp pro) and i'm using the september ctp. i've created the queue as private and i've enalbed the transactional option during the creation. since i'm not a queue expert, i was wondering if anyone has any tips on what to look for. thanks.
On a pretty wild shot:
1) Check and make sure the Q is installed properly and the name is right
2) Workgroup ? Make sure the security settings are right.
3) Bindings for the Q is right ? It has change a bit since the B1RC days. Something to the effect of <transport security="message"><message authenticationmode=> or something to that effect.
For the $ part, it was something that worked for me in the B1RC before BUT I had to remove it for the same to work in the pdc-bits
Luis,
Actually you should try to do two things.
First use private instead of private$ (as explained by William).
Then set the security mode in MSMQ binding to None. By default this value is set to 'Transport'. AFAIK this works only when you are part of a domain controler.
You can use the following code snippet to change the security mode.
NetMsmqBinding binding = new NetMsmqBinding();
binding.Security.Mode = NetMsmqSecurityMode.None;
hello guys.
thanks for the feedback, but i'm still lost because:
1.) i 've just started looking at indigo now (ie, did't had time to look at it during beta 1)
2.) i'm using a book about beta 1 to get started
so, please be patient with me :)
it seems that since beta 1 there has been several changes on the way one changes the bindings. for instance, according to the book i'm reading, bindings configuration is performed by attributes placed on a <binding> element. this has definitly changed and i can't seem to find any info on the docs. so, any clues on how to set the security mode on a config file?
hello William.
thanks for the link. well, i thought that the sdk that can be downloaded had the same info as that site...unfortunatelly for me, the sdk i've downloaded is unable to find any of the config sections (ex.: searching for <system.serviceModel> returns 0 hits).
regarding the "go to definition" option, i think it still hasen't been implemented in notepad 2 (yep, that's what i'm using here to work with indigo :))
thanks again.