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

Cannot access a disposed object 'System.Net.Sockets.NetworkStream' #441

Open
lierdakil opened this issue Aug 15, 2017 · 3 comments
Open

Comments

@lierdakil
Copy link

I'm getting the following error regularly:

The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error:
Cannot access a disposed object.
Object name:
'System.Net.Sockets.NetworkStream'

when using with Common.DatabaseProviderTypes.MSSQLSERVER.

I should note that I'm accessing a remote MSSQL instance here, so there might be some network connectivity issues. But this reaction is less than ideal. Maybe handling connectivity issues and reconnecting is a good idea?

@Thorium
Copy link
Member

Thorium commented Aug 15, 2017

I've been using a remote MSSQL from Azure like a year now without this kind of problem.
So we'll need more info about this...

@lierdakil
Copy link
Author

Huh. Interesting. I neglected to mention that I'm running F# on Linux via mono. I'll try to see if changing that makes a difference and get back to you.

@Thorium
Copy link
Member

Thorium commented Feb 4, 2020

So the network connection was lost?
You can do simple manual reconnection like this:
#397 (comment)

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

No branches or pull requests

2 participants