# Problem loading .mdb file

**URL:** <https://community.thinkgeo.com/t/problem-loading-mdb-file/8670>\
**Category:** WPF\
**Created:** [September 20, 2017, 2:01pm UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670 "2017-09-20T14:01:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [September 20, 2017, 2:01pm UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/1 "2017-09-20T14:01:58Z")

</div>

I’m having issues loading in a .mdb file in my application, as well as in the sample application provided.

Here’s a screenshot of what I’m seeing in the sample application (as well as mine).

 ![](https://community.thinkgeo.com/uploads/default/original/3X/6/8/68301d8f044561500ee2f4cc53e80ef175e5e258.png)

I do have a reference to “MapSuiteFdoExtension” in the project. I also have the folders “MapSuiteFdoExtensionX86” and “MapSuiteFdoExtensionX64” in my SysWOW64 folder and System32 folder.

Any tips?

Thanks!

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [September 21, 2017, 6:29am UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/2 "2017-09-21T06:29:38Z")

</div>

Hi Dan,

It looks you are running a V9 HowDoISamples, and why you tried to load the MDB file via the sample LoadGeoDatabaseFeatureLayer?

Our V9 had stopped get update, so please directly try our latest V10 sample, you can the HowDoISamples for V10 here: [https://github.com/ThinkGeo/HowDoISample-ForWpf](https://github.com/ThinkGeo/HowDoISample-ForWpf)

And you can find more samples in the [https://github.com/ThinkGeo/](https://github.com/ThinkGeo/)

If you still failed to load your data, please show us your test code and your sample data so we can help you look into it.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [September 26, 2017, 9:49am UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/3 "2017-09-26T09:49:57Z")

</div>

Thanks for the response!

I am using version 10. For now I’d just like to get the sample running in the “HowDoI” project.

```
private void WpfMap_Loaded(object sender, RoutedEventArgs e)
{
    try
    {
        wpfMap1.MapUnit = GeographyUnit.Meter;
        wpfMap1.CurrentExtent = new RectangleShape(2149408.38465815, 246471.365609125, 2204046.63635703, 213231.081162168);

        PersonalGeoDatabaseFeatureLayer worldLayer = new PersonalGeoDatabaseFeatureLayer(Samples.RootDirectory + @"Data\JORWD6gdb.mdb", null, null, "Mains");
        worldLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.LocalRoad1;
        worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

        LayerOverlay worldOverlay = new LayerOverlay();
        worldOverlay.DrawingExceptionMode = DrawingExceptionMode.DrawException;
        worldOverlay.Layers.Add(new BackgroundLayer(new GeoSolidBrush(GeoColor.FromArgb(255, 233, 232, 214))));
        worldOverlay.Layers.Add("WorldLayer", worldLayer);
        wpfMap1.Overlays.Add("WorldOverlay", worldOverlay);

        wpfMap1.Refresh();
    }
    catch (FileNotFoundException ex)
    {
        string message = "You should get Fdo dependencies from [Install-Path]\\Developer Reference\\System32\\, and put MapSuiteFdoExtensionx86 folder to System32 folder.\r\n\r\n" + ex.Message;
        MessageBox.Show(message, "FileNotFound", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.OK, (MessageBoxOptions)0);
    }
}

```

Above is the code that came with the sample.

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [September 26, 2017, 4:56pm UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/4 "2017-09-26T16:56:27Z")

</div>

Also, does FdoExtension.dll still exist? I can’t find it anywhere. I found a Fdo.dll, but it threw an error when trying to add it to to the project as a reference.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [September 27, 2017, 3:36am UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/5 "2017-09-27T03:36:36Z")

</div>

Hi Dan,

I want to build a sample for you, but it looks I hadn’t found the mdb file for test. If your data size is not big please upload it here and I can see whether it works well with out V10.

There isn’t FdoExtension.dll or Fdo.dll for our V10, that’s only for V9.

You should want to add the reference to this package: [NuGet Gallery | ThinkGeo.MapSuite.Layers.PersonalGeoDatabase 11.0.0-beta006](https://www.nuget.org/packages/ThinkGeo.MapSuite.Layers.PersonalGeoDatabase/11.0.0-beta006)

And you can see its Dependencies, the dll you need is contained in them, when you install PersonalGeoDatabase package they will be installed automatic.

 ![](https://community.thinkgeo.com/uploads/default/original/3X/b/4/b40c9b18b328f697ad01f7bee26e5b716074cd1f.png)

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [September 27, 2017, 9:22am UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/6 "2017-09-27T09:22:27Z")

</div>

Thanks for the response!

I uploaded a zip file with the .mdb attached. I’ll try making a new project and adding the references that you suggested.

[mdb file](https://community.thinkgeo.com/uploads/default/original/3X/5/5/551a9dc5da2fb8f65bbe55ded8bb5da2f6dd5e83.zip) (830.0 KB)

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [September 27, 2017, 10:06pm UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/7 "2017-09-27T22:06:29Z")

</div>

Checked my references and I do have the ones you mentioned, same problem with my .mdb file and the one in the “howdoI” examples.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [September 28, 2017, 11:03am UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/8 "2017-09-28T11:03:51Z")

</div>

Hi Dan,

Attached is the sample, [8670.zip](https://community.thinkgeo.com/uploads/default/original/3X/f/f/ff897afb42eba106a55c3599fbd4f7691bb085b5.zip) (10.2 KB)

please copy your data into AppData folder, then directly run it.

It should works like this:

 ![](https://community.thinkgeo.com/uploads/default/original/3X/c/3/c33a8a457297e39b06bbad778f64fbaa303f8536.png)

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Dan\_Weaver](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5f8ce5/32.png) [@Dan\_Weaver](https://community.thinkgeo.com/u/Dan_Weaver)\
**Post date:** [September 29, 2017, 11:02am UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/9 "2017-09-29T11:02:29Z")

</div>

Thanks! Works great now.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [September 30, 2017, 2:16am UTC](https://community.thinkgeo.com/t/problem-loading-mdb-file/8670/10 "2017-09-30T02:16:35Z")

</div>

Hi Dan,

I am glad to hear that works.

Regards,

Don
