I changed the sample to remove all http communication. Everything works
fine so long as both client and server run on the same server. When the
client and server are running on different servers, it doesn't work. Without
transactions enabled, it does work.
The queue is on the client's server. The message does get written to that
queue, so that much works. However I get no notification the service (host)
has read the message. I'm sure it does not because the message remains in
the queue. I'm using a public queue with full control granted to these
accounts: my domain account, network service, system, everyone. When I
close the service console app (by hitting the enter key - it's waiting on a
console read to exit), I get the following exception:
Unhandled Exception:
System.ServiceModel.CommunicationObjectFaultedException: The communication
object, System.ServiceModel.ServiceHost, cannot be used for communication
because it is in the Faulted state.
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.System.IDisposable.Dispose()
at Microsoft.ServiceModel.Samples.OrderProcessorService.Main()
I ran into this problem with my own WCF application and decided to try the
sample app as a last resort. I'm suspecting something needs to be configured
with the DTC since the problem exists only when using transactions.
Any ideas? If there's a better newsgroups to post in, please let me know.
thanks.
I'm seeing horrible performance using DTC.
Sorry for not replying to your 4 posts - for some reason they haven't shown
up in my newsreader and I only noticed them when I browsed on
http://www.microsoft.com/communities.
Are you still having the MSMQ/WCF problem?
Cheers
John Breakwell (MSFT)
--
http://blogs.msdn.com/johnbreakwell