-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
FileNotFoundException for Microsoft.SqlServer.Types 10.0.0.0 when trying to use SQL Server geography data #75481
Comments
IMHO, Microsoft.SqlServer.Types has always been a bit problematic. Even the .NET Framework BCL contains a hidden reference to this external assembly (in That has always felt like a hack to me. It appears to me that Microsoft couldn't quite figure out how to have an OGC-compliant Since that probably won't happen anytime soon (just my guess), I could imagine that you'll have to resort in your .NET Standard project to a strategy similar to what |
Transferring to dotnet/runtime as this seems to be an issue with the |
Tagging subscribers to this area: @cheenamalhotra, @David-Engel Issue DetailsHopefully this is the right place to post this- We've been hitting an issue using System.Data.SqlClient through a netstandard2.0 project where Microsoft.SqlServer.Types 10.0.0.0 will fail to load when trying to fetch geography data from SQL Server. I think we can work around this problem by getting the dll from nuget, but since the nuget package only has a I've created an example repo here: https://github.com/nyctef/geography-repro to try and demonstrate the problem - it should crash on machines were Microsoft.SqlServer.Types 10.0.0.0 isn't in the GAC already.
|
System.Data.SqlClient is unlikely to ever see support for that Microsoft.SqlServer.Types package. System.Data.SqlClient is in strict maintenance mode and not receiving anything other than critical security and bug fixes. Migrate to Microsoft.Data.SqlClient for the latest features and support. We have an issue in the SqlClient repo to track the status of spatial support: dotnet/SqlClient#30 Regards, |
Hopefully this is the right place to post this-
We've been hitting an issue using System.Data.SqlClient through a netstandard2.0 project where Microsoft.SqlServer.Types 10.0.0.0 will fail to load when trying to fetch geography data from SQL Server. I think we can work around this problem by getting the dll from nuget, but since the nuget package only has a
net40
version, this means the project we're installing the nuget package into can't benetstandard2.0
any more.I've created an example repo here: https://github.com/nyctef/geography-repro to try and demonstrate the problem - it should crash on machines were Microsoft.SqlServer.Types 10.0.0.0 isn't in the GAC already.
The text was updated successfully, but these errors were encountered: