Azure with Azure SQL Server: ArgumentException: value is not in the expected range

I have never seen this on our local servers, but after deploying the MVC4 application and the SQL Server database for Azure, we sometimes get the following exception, how to solve this problem?

[ArgumentException: Value does not fall within the expected range.]
System.Transactions.Oletx.IDtcProxyShimFactory.ConnectToProxy(String nodeName, Guid resourceManagerIdentifier, IntPtr managedIdentifier, Boolean& nodeNameMatches, UInt32& whereaboutsSize, CoTaskMemHandle& whereaboutsBuffer, IResourceManagerShim& resourceManagerShim) +0
System.Transactions.Oletx.DtcTransactionManager.Initialize() +155
System.Transactions.Oletx.DtcTransactionManager.get_ProxyShimFactory() +76
System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) +160
System.Transactions.TransactionStatePSPEOperation.PSPEPromote(InternalTransaction tx) +78

I don’t know where to start debugging. Thanks for any help!

+1
source share
1 answer

System.Transactions.Oletx.IDtcProxyShimFactory

DTC (Distributed Transaction Coordinator) is not supported on Azure. By any means. You must redesign your code to get rid of distributed transactions and use simple transactions.

+2

All Articles