1

Topic: SqlTypes

using (var db = new ServiceEntities ()) {var temp = db. Cities. FirstOrDefault (x = x. Enabled);} System. InvalidOperationException: ' Spatial types and functions are not available for this provider because the assembly ' Microsoft. SqlServer. Types' version 10 or higher could not be found. ' installed through nuget Microsoft. SqlServer. Types in web.config registered <dependentAssembly> <assemblyIdentity name = "Microsoft. SqlServer. Types" publicKeyToken = "89845dcd8080cc91" culture = "neutral"/> <bindingRedirect oldVersion = "14.0.0.0" newVersion = "14.0.0.0"/> </dependentAssembly>

2

Re: SqlTypes

Hello, - rsdn - you wrote: R> R> using (var db = new ServiceEntities ()) R> {R> var temp = db. Cities. FirstOrDefault (x = x. Enabled); R>} R> R> System. InvalidOperationException: ' Spatial types and functions are not available for this provider because the assembly ' Microsoft. SqlServer. Types' version 10 or higher could not be found. ' R> installed through nuget Microsoft. SqlServer. Types R> in web.config R> registered R> <dependentAssembly> R> <assemblyIdentity name = "Microsoft. SqlServer. Types" publicKeyToken = "89845dcd8080cc91" culture = "neutral"/> R> <bindingRedirect oldVersion = "14.0.0.0" newVersion = "14.0.0.0"/> R> </dependentAssembly> It there still cs a file  at setting

3

Re: SqlTypes

Hello, Codechanger, you wrote: a C> Hello, - rsdn - you wrote: R>> R>> using (var db = new ServiceEntities ()) R>> {R>> var temp = db. Cities. FirstOrDefault (x = x. Enabled); R>>} R>> R>> System. InvalidOperationException: ' Spatial types and functions are not available for this provider because the assembly ' Microsoft. SqlServer. Types' version 10 or higher could not be found. ' R>> installed through nuget Microsoft. SqlServer. Types R>> in web.config R>> registered R>> <dependentAssembly> R>> <assemblyIdentity name = "Microsoft. SqlServer. Types" publicKeyToken = "89845dcd8080cc91" culture = "neutral"/> R>> <bindingRedirect oldVersion = "14.0.0.0" newVersion = "14.0.0.0"/> R>> </dependentAssembly> a C> It there still cs a file  at setting protected void Application_Start () {SqlServerTypes.Utilities.LoadNativeAssemblies (Server. MapPath ("~/bin"));