Entity framework can’t make updates in db (missing entry point SetClrFeatureSwitchMap in SqlServerSpatial110.dll)

Into your project, right button on your project and select add, new item, common items, general and application configuration file, click ok and file app.config will open.

Identifies the following tags

<configuration>
</configuration>

and Insert the following code inside the tags

<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>

Now recompile your application and under bin\debug (or release) will be the new .config file, copy this file and new .exe to your application’s folder and start it

Advertisements