Hi!
How can I implement cache with sqlserver?
I tried to do the following, but it did not work.
strPath = System.Web.Hosting.HostingEnvironment.MapPath("~/tiles")
loFileTileCache = New FileBitmapTileCache(strPath)
loFileTileCache.TileAccessMode = TileAccessMode.ReadAddDelete
loFileTileCache.ImageFormat = TileImageFormat.Png
'Lineas
mssqlFeatureLayer = New MsSqlFeatureLayer(ConnectionStr, "mags.WEB_EL_v_Lineas", "Linea")
mssqlFeatureLayer.Name = capa
mssqlFeatureLayer.CustomGeometryColumnName = "Objeto"
lo_LineaValueStyle.ColumnName = "Alimentador_MT"
mssqlFeatureLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(lo_LineaValueStyle)
mssqlFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
mssqlFeatureLayer.FeatureSource.Projection = proj4
layerOverlay.TileCache = loTileCache
layerOverlay.Layers.Add(mssqlFeatureLayer)
And I get this error
“Object reference not set to an instance of an object.”
Thank you
Regards
Abel