You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a very weird issue that occurs intermittently, I don't know how to reproduce it 100% whenever I want, I can just debug it and wait for it to occur, once it thrown and stopped in Visual Studio, all the stack trace I see is this:
So looks like the OnError callback on SqlInternalConnection accesses some socket object but that socket object somehow has been disposed before.
This seems to happen on Linux only, on Windows I can't reproduce the errors.
For some constraints on my project, I can't use a newer version (e.g: port to Microsoft.Data.SqlClient) so I need to find a work-around or fix this myself.
The problem is it's really hard to find the exact source code for System.Data.SqlClient version 4.8.6 (as shown in the nuget package explorer). If you don't know the cause as well as possible solution to this issue but you know where I can find the source code, please share with me.
Debugging into the source code is also not possible because it lacks the file System.Data.SqlClient.pdb which is also unable to be found anywhere.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've encountered a very weird issue that occurs intermittently, I don't know how to reproduce it 100% whenever I want, I can just debug it and wait for it to occur, once it thrown and stopped in Visual Studio, all the stack trace I see is this:
So looks like the
OnError
callback onSqlInternalConnection
accesses some socket object but that socket object somehow has been disposed before.This seems to happen on Linux only, on Windows I can't reproduce the errors.
For some constraints on my project, I can't use a newer version (e.g: port to
Microsoft.Data.SqlClient
) so I need to find a work-around or fix this myself.The problem is it's really hard to find the exact source code for
System.Data.SqlClient
version4.8.6
(as shown in the nuget package explorer). If you don't know the cause as well as possible solution to this issue but you know where I can find the source code, please share with me.Debugging into the source code is also not possible because it lacks the file
System.Data.SqlClient.pdb
which is also unable to be found anywhere.Beta Was this translation helpful? Give feedback.
All reactions