Hi All,
I’ve got a user who just got the following error from our application which was triggered when trying to perform operations on an isoline layer.
Could not load file or assembly ‘Microsoft.SqlServer.Types, Version= 11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91’ or one of its dependencies
We’ve recently upgraded our project to VS2013 and are using the free version of InstallShield. Previously, I never had to include a reference to this file in my project.
What’s the correct way to handle this in our installation package? I see the Managed Dependency folder has a version of this file in it, but references online suggest I should be making a reference to the NuGet package and there is also some discussion on which .Net Framework versions we should be requiring.
We’re requiring .Net version 4 in our project and I am currently deploying Desktop Edition lib 7.0.0.162.
Thanks,
Damian
Microsoft.SqlServer.Types problem
Hi Damian,
Actually, we need to keep Microsoft.SqlServer.Types.dll and MapSuiteCore.dll in the same location as the MapSuiteCore.dll will refer to the sqlserve types dll. In general, most of the features in core don’t use the Microsoft.SqlServer.Types.dll and that’s why there is no any issues when using MapSuiteCore without the dll. However, once someone uses features which needs the sql server types, then the exception will throw out if there is no Microsoft.SqlServer.Types.dll standing with MapSuiteCore.dll.
Hope it helps.
Johnny
Okay thanks. I will include reference to this library in my project. I am wondering why it doesn’t automatically do so when I drop in a WinformsMap control?
Regards,
Damian
Hi Damian,
Actually, only a few features use the Microsoft.SqlServer.Types.dll and there are a lot of limitations like validation to stop those feature work. So, we don’t consider to copy it in our Core by default like GeoAPI.dll does.
BTW, if you want to use the features like using IsoLineLayer or SqlTypesGeometryHelper class, don’t forget to copy the SqlServerSpatial110.dll to systemRoot(system32 or SysWOW64) More details about the dependencies guide please refer to
wiki.thinkgeo.com/wiki/Map_Suite_Services_Edition_Dependencies_Guide
If there is any thing confused, please feel free to let us know.
Regards,
Johnny