Has anyone got tilecachemaplayers to work in 10?I've got the following code.
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim tilecache As New DataProducts.RasterData.TileCacheMapLayer("d:\AirOps_AerialBaseLayer\Layers")
tilecache.Open()
Map1.MapLayers.Add(tilecache)
End Sub
I'm getting past the code but then it's giving me "Parameter is not valid" when the form displays.There is nothing on this form besides a mobile map control.The cache is fully constructed... only down to ~1:288000.There is a conf.cdi and conf.xml file in that Layers directory. It's a compact cache.The stack trace is: at System.Drawing.Bitmap..ctor(Stream stream) at ESRI.ArcGIS.Mobile.DataProducts.RasterData.TileMapLayer.CreateImage(Display display) at ESRI.ArcGIS.Mobile.DataProducts.RasterData.TileMapLayer.Draw(Display display) at ESRI.ArcGIS.Mobile.MapLayer.OnDraw(IntPtr canvasHandle)