I have .net 4.0 application ported from net 3.5 that uses net.msmq running on server 2008 x64
Setup
- net.msmq Service with address "net.msmq://localhost/private/msmqdataservice.svc"
- net.msmq endpoing with address "net.msmq://localhost/private/msmqdataservice.svc"
- queue in MSMQ -> name = "$private\msmqdataservice.svc"
everything is working on production right now with .net 3.5.
I installed .net 4.0 on server and created new site to for staging on same box.
New staging msmq setup is
- net.msmq Service with address "net.msmq://localhost/private/staging/msmqdataservice.svc"
- net.msmq endpoing with address "net.msmq://localhost/private/staging/msmqdataservice.svc"
- queue in MSMQ -> name = "$private\staging/msmqdataservice.svc"
Created another queue for different site.
Another change i made with new site is this is different site in iis with listening on different ip address. I have left net.msmq binding to 'localhost'. Main site as well has same binding for net.msmq -> 'localhost'. I think that's how it should be. Please point out if need some different configuration.
Issue is my requests are making into queue but not getting picked up by application it just stays there
There is no indication of anything wrong in log. Only thing i am seeing in log related to this is a warning "msmqactivation cannot discover queue". Although this warning i have never understood correctly as we have been seeing this always with everything fine with msmq in 3.5.
Anything i can think is verified and it's correct.
- Application's app pool is running as network service and it has full access to queue.
- net.msmq activation service is running with network service
- Tried different naming convention of service url with same result
Summary
Please provide any insight into multiple sites setup with net.msmq. I am using net.msmq binding with value = 'localhost' for both site. I think it's machinename identity.
Any way to diagnose this issue?
Any thing else you may think of may help.
We had to hold off release yesterday as after spending like 100 man hours we can't figure out what's the issue is. Also can't make it break in my development machine.
Edit
Issue was that after creating new site naming convention does not work like
net.msmq Service with address "net.msmq://localhost/private/staging/msmqdataservice.svc" net.msmq endpoing with address "net.msmq://localhost/private/staging/msmqdataservice.svc" queue in MSMQ -> name = "$private\staging/msmqdataservice.svc"
it worked with service name net.msmq://localhost/private/msmqdataservice.svc
but now i cannot have two sites using exactly same endpoint.
Any way to have same endpoint in two different site with different url and different queue in same machine?