# Microsoft.SqlServer.Types problem

**URL:** <https://community.thinkgeo.com/t/microsoft-sqlserver-types-problem/2328>\
**Category:** WinForms\
**Created:** [December 4, 2013, 12:21pm UTC](https://community.thinkgeo.com/t/microsoft-sqlserver-types-problem/2328 "2013-12-04T12:21:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [December 4, 2013, 12:21pm UTC](https://community.thinkgeo.com/t/microsoft-sqlserver-types-problem/2328/1 "2013-12-04T12:21:16Z")

</div>

Hi&nbsp;All,  
  
  
  
I’ve&nbsp;got&nbsp;a&nbsp;user&nbsp;who&nbsp;just&nbsp;got&nbsp;the&nbsp;following&nbsp;error&nbsp;from&nbsp;our&nbsp;application&nbsp;which&nbsp;was&nbsp;triggered&nbsp;when&nbsp;trying&nbsp;to&nbsp;perform&nbsp;operations&nbsp;on&nbsp;an&nbsp;isoline&nbsp;layer.  
  
  
  
Could&nbsp;not&nbsp;load&nbsp;file&nbsp;or&nbsp;assembly&nbsp;‘Microsoft.SqlServer.Types,&nbsp;Version=&nbsp;11.0.0.0,&nbsp;Culture=neutral,&nbsp;PublicKeyToken=89845dcd8080cc91’&nbsp;or&nbsp;one&nbsp;of&nbsp;its&nbsp;dependencies  
  
  
  
We’ve&nbsp;recently&nbsp;upgraded&nbsp;our&nbsp;project&nbsp;to&nbsp;VS2013&nbsp;and&nbsp;are&nbsp;using&nbsp;the&nbsp;free&nbsp;version&nbsp;of&nbsp;InstallShield.&nbsp;&nbsp;Previously,&nbsp;I&nbsp;never&nbsp;had&nbsp;to&nbsp;include&nbsp;a&nbsp;reference&nbsp;to&nbsp;this&nbsp;file&nbsp;in&nbsp;my&nbsp;project.  
  
  
  
What’s&nbsp;the&nbsp;correct&nbsp;way&nbsp;to&nbsp;handle&nbsp;this&nbsp;in&nbsp;our&nbsp;installation&nbsp;package?&nbsp;&nbsp;I&nbsp;see&nbsp;the&nbsp;Managed&nbsp;Dependency&nbsp;folder&nbsp;has&nbsp;a&nbsp;version&nbsp;of&nbsp;this&nbsp;file&nbsp;in&nbsp;it,&nbsp;but&nbsp;references&nbsp;online&nbsp;suggest&nbsp;I&nbsp;should&nbsp;be&nbsp;making&nbsp;a&nbsp;reference&nbsp;to&nbsp;the&nbsp;NuGet&nbsp;package&nbsp;and&nbsp;there&nbsp;is&nbsp;also&nbsp;some&nbsp;discussion&nbsp;on&nbsp;which&nbsp;.Net&nbsp;Framework&nbsp;versions&nbsp;we&nbsp;should&nbsp;be&nbsp;requiring.  
  
  
  
We’re&nbsp;requiring&nbsp;.Net&nbsp;version&nbsp;4&nbsp;in&nbsp;our&nbsp;project&nbsp;and&nbsp;I&nbsp;am&nbsp;currently&nbsp;deploying&nbsp;Desktop&nbsp;Edition&nbsp;lib&nbsp;7.0.0.162.  
  
  
  
Thanks,  
  
Damian

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [December 5, 2013, 4:01am UTC](https://community.thinkgeo.com/t/microsoft-sqlserver-types-problem/2328/2 "2013-12-05T04:01:15Z")

</div>

Hi&nbsp;Damian,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Actually,&nbsp;we&nbsp;need&nbsp;to&nbsp;keep&nbsp;Microsoft.SqlServer.Types.dll&nbsp;and&nbsp;MapSuiteCore.dll&nbsp;in&nbsp;the&nbsp;same&nbsp;location&nbsp;as&nbsp;the&nbsp;MapSuiteCore.dll&nbsp;will&nbsp;refer&nbsp;to&nbsp;the&nbsp;sqlserve&nbsp;types&nbsp;dll.&nbsp;In&nbsp;general,&nbsp;most&nbsp;of&nbsp;the&nbsp;features&nbsp;in&nbsp;core&nbsp;don’t&nbsp;use&nbsp;the&nbsp;Microsoft.SqlServer.Types.dll&nbsp;and&nbsp;that’s&nbsp;why&nbsp;there&nbsp;is&nbsp;no&nbsp;any&nbsp;issues&nbsp;when&nbsp;using&nbsp;MapSuiteCore&nbsp;without&nbsp;the&nbsp;dll.&nbsp;However,&nbsp;once&nbsp;someone&nbsp;uses&nbsp;features&nbsp;which&nbsp;needs&nbsp;the&nbsp;sql&nbsp;server&nbsp;types,&nbsp;then&nbsp;the&nbsp;exception&nbsp;will&nbsp;throw&nbsp;out&nbsp;if&nbsp;there&nbsp;is&nbsp;no&nbsp;Microsoft.SqlServer.Types.dll&nbsp;standing&nbsp;with&nbsp;MapSuiteCore.dll.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Hope&nbsp;it&nbsp;helps.&nbsp;  
&nbsp;Johnny

---

<div class="post-metadata">

**Author:** ![Damian1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f9b8f/32.png) [@Damian1](https://community.thinkgeo.com/u/Damian1)\
**Post date:** [December 5, 2013, 3:48pm UTC](https://community.thinkgeo.com/t/microsoft-sqlserver-types-problem/2328/3 "2013-12-05T15:48:54Z")

</div>

Okay&nbsp;thanks.&nbsp;&nbsp;I&nbsp;will&nbsp;include&nbsp;reference&nbsp;to&nbsp;this&nbsp;library&nbsp;in&nbsp;my&nbsp;project.&nbsp;&nbsp;I&nbsp;am&nbsp;wondering&nbsp;why&nbsp;it&nbsp;doesn’t&nbsp;automatically&nbsp;do&nbsp;so&nbsp;when&nbsp;I&nbsp;drop&nbsp;in&nbsp;a&nbsp;WinformsMap&nbsp;control?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;Damian

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [December 6, 2013, 2:22am UTC](https://community.thinkgeo.com/t/microsoft-sqlserver-types-problem/2328/4 "2013-12-06T02:22:40Z")

</div>

Hi&nbsp;Damian,&nbsp;  
  
  
  
Actually,&nbsp;only&nbsp;a&nbsp;few&nbsp;features&nbsp;use&nbsp;the&nbsp;Microsoft.SqlServer.Types.dll&nbsp;and&nbsp;there&nbsp;are&nbsp;a&nbsp;lot&nbsp;of&nbsp;limitations&nbsp;like&nbsp;validation&nbsp;to&nbsp;stop&nbsp;those&nbsp;feature&nbsp;work.&nbsp;So,&nbsp;we&nbsp;don’t&nbsp;consider&nbsp;to&nbsp;copy&nbsp;it&nbsp;in&nbsp;our&nbsp;Core&nbsp;by&nbsp;default&nbsp;like&nbsp;GeoAPI.dll&nbsp;does.&nbsp;  
  
  
  
BTW,&nbsp;if&nbsp;you&nbsp;want&nbsp;to&nbsp;use&nbsp;the&nbsp;features&nbsp;like&nbsp;using&nbsp;IsoLineLayer&nbsp;or&nbsp;SqlTypesGeometryHelper&nbsp;class,&nbsp;don’t&nbsp;forget&nbsp;to&nbsp;copy&nbsp;the&nbsp;SqlServerSpatial110.dll&nbsp;to&nbsp;systemRoot(system32&nbsp;or&nbsp;SysWOW64)&nbsp;More&nbsp;details&nbsp;about&nbsp;the&nbsp;dependencies&nbsp;guide&nbsp;please&nbsp;refer&nbsp;to&nbsp;&nbsp;  
  
[wiki.thinkgeo.com/wiki/Map\_Suite\_Services\_Edition\_Dependencies\_Guide&nbsp;](http://wiki.thinkgeo.com/wiki/Map_Suite_Services_Edition_Dependencies_Guide)  
  
  
  
If&nbsp;there&nbsp;is&nbsp;any&nbsp;thing&nbsp;confused,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
  
  
  
Regards,&nbsp;  
  
Johnny
