SingletonCreator error

Topics: General
Feb 23, 2012 at 1:07 PM
Edited Feb 23, 2012 at 1:08 PM

Hi Radioman,

I use following code

 

MainMap.Manager.Mode = AccessMode.ServerAndCache;
GMap.NET.CacheProviders.MsSQLPureImageCache ch = new GMap.NET.CacheProviders.MsSQLPureImageCache();
ch.ConnectionString = @"Data Source=.\SQLEXPRESS; AttachDbFilename=" + Application.StartupPath + "\\ariarmandb.mdf; Integrated Security=True; Connect Timeout=30; User Instance=True";
MainMap.Manager.SecondaryCache = ch;

 

i can't use MsSQLCePureImageCache.

but this eeror occurs in Singleton.cs at line 29;

Could not find file 'C:\Users\Hamid\AppData\Local\GMap.NET\TileDBv5\en\Data.gmdb'.

how i solve this error?

thanks ;}

Coordinator
Feb 23, 2012 at 1:22 PM

works fine for me

Feb 23, 2012 at 1:26 PM

how can i use sql express 2005 for cache tiles ?

Coordinator
Feb 23, 2012 at 1:34 PM

set connection string and thats it

Feb 23, 2012 at 1:42 PM

i run demo with my connection string and then my project is run correct.

why?

it's fuuny;

thanks.

Coordinator
Feb 23, 2012 at 1:47 PM

i've no idea what exactly are you doing ;}