Posts

NServiceBus and Distributed Transaction Coordinator(DTC)

Image
In my recent project I was using NServiceBus for communicating through messaging across different services. Though I had implemented a number of handlers before and deployed them on a remote server but didn't experienced the DTC issue until I tried to access a database server on a machine that is different from the one where the transactional handler service was deployed. NServiceBus uses Distributed Transaction Coordinator for managing the messages in queue and to make it working its important to make sure that MSDTC running on both machines are configured correctly. Otherwise it would throw the following exception as it was in my case:   System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMException: The MSDTC transaction manager was unable to push the transaction to the destination transaction manager due to communication problems. Possible causes are: a ...

The credentials supplied to the package were not recognized

I am using ravendb as database in my current project and got tired of the following exception when running the database and the web site on the same machine: The credentials supplied to the package were not recognized Description:   An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.   Exception Details:   System.ComponentModel.Win32Exception: The credentials supplied to the package were not recognized [Win32Exception (0x80004005): The credentials supplied to the package were not recognized] System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode) +7737075 System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob) +91 System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate...