# Map data support (s57, dgn)

**URL:** <https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096>\
**Category:** WinForms\
**Created:** [September 17, 2012, 11:55pm UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096 "2012-09-17T23:55:49Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [September 17, 2012, 11:55pm UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/1 "2012-09-17T23:55:49Z")

</div>

We&nbsp;are&nbsp;working&nbsp;with&nbsp;some&nbsp;map&nbsp;data&nbsp;such&nbsp;as&nbsp;\*.000&nbsp;(S57),&nbsp;\*.dgn.&nbsp;

How&nbsp;can&nbsp;I&nbsp;use&nbsp;them&nbsp;with&nbsp;MapSuite&nbsp;API?

Plz,&nbsp;recommend&nbsp;me&nbsp;the&nbsp;way&nbsp;to&nbsp;work&nbsp;with.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [September 18, 2012, 2:48pm UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/2 "2012-09-18T14:48:56Z")

</div>

&nbsp;Hello&nbsp;duong,

&nbsp;  
&nbsp;We&nbsp;do&nbsp;support&nbsp;s57&nbsp;and&nbsp;dgn&nbsp;file&nbsp;loading&nbsp;and&nbsp;you&nbsp;will&nbsp;need&nbsp;use&nbsp;FdoExtension.  
&nbsp;  
&nbsp;1.&nbsp;Reference&nbsp;the&nbsp;DLL&nbsp;FdoExtension,&nbsp;other&nbsp;wise&nbsp;you&nbsp;could&nbsp;not&nbsp;see&nbsp;the&nbsp;S57FeatureLayer&nbsp;class.  
&nbsp;2.&nbsp;Copy&nbsp;the&nbsp;Folder&nbsp;MapSuiteFdoExtensionx86&nbsp;from&nbsp;thinkgeo&nbsp;install&nbsp;folder&nbsp;to&nbsp;“C:\WINDOWS\system32”  
`Private Sub ShowHideLayer_Load(ByVal sender As Object, ByVal e As EventArgs) winformsMap1.MapUnit = GeographyUnit.DecimalDegree winformsMap1.BackgroundOverlay.BackgroundBrush = New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)  Dim fileName As String = "C:\Post7521\US4CN22M\US4CN22M\US4CN22M.000" Dim s57FeatureLayer As S57FeatureLayer = New S57FeatureLayer(fileName, "FID", "OGRSchema", "Area") s57FeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1             s57FeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20  Dim staticOverlay As New LayerOverlay() staticOverlay.Layers.Add("WorldLayer", s57FeatureLayer) winformsMap1.Overlays.Add("WorldOverlay", staticOverlay)  winformsMap1.CurrentExtent = New RectangleShape(-139.2, 92.4, 120.9, -93.2)  s57FeatureLayer.Open() winformsMap1.CurrentExtent = s57FeatureLayer.GetBoundingBox() s57FeatureLayer.Close()  winformsMap1.Refresh() End Sub`  
&nbsp;And&nbsp;support&nbsp;dgn&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;s57&nbsp;but&nbsp;just&nbsp;use&nbsp;OgrFeatureLayer.  
&nbsp;  
&nbsp;Let&nbsp;us&nbsp;know&nbsp;your&nbsp;queries.  
&nbsp;  
&nbsp;Regards,  
&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [September 24, 2012, 2:13am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/3 "2012-09-24T02:13:52Z")

</div>

Hi&nbsp;Garry,&nbsp;  
&nbsp;Where&nbsp;can&nbsp;i&nbsp;find&nbsp;"&nbsp;DLL&nbsp;FdoExtension"?&nbsp;  
&nbsp;I’ve&nbsp;completed&nbsp;the&nbsp;second&nbsp;step:&nbsp;"2.&nbsp;Copy&nbsp;the&nbsp;Folder&nbsp;MapSuiteFdoExtensionx86&nbsp;from&nbsp;thinkgeo&nbsp;install&nbsp;folder&nbsp;to&nbsp;“C:\WINDOWS\system32”&nbsp;".&nbsp;  
&nbsp;&nbsp;  
&nbsp;DuongNV.

---

<div class="post-metadata">

**Author:** ![Edgar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@Edgar](https://community.thinkgeo.com/u/Edgar)\
**Post date:** [September 24, 2012, 2:28am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/4 "2012-09-24T02:28:54Z")

</div>

Hi&nbsp;duong,

You&nbsp;can&nbsp;find&nbsp;the&nbsp;dll&nbsp;from&nbsp;the&nbsp;daily&nbsp;build&nbsp;dll&nbsp;pacakge.

Production&nbsp;Build:

 ![](https://community.thinkgeo.com/uploads/default/original/2X/2/2bbc6d7699966c5f2d3d804faf1474b94d604701.PNG)

Development&nbsp;Build:

 ![](https://community.thinkgeo.com/uploads/default/original/2X/3/3dc051472a1cce94383900c67a7bfc5034ac8dce.PNG)

&nbsp;

Hope&nbsp;it&nbsp;helps,

Edgar

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [October 1, 2012, 12:02am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/5 "2012-10-01T00:02:02Z")

</div>

I&nbsp;'ve&nbsp;added&nbsp;dll&nbsp;completed,&nbsp;but&nbsp;I&nbsp;don’t&nbsp;understand&nbsp;some&nbsp;parameters&nbsp;of&nbsp;S57FeatureLayer.&nbsp;  
&nbsp;+&nbsp;pathFileName:&nbsp;very&nbsp;easy&nbsp;  
&nbsp;+&nbsp;idColumnName:&nbsp;how&nbsp;can&nbsp;I&nbsp;get?&nbsp;  
&nbsp;…&nbsp;  
&nbsp;Please&nbsp;share&nbsp;me&nbsp;tool&nbsp;what&nbsp;I&nbsp;get&nbsp;these&nbsp;parameters&nbsp;from&nbsp;my&nbsp;s57&nbsp;files.&nbsp;  
&nbsp;Thanks&nbsp;alot!

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [October 1, 2012, 1:15am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/6 "2012-10-01T01:15:52Z")

</div>

My&nbsp;code:&nbsp;  
&nbsp;S57FeatureLayer&nbsp;sg1&nbsp;=&nbsp;new&nbsp;S57FeatureLayer(@“E:\working\project\vts\HAI&nbsp;DO&nbsp;DIEN&nbsp;TU&nbsp;24-04-2012&nbsp;  
&nbsp;\HAI&nbsp;DO&nbsp;DIEN&nbsp;TU&nbsp;24-04-2012\Gui\_cang\_vu\_18-04-2012\Gui\_cang\_vu\_18-04-2012\SAI&nbsp;GON\VN4SG001.000”,&nbsp;“FID”);&nbsp;  
&nbsp;My&nbsp;exception&nbsp;is:&nbsp;  
&nbsp;System.TypeLoadException&nbsp;was&nbsp;unhandled&nbsp;  
&nbsp;&nbsp;&nbsp;Message=Method&nbsp;‘GetAllFeaturesCore’&nbsp;in&nbsp;type&nbsp;‘ThinkGeo.MapSuite.Core.FdoFeatureSource’&nbsp;from&nbsp;assembly&nbsp;‘FdoExtension,&nbsp;Version=6.0.0.0,&nbsp;Culture=neutral,&nbsp;PublicKeyToken=null’&nbsp;does&nbsp;not&nbsp;have&nbsp;an&nbsp;implementation.&nbsp;  
&nbsp;&nbsp;&nbsp;Source=FdoExtension&nbsp;  
&nbsp;&nbsp;&nbsp;TypeName=ThinkGeo.MapSuite.Core.FdoFeatureSource&nbsp;  
&nbsp;&nbsp;&nbsp;StackTrace:&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.S57FeatureLayer…ctor(String&nbsp;pathFilename,&nbsp;String&nbsp;idColumnName,&nbsp;String&nbsp;featureSchemaName,&nbsp;String&nbsp;featureClassName,&nbsp;String&nbsp;geometryColumnName)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.S57FeatureLayer…ctor(String&nbsp;pathFilename,&nbsp;String&nbsp;idColumnName,&nbsp;String&nbsp;featureSchemaName,&nbsp;String&nbsp;featureClassName)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.S57FeatureLayer…ctor(String&nbsp;pathFilename,&nbsp;String&nbsp;idColumnName)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MapDesktop1.Form1.Form1\_Load(Object&nbsp;sender,&nbsp;EventArgs&nbsp;e)&nbsp;in&nbsp;E:\working\project\tmpCode\mapdesktop\MapDesktop1\MapDesktop1\Form1.cs:line&nbsp;26&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.OnLoad(EventArgs&nbsp;e)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.OnCreateControl()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.CreateControl(Boolean&nbsp;fIgnoreVisible)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.CreateControl()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.WmShowWindow(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.ScrollableControl.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.WmShowWindow(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr&nbsp;hWnd,&nbsp;Int32&nbsp;msg,&nbsp;IntPtr&nbsp;wparam,&nbsp;IntPtr&nbsp;lparam)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef&nbsp;hWnd,&nbsp;Int32&nbsp;nCmdShow)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.SetVisibleCore(Boolean&nbsp;value)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.SetVisibleCore(Boolean&nbsp;value)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.set\_Visible(Boolean&nbsp;value)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32&nbsp;reason,&nbsp;ApplicationContext&nbsp;context)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32&nbsp;reason,&nbsp;ApplicationContext&nbsp;context)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.Run(Form&nbsp;mainForm)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MapDesktop1.Program.Main()&nbsp;in&nbsp;E:\working\project\tmpCode\mapdesktop\MapDesktop1\MapDesktop1\Program.cs:line&nbsp;18&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.AppDomain.\_nExecuteAssembly(RuntimeAssembly&nbsp;assembly,&nbsp;String[]&nbsp;args)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.AppDomain.ExecuteAssembly(String&nbsp;assemblyFile,&nbsp;Evidence&nbsp;assemblySecurity,&nbsp;String[]&nbsp;args)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ThreadHelper.ThreadStart\_Context(Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.Run(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state,&nbsp;Boolean&nbsp;ignoreSyncCtx)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.Run(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ThreadHelper.ThreadStart()&nbsp;  
&nbsp;&nbsp;&nbsp;InnerException:&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [October 1, 2012, 8:24am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/7 "2012-10-01T08:24:39Z")

</div>

Hello&nbsp;duong,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;this&nbsp;exception&nbsp;is&nbsp;because&nbsp;you&nbsp;are&nbsp;using&nbsp;the&nbsp;wrong&nbsp;version&nbsp;dlls,&nbsp;could&nbsp;you&nbsp;please&nbsp;let&nbsp;me&nbsp;know&nbsp;your&nbsp;MapSuite&nbsp;dll&nbsp;version&nbsp;and&nbsp;FdoExtension&nbsp;dll&nbsp;version?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [October 2, 2012, 4:59am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/8 "2012-10-02T04:59:32Z")

</div>

Hi&nbsp;Gary,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Version&nbsp;Core&nbsp;API:&nbsp;v2.0.50727&nbsp;  
&nbsp;Version&nbsp;FDO:&nbsp;v4.0.30319&nbsp;

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [October 2, 2012, 12:35pm UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/9 "2012-10-02T12:35:55Z")

</div>

Hello&nbsp;duong,&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;What’s&nbsp;the&nbsp;meaning&nbsp;of&nbsp;Core&nbsp;API?&nbsp;And&nbsp;our&nbsp;newest&nbsp;FDO&nbsp;should&nbsp;be&nbsp;6.0.xx.0&nbsp;or&nbsp;6.0.0.xx,&nbsp;4.0&nbsp;is&nbsp;a&nbsp;very&nbsp;old&nbsp;version.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;please&nbsp;upgrade&nbsp;to&nbsp;the&nbsp;newest&nbsp;version&nbsp;and&nbsp;have&nbsp;another&nbsp;try?&nbsp;You&nbsp;can&nbsp;download&nbsp;it&nbsp;from&nbsp;[helpdesk.thinkgeo.com](http://helpdesk.thinkgeo.com).&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [October 2, 2012, 8:56pm UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/10 "2012-10-02T20:56:23Z")

</div>

Hi&nbsp;Gary,&nbsp;  
&nbsp;GeoAPI,&nbsp;MapsuiteCore,&nbsp;DesktopEdition&nbsp;version&nbsp;is:&nbsp;6.0&nbsp;(I’ve&nbsp;downloaded&nbsp;since&nbsp;a&nbsp;month)&nbsp;  
&nbsp;FDO&nbsp;extension&nbsp;version:&nbsp;6.0.133.0&nbsp;  
&nbsp;&nbsp;  
&nbsp;DuongNV.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [October 3, 2012, 3:07pm UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/11 "2012-10-03T15:07:11Z")

</div>

Hello&nbsp;duong,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;I&nbsp;asked&nbsp;the&nbsp;version&nbsp;problem&nbsp;third&nbsp;time,&nbsp;is&nbsp;your&nbsp;MapsuiteCore&nbsp;and&nbsp;DesktopEdition&nbsp;are&nbsp;6.0.133.0&nbsp;as&nbsp;same&nbsp;as&nbsp;the&nbsp;FDO&nbsp;extension&nbsp;version?&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;so,&nbsp;I&nbsp;think&nbsp;there&nbsp;isn’t&nbsp;any&nbsp;problem&nbsp;about&nbsp;the&nbsp;dlls&nbsp;now,&nbsp;could&nbsp;you&nbsp;please&nbsp;provide&nbsp;your&nbsp;sample&nbsp;to&nbsp;us?&nbsp;I&nbsp;can&nbsp;make&nbsp;some&nbsp;test&nbsp;on&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [October 4, 2012, 1:57am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/12 "2012-10-04T01:57:04Z")

</div>

Hi&nbsp;Gary,&nbsp;  
&nbsp;+&nbsp;MapsuiteCore&nbsp;and&nbsp;DesktopEdition&nbsp;is&nbsp;the&nbsp;Version&nbsp;6.0.0.0&nbsp;—&nbsp;Released&nbsp;5/17/2012&nbsp;—&nbsp;124&nbsp;MB&nbsp;  
&nbsp;+&nbsp;FDO&nbsp;extension&nbsp;version:&nbsp;6.0.133.0&nbsp;  
&nbsp;This&nbsp;my&nbsp;code:&nbsp;  
&nbsp;&nbsp;  
&nbsp;private&nbsp;void&nbsp;Form1\_Load(object&nbsp;sender,&nbsp;EventArgs&nbsp;e)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.MapUnit&nbsp;=&nbsp;GeographyUnit.DecimalDegree;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S57FeatureLayer&nbsp;sg1&nbsp;=&nbsp;new&nbsp;S57FeatureLayer(@"E:\working\project\vts\HAI&nbsp;DO&nbsp;DIEN&nbsp;TU&nbsp;24-04-2012&nbsp;  
&nbsp;\HAI&nbsp;DO&nbsp;DIEN&nbsp;TU&nbsp;24-04-2012\Gui\_cang\_vu\_18-04-2012\Gui\_cang\_vu\_18-04-2012\SAI&nbsp;GON\VN4SG001.000",&nbsp;"FID");&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sg1.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle&nbsp;=&nbsp;AreaStyles.Country1;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sg1.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel&nbsp;=&nbsp;ApplyUntilZoomLevel.Level20;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LayerOverlay&nbsp;layerOverlay&nbsp;=&nbsp;new&nbsp;LayerOverlay();&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layerOverlay.Layers.Add(sg1);&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.Overlays.Add(layerOverlay);&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.CurrentExtent&nbsp;=&nbsp;new&nbsp;RectangleShape(0,&nbsp;78,&nbsp;30,&nbsp;26);&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.Refresh();&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;  
&nbsp;&nbsp;  
&nbsp;Exception&nbsp;throwed&nbsp;from&nbsp;this&nbsp;code:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S57FeatureLayer&nbsp;sg1&nbsp;=&nbsp;new&nbsp;S57FeatureLayer(@"E:\working\project\vts\HAI&nbsp;DO&nbsp;DIEN&nbsp;TU&nbsp;24-04-2012&nbsp;  
&nbsp;\HAI&nbsp;DO&nbsp;DIEN&nbsp;TU&nbsp;24-04-2012\Gui\_cang\_vu\_18-04-2012\Gui\_cang\_vu\_18-04-2012\SAI&nbsp;GON\VN4SG001.000",&nbsp;"FID");&nbsp;

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [October 4, 2012, 3:06pm UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/13 "2012-10-04T15:06:55Z")

</div>

Hello&nbsp;duong,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;please&nbsp;using&nbsp;the&nbsp;Core&nbsp;and&nbsp;Desktop&nbsp;Edition&nbsp;dll&nbsp;as&nbsp;same&nbsp;as&nbsp;the&nbsp;FDO&nbsp;extension&nbsp;version?&nbsp;A&nbsp;good&nbsp;idea&nbsp;is&nbsp;upgrade&nbsp;to&nbsp;the&nbsp;newest&nbsp;version&nbsp;6.0.144.0&nbsp;for&nbsp;all&nbsp;the&nbsp;dlls,&nbsp;and&nbsp;please&nbsp;notice&nbsp;you&nbsp;need&nbsp;using&nbsp;the&nbsp;framework&nbsp;4.0&nbsp;for&nbsp;this.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;still&nbsp;can’t&nbsp;make&nbsp;it&nbsp;work&nbsp;after&nbsp;you&nbsp;using&nbsp;the&nbsp;newest&nbsp;dlls,&nbsp;could&nbsp;you&nbsp;please&nbsp;provide&nbsp;a&nbsp;sample&nbsp;with&nbsp;your&nbsp;data&nbsp;file&nbsp;together?&nbsp;Sorry&nbsp;it’s&nbsp;working&nbsp;fine&nbsp;on&nbsp;my&nbsp;side&nbsp;with&nbsp;the&nbsp;code.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [October 8, 2012, 2:22am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/14 "2012-10-08T02:22:40Z")

</div>

Hi&nbsp;Gary,&nbsp;  
&nbsp;I’ve&nbsp;passed&nbsp;error&nbsp;of&nbsp;version&nbsp;dll,&nbsp;but&nbsp;I&nbsp;meet&nbsp;some&nbsp;other&nbsp;errors:&nbsp;  
&nbsp;This&nbsp;'s&nbsp;my&nbsp;code:&nbsp;  
&nbsp;`S57FeatureLayer sg1 = new S57FeatureLayer(@“E:\working\project\vts\HAI DO DIEN TU 24-04-2012\HAI DO DIEN TU 24-04-2012\Gui_cang_vu_18-04-2012\Gui_cang_vu_18-04-2012\SAI GON\VN4SG001.000”, “FIDS”);            sg1.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;            sg1.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;            LayerOverlay layerOverlay = new LayerOverlay();            layerOverlay.Layers.Add(sg1);            // We need to add the layer overlay to Map.            winformsMap1.Overlays.Add(layerOverlay);            winformsMap1.CurrentExtent = new RectangleShape(100, 25, 125, 7);                        winformsMap1.CurrentScale = 5000000;                        Feature f = new Feature(107, 16);            ScreenPointF screenPoint = ExtentHelper.ToScreenCoordinate(new RectangleShape(100, 25, 125, 7), f, 1328, 706);            winformsMap1.MapClick += new EventHandler<MapClickWinformsMapEventArgs>(winformsMap1_Click);            winformsMap1.CenterAt(screenPoint);            winformsMap1.Refresh();`&nbsp;  
&nbsp;&nbsp;  
&nbsp;And&nbsp;this&nbsp;'s&nbsp;my&nbsp;exception:&nbsp;  
&nbsp;System.Reflection.TargetInvocationException&nbsp;was&nbsp;unhandled&nbsp;  
&nbsp;&nbsp;&nbsp;Message=Exception&nbsp;has&nbsp;been&nbsp;thrown&nbsp;by&nbsp;the&nbsp;target&nbsp;of&nbsp;an&nbsp;invocation.&nbsp;  
&nbsp;&nbsp;&nbsp;Source=mscorlib&nbsp;  
&nbsp;&nbsp;&nbsp;StackTrace:&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.RuntimeMethodHandle.\_InvokeMethodFast(IRuntimeMethodInfo&nbsp;method,&nbsp;Object&nbsp;target,&nbsp;Object[]&nbsp;arguments,&nbsp;SignatureStruct&&nbsp;sig,&nbsp;MethodAttributes&nbsp;methodAttributes,&nbsp;RuntimeType&nbsp;typeOwner)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo&nbsp;method,&nbsp;Object&nbsp;target,&nbsp;Object[]&nbsp;arguments,&nbsp;Signature&nbsp;sig,&nbsp;MethodAttributes&nbsp;methodAttributes,&nbsp;RuntimeType&nbsp;typeOwner)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Reflection.RuntimeMethodInfo.Invoke(Object&nbsp;obj,&nbsp;BindingFlags&nbsp;invokeAttr,&nbsp;Binder&nbsp;binder,&nbsp;Object[]&nbsp;parameters,&nbsp;CultureInfo&nbsp;culture,&nbsp;Boolean&nbsp;skipVisibilityChecks)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Reflection.RuntimeMethodInfo.Invoke(Object&nbsp;obj,&nbsp;BindingFlags&nbsp;invokeAttr,&nbsp;Binder&nbsp;binder,&nbsp;Object[]&nbsp;parameters,&nbsp;CultureInfo&nbsp;culture)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Reflection.MethodBase.Invoke(Object&nbsp;obj,&nbsp;Object[]&nbsp;parameters)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.FdoFeatureSource.OpenCore()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.FeatureSource.Open()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.FeatureLayer.OpenCore()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.Layer.Open()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas&nbsp;canvas)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.Overlay.rRM=(GeoCanvas&nbsp;rhM=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas&nbsp;canvas)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.yhU=(IEnumerable`1&nbsp;yxU=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.yBU=(RectangleShape&nbsp;yRU=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.FxY=()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.ExY=(Int32&nbsp;FBY=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MapDesktop1.Form1.Form1\_Load(Object&nbsp;sender,&nbsp;EventArgs&nbsp;e)&nbsp;in&nbsp;E:\working\project\tmpCode\mapdesktop\MapDesktop1\MapDesktop1\Form1.cs:line&nbsp;52&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.OnLoad(EventArgs&nbsp;e)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.OnCreateControl()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.CreateControl(Boolean&nbsp;fIgnoreVisible)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.CreateControl()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.WmShowWindow(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.ScrollableControl.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.WmShowWindow(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&&nbsp;m)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr&nbsp;hWnd,&nbsp;Int32&nbsp;msg,&nbsp;IntPtr&nbsp;wparam,&nbsp;IntPtr&nbsp;lparam)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef&nbsp;hWnd,&nbsp;Int32&nbsp;nCmdShow)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.SetVisibleCore(Boolean&nbsp;value)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Form.SetVisibleCore(Boolean&nbsp;value)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.set\_Visible(Boolean&nbsp;value)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32&nbsp;reason,&nbsp;ApplicationContext&nbsp;context)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32&nbsp;reason,&nbsp;ApplicationContext&nbsp;context)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.Run(Form&nbsp;mainForm)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MapDesktop1.Program.Main()&nbsp;in&nbsp;E:\working\project\tmpCode\mapdesktop\MapDesktop1\MapDesktop1\Program.cs:line&nbsp;18&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.AppDomain.\_nExecuteAssembly(RuntimeAssembly&nbsp;assembly,&nbsp;String[]&nbsp;args)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.AppDomain.ExecuteAssembly(String&nbsp;assemblyFile,&nbsp;Evidence&nbsp;assemblySecurity,&nbsp;String[]&nbsp;args)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ThreadHelper.ThreadStart\_Context(Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.Run(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state,&nbsp;Boolean&nbsp;ignoreSyncCtx)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.Run(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ThreadHelper.ThreadStart()&nbsp;  
&nbsp;&nbsp;&nbsp;InnerException:&nbsp;System.NullReferenceException&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Message=Object&nbsp;reference&nbsp;not&nbsp;set&nbsp;to&nbsp;an&nbsp;instance&nbsp;of&nbsp;an&nbsp;object.&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Source=MapSuiteFdoExtension&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;StackTrace:&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MapSuiteFdoExtension.GeoFdoFeatureSource.Open(String&nbsp;providerName,&nbsp;String&nbsp;connectionString,&nbsp;String&nbsp;idColumnName,&nbsp;String&nbsp;featureSchemaName,&nbsp;String&nbsp;featureClassName,&nbsp;String&nbsp;geometryColumnName)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InnerException:

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@Ryan](https://community.thinkgeo.com/u/Ryan)\
**Post date:** [October 10, 2012, 10:24am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/15 "2012-10-10T10:24:06Z")

</div>

Hi&nbsp;Duong,&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;in&nbsp;the&nbsp;proces&nbsp;of&nbsp;setting&nbsp;up&nbsp;a&nbsp;clean&nbsp;environment&nbsp;to&nbsp;test&nbsp;this&nbsp;properly.&nbsp;I&nbsp;was&nbsp;getting&nbsp;a&nbsp;version&nbsp;mismatch&nbsp;issue&nbsp;and&nbsp;want&nbsp;to&nbsp;make&nbsp;sure&nbsp;I&nbsp;am&nbsp;testing&nbsp;this&nbsp;on&nbsp;a&nbsp;‘clean’&nbsp;machine.

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@Ryan](https://community.thinkgeo.com/u/Ryan)\
**Post date:** [October 12, 2012, 10:07am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/16 "2012-10-12T10:07:17Z")

</div>

Hi&nbsp;Duong,

Thanks&nbsp;for&nbsp;your&nbsp;patience.&nbsp;The&nbsp;issue&nbsp;is&nbsp;a&nbsp;Mixed&nbsp;Mode&nbsp;Assembly&nbsp;issue&nbsp;with&nbsp;one&nbsp;of&nbsp;the&nbsp;assemblies&nbsp;that&nbsp;the&nbsp;FDOExtension.dll&nbsp;references.&nbsp;When&nbsp;you&nbsp;moved&nbsp;your&nbsp;application&nbsp;to&nbsp;use&nbsp;the&nbsp;6.0.144.0&nbsp;version&nbsp;of&nbsp;our&nbsp;Dlls,&nbsp;Visual&nbsp;Studio&nbsp;asked&nbsp;informed&nbsp;you&nbsp;that&nbsp;the&nbsp;'FDOExtension.dll',&nbsp;or&nbsp;one&nbsp;of&nbsp;its&nbsp;dependencies,&nbsp;requires&nbsp;a&nbsp;later&nbsp;version&nbsp;of&nbsp;the&nbsp;.NET&nbsp;Framework&nbsp;than&nbsp;the&nbsp;one&nbsp;specified&nbsp;in&nbsp;the&nbsp;project.'&nbsp;Thus&nbsp;you&nbsp;probably&nbsp;updated&nbsp;you&nbsp;project&nbsp;to&nbsp;the&nbsp;.NET&nbsp;4.0&nbsp;Framework.&nbsp;This&nbsp;is&nbsp;what&nbsp;is&nbsp;causing&nbsp;the&nbsp;exception.

There&nbsp;are&nbsp;two&nbsp;ways&nbsp;to&nbsp;work&nbsp;around&nbsp;this&nbsp;issue.

The&nbsp;first&nbsp;option&nbsp;involves&nbsp;using&nbsp;the&nbsp;same&nbsp;6.0.144.0&nbsp;version&nbsp;you&nbsp;are&nbsp;currently&nbsp;referencing&nbsp;so&nbsp;you&nbsp;don't&nbsp;need&nbsp;to&nbsp;make&nbsp;any&nbsp;reference&nbsp;changes.&nbsp;  
  
To&nbsp;use&nbsp;the&nbsp;.NET&nbsp;4.0&nbsp;framework&nbsp;as&nbsp;the&nbsp;Target&nbsp;Framework&nbsp;of&nbsp;your&nbsp;application,&nbsp;use&nbsp;the&nbsp;FDOExtension&nbsp;and&nbsp;avoid&nbsp;the&nbsp;MixedMode&nbsp;Exception&nbsp;you&nbsp;will&nbsp;need&nbsp;to&nbsp;add&nbsp;the&nbsp;following&nbsp;to&nbsp;your&nbsp;app.config:

`<configuration>   <startup useLegacyV2RuntimeActivationPolicy="true">     <supportedRuntime version="v4.0"/>   </startup>  `

&nbsp;

The&nbsp;other&nbsp;option&nbsp;involves&nbsp;reverting&nbsp;back&nbsp;to&nbsp;the&nbsp;6.0.0.0&nbsp;Release&nbsp;version&nbsp;dlls&nbsp;and&nbsp;setting&nbsp;your&nbsp;Appliction&nbsp;to&nbsp;use&nbsp;the&nbsp;.NET&nbsp;3.0&nbsp;or&nbsp;3.5&nbsp;Framework.

---

<div class="post-metadata">

**Author:** ![duong](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/58956e/32.png) [@duong](https://community.thinkgeo.com/u/duong)\
**Post date:** [October 15, 2012, 2:19am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/17 "2012-10-15T02:19:16Z")

</div>

Hi&nbsp;Ryan,&nbsp;  
&nbsp;I&nbsp;have&nbsp;by&nbsp;passed&nbsp;MixedMode&nbsp;problem&nbsp;already,&nbsp;but&nbsp;still&nbsp;got&nbsp;error&nbsp;like&nbsp;upon.&nbsp;  
&nbsp;&nbsp;  
&nbsp;DuongNV.

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@Ryan](https://community.thinkgeo.com/u/Ryan)\
**Post date:** [October 15, 2012, 9:34am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/18 "2012-10-15T09:34:05Z")

</div>

Hi&nbsp;Duong,

I&nbsp;assume&nbsp;you&nbsp;are&nbsp;referring&nbsp;to&nbsp;this&nbsp;exeption&nbsp;from&nbsp;above?:&nbsp;  
  
**System.Reflection.TargetInvocationException&nbsp;was&nbsp;unhandled&nbsp;**  
  
**Message=Exception&nbsp;has&nbsp;been&nbsp;thrown&nbsp;by&nbsp;the&nbsp;target&nbsp;of&nbsp;an&nbsp;invocation.&nbsp;**  
  
**Source=mscorlib&nbsp;**  
  
**StackTrace:&nbsp;**  
  
**at&nbsp;System.RuntimeMethodHandle.\_InvokeMethodFast(IRuntimeMethodInfo&nbsp;method,&nbsp;Object&nbsp;target,&nbsp;Object[]&nbsp;arguments,&nbsp;SignatureStruct&&nbsp;sig,&nbsp;MethodAttributes&nbsp;methodAttributes,&nbsp;RuntimeType&nbsp;typeOwner)&nbsp;**

This&nbsp;maybe&nbsp;an&nbsp;issue&nbsp;with&nbsp;the&nbsp;specific&nbsp;S57&nbsp;file&nbsp;that&nbsp;you&nbsp;are&nbsp;attempting&nbsp;to&nbsp;load.&nbsp;Can&nbsp;you&nbsp;perhaps&nbsp;provide&nbsp;us&nbsp;this&nbsp;file&nbsp;so&nbsp;that&nbsp;we&nbsp;might&nbsp;recreate&nbsp;the&nbsp;issue&nbsp;and&nbsp;perhaps&nbsp;debug&nbsp;it&nbsp;further?

If&nbsp;your&nbsp;file&nbsp;is&nbsp;larger&nbsp;than&nbsp;500k&nbsp;you&nbsp;will&nbsp;need&nbsp;to&nbsp;login&nbsp;to&nbsp;the&nbsp;ThinkGeo&nbsp;Customer&nbsp;Portal&nbsp;located&nbsp;at&nbsp;[helpdesk.thinkgeo.com](http://helpdesk.thinkgeo.com),&nbsp;create&nbsp;a&nbsp;Ticket&nbsp;and&nbsp;attach&nbsp;your&nbsp;S57&nbsp;file&nbsp;to&nbsp;the&nbsp;ticket.

An&nbsp;e-mail&nbsp;will&nbsp;be&nbsp;sent&nbsp;containing&nbsp;your&nbsp;login&nbsp;credentials&nbsp;for&nbsp;the&nbsp;Customer&nbsp;Portal&nbsp;so&nbsp;be&nbsp;sure&nbsp;to&nbsp;check&nbsp;your&nbsp; **Junk&nbsp;** and&nbsp; **Spam&nbsp;** folders&nbsp;for&nbsp;this&nbsp;information.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [October 18, 2012, 2:05am UTC](https://community.thinkgeo.com/t/map-data-support-s57-dgn/2096/19 "2012-10-18T02:05:18Z")

</div>

Hello&nbsp;duong,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;data,&nbsp;now&nbsp;we&nbsp;have&nbsp;upgrade&nbsp;the&nbsp;FDO&nbsp;extension&nbsp;to&nbsp;make&nbsp;it&nbsp;support&nbsp;the&nbsp;.Net&nbsp;4.0,&nbsp;as&nbsp;my&nbsp;test,&nbsp;this&nbsp;exception&nbsp;resolved,&nbsp;I&nbsp;will&nbsp;post&nbsp;here&nbsp;again&nbsp;once&nbsp;we&nbsp;finished&nbsp;the&nbsp;full&nbsp;test&nbsp;and&nbsp;upload&nbsp;the&nbsp;new&nbsp;FDO&nbsp;extension&nbsp;dll&nbsp;to&nbsp;our&nbsp;website.&nbsp;  
&nbsp;&nbsp;  
&nbsp;But&nbsp;I&nbsp;have&nbsp;one&nbsp;more&nbsp;question,&nbsp;once&nbsp;I&nbsp;opened&nbsp;the&nbsp;s57&nbsp;file&nbsp;VN4SG003.000&nbsp;which&nbsp;you&nbsp;provide,&nbsp;no&nbsp;exception&nbsp;throws&nbsp;but&nbsp;I&nbsp;can’t&nbsp;see&nbsp;anything&nbsp;shows,&nbsp;can&nbsp;you&nbsp;make&nbsp;sure&nbsp;if&nbsp;this&nbsp;data&nbsp;file&nbsp;has&nbsp;no&nbsp;problem?&nbsp;If&nbsp;you&nbsp;can&nbsp;see&nbsp;it&nbsp;with&nbsp;some&nbsp;other&nbsp;way,&nbsp;can&nbsp;you&nbsp;guide&nbsp;me&nbsp;how&nbsp;to&nbsp;do&nbsp;it?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary
