2016-05-30 114 views
0

我使用SQL Server 2012並嘗試在「幾何」類型的表格列中插入一個多邊形。如果我叫在DLL「SqlServerSpatial110.dll」中找不到SetClrFeatureSwitchMap

INSERT INTO GeoTable VALUES 
(
'Test', 
geometry::STGeomFromText('POLYGON ((0 0, 0 160, 80 210, 140 210, 140 150, 90 0, 0 0))', 0) 

); 

我得到了一個切入點「SetClrFeatureSwitchMap」不是DLL「SqlServerSpatial110.dll」發現。 System.EntryPointNotFoundException。

我該如何解決這個問題?

感謝和問候

+0

嘗試另一個版本:SqlServerSpatial110.dll – Mimouni

回答

0

我的SQL Server版本是11.0.2100.60。 SQL Server SP3更新後,錯誤消失。

0

驗證兩個DLL的都在你的文件夾bin

  • msvcr100.dll
  • SqlServerSpatial110.dll

在你的web.config有這樣的:

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