We have a client who is getting the following error message:
'WorldMapKit Client Exception See Client Trace’
Can you tell me where this Client Trace file is located so we can try to diagnose the problem further…
Thanks!!
bob
Where is Client Trace Log Located
Hi Bob,
Sorry I haven’t found related information about your string in code and I haven’t got this exception before, so I need some more information to make sure where is the exception come from and then we can try to find when it will been thrown.
1. Is your client using WPF Desktop Edition?
2. Does the error message comes from any exception or a popup?
3. It looks he added WorldMapKitLayer, could you make sure that and if there are some sample code should be helpful.
Regards,
Don
1. Is your client using WPF Desktop
Edition? No
2. Does the error message comes from any
exception or a popup? Yes. (See Picture Below)
3. It looks he added WorldMapKitLayer,
could you make sure that and if there are some sample code should be helpful. Yes. The code works for 100s of clients, so this is unique to this specific user.
The Program is a Windows Forms C# program.
So Again, Where do we find the Client Trace?? Or does this have reference to something we could correct? Proxy Server? ?? If proxy server, what would be the address of the World Map Kit proxy??
Thanks. Bob
Hi Bob,
I encountered this exception when the network or the proxy is disable. After I disabled my network and turn on the exception mode, I can get the attached exception.
In order to find out the root of the issue, please try the below codes to run at the user machine:
privatevoidForm1_Load(objectsender, EventArgs e){winformsMap1.MapUnit = GeographyUnit.DecimalDegree;winformsMap1.CurrentExtent =newRectangleShape(-155.733, 95.60, 104.42, -81.9);//WorldMapKitWmsDesktopOverlay worldMapKitOverlay = new WorldMapKitWmsDesktopOverlay();//worldMapKitOverlay.DrawingExceptionMode = DrawingExceptionMode.ThrowException;//worldMapKitOverlay.SendingWebRequest += new EventHandler<SendingWebRequestEventArgs>(worldMapKitOverlay_SendingWebRequest);
WorldMapKitLayer worldLayer =newWorldMapKitLayer();worldLayer.DrawingExceptionMode = DrawingExceptionMode.ThrowException;worldLayer.SendingWebRequest +=newEventHandler<SendingWebRequestEventArgs>(worldMapKitOverlay_SendingWebRequest);LayerOverlay overlay =newLayerOverlay();overlay.Layers.Add(worldLayer);
winformsMap1.Overlays.Add(overlay);winformsMap1.Refresh();}
voidworldMapKitOverlay_SendingWebRequest(objectsender, SendingWebRequestEventArgs e){try{WebRequest myWebRequest = e.WebRequest;HttpWebResponse myWebResponse = (HttpWebResponse)e.WebRequest.GetResponse();if(myWebResponse.ContentType.StartsWith(“image”, StringComparison.OrdinalIgnoreCase)){Bitmap bitmap =newBitmap(myWebResponse.GetResponseStream());bitmap.Save(“d:\tile.png”);}}catch(Exception ex){MessageBox.Show(ex.InnerException.Message);}}
Hope it will help you.
Regards,
Johnny