我一直在寻找在Azure ASP.NET网站的AJAX调用上间歇性地发生的这个错误,今天我终于在我们的日志中发现了它.我怀疑锁是阻止操作,但看起来它尝试连接到Azure SQL数据库失败了.
这是异常消息:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
This failure occurred while attempting to connect to the routing destination.
The duration spent while attempting to connect to the original server was -
[Pre-Login] initialization=28; handshake=43; [Login] initialization=0; authentication=0; [Post-Login] complete=2;
Run Code Online (Sandbox Code Playgroud)
这是我正在使用的连接字符串:
Server=tcp:<server>,1433;Database=<database>;User ID=<user>;Password=<password>;Trusted_Connection=False;Encrypt=True;Connection Timeout=30
Run Code Online (Sandbox Code Playgroud)
网站和Azure SQL数据库都位于同一区域.数据库的比例是标准 - S0,Azure网站是标准 - 小实例.
有没有人遇到过这个问题?