Andrew Bancroft 3/27/2017

Solving ‘Spatial types and functions are not available’ with Entity Framework

Read Original

This article provides a step-by-step guide to resolve the 'Spatial types and functions are not available' runtime exception when using SQL Server's geospatial features (DbGeography) with Entity Framework in ASP.NET applications. It covers installing the Microsoft.SqlServer.Types NuGet package, following readme.htm instructions for web or desktop apps, and configuring Entity Framework to use the correct assembly version. The solution addresses common deployment issues where spatial types work locally but fail on servers.

Solving ‘Spatial types and functions are not available’ with Entity Framework

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet