gpt4 book ai didi

azure - SDK 2.5 升级后 Windows Azure 角色内缓存不起作用

转载 作者:行者123 更新时间:2023-12-03 00:33:04 27 4
gpt4 key购买 nike

我将 Azure Web 角色项目从 SDK v1.8 更新到 SDK v2.5,角色内缓存似乎不再起作用。我看到以下错误

ErrorCode ERRCA0017 :SubStatus ES0006:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.). Additional Information : The client was trying to communicate with the server: net.tcp://10.175.252.32:20004/. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 10.175.252.32:20004 at Microsoft.ApplicationServer.Caching.AsyncResultNoResult.EndInvoke() at Microsoft.ApplicationServer.Caching.TcpClientChannelFactory.TcpConnectionCallback(IAsyncResult result) --- End of inner exception stack trace --- at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ErrStatus errStatus, Guid trackingId, Exception responseException, Byte[][] payload, EndpointID destination) at Microsoft.ApplicationServer.Caching.SocketClientProtocol.ExecuteApi(IVelocityRequestPacket request, IMonitoringListener listener) at Microsoft.ApplicationServer.Caching.SocketClientProtocol.Upsert(VelocityPacketType type, String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region, IMonitoringListener listener) at Microsoft.ApplicationServer.Caching.SocketClientProtocol.Put(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region, IMonitoringListener listener) at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region, IMonitoringListener listener) at Microsoft.ApplicationServer.Caching.DataCache.<>c__DisplayClass23.b__22() at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)

这是app.Config设置

<dataCacheClients>
<dataCacheClient name="default">
<autoDiscover isEnabled="true" identifier="WorkerRole" />
</dataCacheClient>
</dataCacheClients>

这是我的项目中的包

<package id="WindowsAzure.ServiceBus" version="2.5.3.0" targetFramework="net45" />
<package id="WindowsAzure.Storage" version="4.2.1" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Caching" version="2.5.0.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.3" targetFramework="net45" />
<package id="EnterpriseLibrary.TransientFaultHandling.Caching" version="6.0.1304.0" targetFramework="net45" />

即使在模拟器上,我也看到相同的错误(没有附加信息)。 WinDebug 无法在 Azure 角色上运行(它打开时会出现错误状态)。

任何帮助将不胜感激

最佳答案

这个问题是一个老问题(但仍然相关),但我偶然发现了它,只是想添加答案,以防其他人得到这个......

问题在于 Windows Azure 缓存与 SDK 紧密链接。因此,如果您正在使用它并更新 SDK,您还必须将 Windows Azure 缓存更新到最新版本。

NuGet 包是“Microsoft.WindowsAzure.Caching”。

我始终建议在 SDK 更新后重新镜像您的虚拟机,以确保一切正常。我在更新现有虚拟机时遇到问题,因此有 2 个版本的 SDK。当虚拟机针对 Windows 更新进行更新时,只有 1 个版本的 SDK 可用,并且缓存失败。

关于azure - SDK 2.5 升级后 Windows Azure 角色内缓存不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27911567/

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