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.

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

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