gpt4 book ai didi

c# - Azure 与 Azure SQL Server : ArgumentException: Value does not fall within the expected range

转载 作者:行者123 更新时间:2023-12-03 01:56:22 24 4
gpt4 key购买 nike

在我们的本地服务器上从未见过这种情况,但是在将 MVC4 应用程序和 SQL Server 数据库部署到 Azure 后,我们有时会遇到以下异常,如何解决此问题?

[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

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

最佳答案

System.Transactions.Oletx.IDtcProxyShimFactory

Azure 不支持 DTC(分布式事务协调器)。以任何方式。您必须重新设计代码以摆脱分布式事务并使用简单事务。

关于c# - Azure 与 Azure SQL Server : ArgumentException: Value does not fall within the expected range,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16674958/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com