LoginSignup
2
1

More than 3 years have passed since last update.

System.Data.SqlClient.SqlConnection のnewでハングする

Posted at

現象

System.Data.SqlClient.SqlConnection のnewでハングする。
同じソースでも別の環境では正常動作する。ソースには問題なし。
環境依存か?

原因

WindowsのPerformance Counterが破損している場合に発生する。
".NET Data Provider for SqlServer"をPerformance Counterが読み込んでいるとハングする。

対策

".NET Data Provider for SqlServer"をPerformance Counterが読み込みを解除する。

unlodctr ".NET Data Provider for SqlServer"

参照元

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1