# MBTiles example broken, SQL

**URL:** <https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845>\
**Category:** WPF\
**Created:** [July 8, 2020, 11:32am UTC](https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845 "2020-07-08T11:32:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Roman](https://community.thinkgeo.com/u/Roman)\
**Post date:** [July 8, 2020, 11:32am UTC](https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845/1 "2020-07-08T11:32:44Z")

</div>

Hello,

I am download [GitHub - ThinkGeo/ThinkGeoOfflineMapsViewerAndExtractor-ForWpf12: This sample demonstrate how to display the ThinkGeo Cloud Maps (mbtiles file) in an offline desktop application. It also allows you to create a new smaller subsets data from an existing MBTiles database. · GitHub](https://github.com/ThinkGeo/ThinkGeoOfflineMapsViewerAndExtractor-ForWpf12) .  
But the map is not displayed. Instead of card “INPUT string was not in a correct format”.

 ![Error1](https://community.thinkgeo.com/uploads/default/original/3X/f/2/f2df1b83e78afe7a5d2035d8eb3652ac5d5e5795.jpeg)

I created an empty project(.net core) and rewrote the code from the current project. But there was a new mistake “sqlite error 14 unable to open database file”

 ![Error2](https://community.thinkgeo.com/uploads/default/original/3X/5/a/5a7a6532a5def5aff0e5aa35fe4d93a74a252f14.jpeg)

p.s. if I create net framework project mistake saved(Sql error 14).

Thanks!!!

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [July 8, 2020, 8:45pm UTC](https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845/2 "2020-07-08T20:45:40Z")

</div>

Thanks Roman,  
I tested the sample on few of our machines. It works.

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

I think this issue may something with the data path name. Can you try to copy the sample project to a simple English path such as D:\test. If still not work you may need change your windows environment to English one.

Go ahead let us know if this still not working. We could schedule a share screen meeting to dig into more detail.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Roman](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Roman](https://community.thinkgeo.com/u/Roman)\
**Post date:** [July 9, 2020, 2:01pm UTC](https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845/3 "2020-07-09T14:01:35Z")

</div>

Thank Frank4,  
Changing the environment to English helped me.

How to remove the impact of the system on performance?  
The program should work on systems with different languages.

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [July 10, 2020, 2:42pm UTC](https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845/4 "2020-07-10T14:42:56Z")

</div>

Roman,  
Could you give us a screenshot about your system on performance? I tested with few different environments. It works very well. We must miss some environment.

Thanks

Frank

---

<div class="post-metadata">

**Author:** ![Roman](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@Roman](https://community.thinkgeo.com/u/Roman)\
**Post date:** [July 13, 2020, 6:34am UTC](https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845/5 "2020-07-13T06:34:20Z")

</div>

Frank4,  
Here are the parameters of my system.

[systemInfo.bmp](https://community.thinkgeo.com/uploads/short-url/rxcsu4TaZb2lNLm9ZElf8daBT9y.bmp) (2.0 MB)

If you test, then the preferred language of the system is Ukrainian / Russian.

Thanks

Roman

---

<div class="post-metadata">

**Author:** ![Frank4](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/frank4/32/25224_2.png) [@Frank4](https://community.thinkgeo.com/u/Frank4)\
**Post date:** [July 14, 2020, 8:35pm UTC](https://community.thinkgeo.com/t/mbtiles-example-broken-sql/9845/6 "2020-07-14T20:35:07Z")

</div>

Thanks Roman,  
I can re-produce this issue by change the environment. We have fixed this issue. After you download the sample. You could update the thinkgeo nuget package to the latest one. Then it will work.

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

This sample only contain the NewYorkCity. For more data please check out [Mapping SDKs for .NET — ThinkGeo, GIS Mapping Made Easy](https://thinkgeo.com/mapping-data)

Thanks

Frank
