Entity framework can't make updates in db (missing entry point SetClrFeatureSwitchMap in SqlServerSpatial110.dll) There is a bug in Microsoft SQL Server 2012 SP3.

The above bug can be solved by adding the following line in your web.config file.

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" />
<bindingRedirect oldVersion="" newVersion="" />

This forces the EntityFramework to use the version 10 of the SqlServer.Types.dll, which doesn't have the Geometry type apparently.

Wednesday, February 3, 2016

« Back