C#,vb.net,MVC,Jquery,javascript,jscript,vbscript,html,vb,sharepoint,COM,WPF,WCF,Wwf,Asp,Asp.net,questions & answers,

Latest in Sports

Showing posts with label MSMQ. Show all posts
Showing posts with label MSMQ. Show all posts

Wednesday, September 25, 2019

I have a .NET Windows app that is using MSTDC and it is throwing an exception:

System.Transactions.TransactionManagerCommunicationException: Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Component Services Administrative tool ---> System.Runtime.InteropServices.COMException (0x8004D024): The transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D024) at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim)....


Use this for windows Server 2008 r2 and Windows Server 2012 R2

  1. Click Start, click Run, type dcomcnfg and then click OK to open Component Services.
  2. In the console tree, click to expand Component Services, click to expand Computers, click to expand My Computer, click to expand Distributed Transaction Coordinator and then click Local DTC.
  3. Right click Local DTC and click Properties to display the Local DTC Properties dialog box.
  4. Click the Security tab.
  5. Check mark "Network DTC Access" checkbox.
  6. Finally check mark "Allow Inbound" and "Allow Outbound" checkboxes.
  7. Click ApplyOK.
  8. A message will pop up about restarting the service.
  9. Click OK and That's all.
Note: Sometimes the network firewall on the Local Computer or the Server could interrupt your connection so make sure you create rules to "Allow Inbound" and "Allow Outbound" connection for C:\Windows\System32\msdtc.exe


Still Not working  Then Use below Enlist=False in the connection string like below


Data Source=<<SQLSERVERNAME>>;Initial Catalog=<<DBNAME>>;Integrated Security=SSPI;Enlist=False;"

Tuesday, May 22, 2012

Hi Experts,
 
We have an issue related to MSMQ performance/load.
 
In our client production system have multiple Queues in which One is “Main Queue” which dispatches the messages to different Queues based on label type & configuration. The Main Job of dispatcher (Main Queue) is read messages from Main Queue and distribute the messages to multiple Queues. The issue is - in Main Queue due to some migration huge number of messages started coming-in due to Heavy in-flow there is  huge time delay (3-4 days) in dispatching the message to sub-Queues.
 
Is there any way to improve the performance of the Queue so that it dispatches faster (current speed - Main Queue dispatches 3 messages per second) ?
 
Please reply in-case you need more details on the issue.
 
TIA!