我在蔚蓝的数据库已经非标准S2 edition.In我的应用程序的日志,我总是看到许多例外这样的格式:Azure的SQL数据库相关的异常
1.
System.Data.SqlClient.SqlException: The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) ---> System.ComponentModel.Win32Exception: An existing connection was forcibly closed by the remote host
2.
System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached
System.Data.SqlClient.SqlException (0x80131904): The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) ---> System.ComponentModel.Win32Exception (0x80004005): An existing connection was forcibly closed by the remote host.
我使用SqlAzureExecutionStrategy,因此在重试一些次数后引发这些异常。
我在azure portla上看到不同的性能指标,但看起来他们没问题。
如何识别问题?
'我如何识别问题?'用Azure SQL DB打开支持案例。 –
您的AzureSQL数据库与您的应用程序代码位于相同的Azure区域中吗?您是否直接通过Internet连接到Azure SQL数据库(例如,从桌面客户端软件?)。 – Dai
还在azure查看你的活动日志表了解更多详情 – TheGameiswar