-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null Reference Exception #988
Comments
Can you tell us which version of the library, and which library you're using? I remember that there were some changes recently to make releasepacket safer in edge cases which might fix this issue. |
I posted the version of the Microsoft.Data.SqlClient already in the issue. |
Your csproj would be nice. |
Very helpful! Add an explicit reference to MDS 2.1.2 |
I'm not sure how I missed the version number. @ErikEJ has the correct solution I think, force the use of the latest package and that should resolve it if it's the recently fixed issue. |
Thanks for your help. I assume that EF.Core is going to update the dependency to MSD 2.1.2 and as we saw this exception only one time, I will not explicitly set the reference but wait. |
We discovered the following
NullReferenceException
.The command which is executed is executed every hour and deletes some records.
The code runs already for about a year exactly like this and we only saw this exception once.
One interesting detail:
The incoming HTTP request is logged at 8:15:07.000 AM and the exception at 8:17:10.049 AM
To reproduce
We are not able to reproduce it.
Expected behavior
No null reference exception is thrown.
Further technical details
Microsoft.Data.SqlClient version: Microsoft.Data.SqlClient, Version=2.0.20168.4, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5
.NET target: .NET 5
SQL Server version: SQL Server 2019
Operating system: Docker Container (Alpine Linux)
The text was updated successfully, but these errors were encountered: