Need help diagnosing SQL Server strange query timeouts from C#

↘锁芯ラ 提交于 2019-12-05 10:30:33

After a week of stressful investigation it's fixed!! It's been running now for over 2 hours without a single timeout :-)

Turned out to be some kind of bug or mismatch with .NET v4.6.2.

My Configuration was:

  • SQL Server 2017 Web Edition on AWS RDS
  • .NET v4.6.2
  • Dapper v1.50.5

My Changes are:

  • Install .NET 4.7.2 on Web Server
  • Upgrade Web App and all DLL projects in Visual Studio to use .NET 4.7.2 (ensuring the web.config was updated to <httpRuntime targetFramework="4.7.2" />)
  • Upgrade Dapper via Nuget to the latest v.1.60.0 (I don't think Dapper was at fault, I just upgraded it while doing everything else as it's database related)

These questions helped point me in this direction:

THANK YOU INTERNET - HOW ON EARTH DID I CODE BEFORE YOU CAME ALONG

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!