netmsmqbinding

Distributed Transaction Coordinator - The underlying provider failed on Open

故事扮演 提交于 2019-12-24 13:35:10
问题 I have application A and application B, both on the same server. Application A is calling WCF service, located in application B using netmsmqbinding and a private queue. B's service method, which is called, is using entity framework to make a call to the database. However, this exception is thrown in B: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Transactions.TransactionManagerCommunicationException: Communication with the underlying

How to check if public MSMQ is empty

独自空忆成欢 提交于 2019-12-23 15:11:10
问题 Is there any way to check if a public MSMQ is empty? For a private MSMQ it's easy: private bool IsQueueEmpty(string path) { bool isQueueEmpty = false; var myQueue = new MessageQueue(path); try { myQueue.Peek(new TimeSpan(0)); isQueueEmpty = false; } catch (MessageQueueException e) { if (e.MessageQueueErrorCode == MessageQueueErrorCode.IOTimeout) { isQueueEmpty = true; } } return isQueueEmpty; } How would I do the same check for a public MSMQ? If I try to check a public MSMQ with the code

MSMQ calls over HTTP not reaching destination queue

我只是一个虾纸丫 提交于 2019-12-12 18:02:22
问题 I have a WCF service that uses MSMQ communication, when i run the service on my local netwrok, i configure the service endpoints in the client config files to point to the host computer, for example if the endpoint specified on the service host is: <endpoint address="net.msmq://localhost/private/MsmqService/MyMsmqService" binding="netMsmqBinding" bindingConfiguration="test" contract="MsmqService.IMyMsmqService"> <identity> <dns value="localhost" /> </identity> </endpoint> I configure my

Can't get service to pull from (dead letter) queue

一笑奈何 提交于 2019-12-11 05:14:17
问题 I have a queue named log on a remote machine. When I call that queue locally, I specify a custom dead-letter queue by modifying my NetMsmqBinding: _binding.DeadLetterQueue = DeadLetterQueue.Custom; _binding.CustomDeadLetterQueue = new Uri( "net.msmq://localhost/private/Services/Logging/LogDeadLetterService.svc"); This works fine; when I force my message to fail to get to its destination, it appears in this queue. Now, I have a service hosted in IIS/WAS to read the dead-letter queue. It it