Skip to content
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

The connection does not support MultipleActiveResultSets #1074

Closed
wvmstr opened this issue May 18, 2021 · 3 comments
Closed

The connection does not support MultipleActiveResultSets #1074

wvmstr opened this issue May 18, 2021 · 3 comments

Comments

@wvmstr
Copy link

wvmstr commented May 18, 2021

Similar to: #971

This is a NetStandard app, running on Azure VM against SQL Server Express also on the VM. We don't use EF.

In this particular app we have field devices that are sending data to the socket, as well as receive instructions from the socket. These connections are long lasting. Let's say minute data.

This exception comes and goes. Sometimes, we don't see it for days, then other times we have a multitude in a day.

We are wondering if there is a solution that we can implement?

@JRahnama
Copy link
Member

@wvmstr, Is everything exact similar to #971, but NetStandard? what version of NetStandard are you using 2.0 or 2.1? Can you check the workaround suggested in that issue by dropping connection and recreate it?

@wvmstr
Copy link
Author

wvmstr commented May 19, 2021 via email

@cheenamalhotra
Copy link
Member

Hi @wvmstr

The issue is triggered by Socket exceptions that break the connection and it becomes unrecoverable. It is indeed a driver issue (#971) and we are investigating the right solution. To mitigate this issue, when you catch this exception, please "Dispose" this SqlConnection instance to prevent other queries from reusing this corrupted connection.

I will close this as a duplicate and you may follow progress on #971 for further updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants