与Azure的SQL Server的天青:ArgumentException的:值没有在预期范围内 [英] Azure with Azure SQL Server: ArgumentException: Value does not fall within the expected range

查看:175
本文介绍了与Azure的SQL Server的天青:ArgumentException的:值没有在预期范围内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没见过这个我们的本地服务器上,但部署MVC4应用程序和SQL Server数据库的Azure后,​​我们有时会出现以下情况例外,如何解决这个问题呢?

  [ArgumentException的:值没有在预期的范围内。]
System.Transactions.Oletx.IDtcProxyShimFactory.ConnectToProxy(字符串节点名称中GUID resourceManagerIdentifier,IntPtr的managedIdentifier,布尔和放大器; 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(字节[] propagationToken)+160
System.Transactions.TransactionStatePSPEOperation.PSPEPromote(InternalTransaction德克萨斯州)+78

不知道从哪里开始调试。感谢您的帮助!


解决方案

  

System.Transactions.Oletx.IDtcProxyShimFactory


DTC(分布式事务协调器)不支持的Azure。以任何方式。你必须重新设计你的code摆脱分布式事务,并用简单的交易。

Never seen this on our local servers, but after deploying the MVC4 application and the SQL Server database to Azure we sometimes get the following exception, how to tackle 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

No clue where to start debugging. Thanks for any help!!

解决方案

System.Transactions.Oletx.IDtcProxyShimFactory

DTC (Distributed Transactions Coordinator) is not supported in Azure. By any means. You have to re-design your code to get rid of distributed transactions and use simple transactions.

这篇关于与Azure的SQL Server的天青:ArgumentException的:值没有在预期范围内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆