ArcGISRuntimeSamplesDesktopViewer not showing basemaps

5657
21
Jump to solution
12-22-2015 12:32 PM
SeanNakasone
New Contributor II

Hi, I'm having trouble getting the basemaps to display in the github sample (arcgis-runtime-samples-dotnet).  I'm clicking on Mapping > Switch Basemaps > Streets.  It does not show anything in the map.

I installed the Runtime SDK.

I've downloaded the sample-data folder.

Using Visual Studio 2013.

I'm guessing it should show...

"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"

Which I can access from a browser.

Any suggestions?

0 Kudos
21 Replies
SeanNakasone
New Contributor II

Well that's weird.  I started using fiddler to see what's going on.  I then undid the change (simply did a ctrl-z in visual studio) to use the world map again, and now the world map is showing.  What the heck??

Anyway, thank you very much for your help.

0 Kudos
SeanNakasone
New Contributor II

The ArcGISRuntimeSamplesDesktopViewer sample works too now.

0 Kudos
SeanNakasone
New Contributor II

I restarted my PC, now I have the issue again, no base map.

0 Kudos
SeanNakasone
New Contributor II

If I use a browser to access http://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer?f=jsapi , it works 100% of the time, and it's fast.  I can delete the temporary files between each time so I know it's actually sending out the request.

Now why is the .net runtime only working a portion of the time?

And it's like once it stops working, it will cease to work until I change something.  For example if I break the app by pulling out my Ethernet cable, it will stop working.  Even after I plug it back in, it will cease to work.  Then if I run fiddler, somehow that changes something, then it will start working from that point on again.  It's almost like something is being cached.

0 Kudos
SeanNakasone
New Contributor II

I also tried the ArcGISRuntimeSamplesDesktopViewer sample app at home, I have no firewalls, nor antivirus (yes i know that's not good).  It runs fine on my host machine.  The basemap does not display on my virtual guest machine.  The host and vm guest are setup the same.  I ran fiddler on the vm guest, it is receiving tiles ok from the world street map service, it's just not displaying anything in the view.

0 Kudos
MatthewBaber
Esri Contributor

Ok, this tells me some things.

First of all: sorry for the delay, holidays and such.

Second, Fiddler is a great little program for catching 'lint' in web apps to debug issues. If the action of running Fiddler is fixing your issue then this is positively a client side issue. My best guess is that there is an issue with your proxy server and how http or https requests are being handled either by the server or by your machine/code.

I would take a look at the fiddler log with your IT to determine the proxy requests. Remember that when running Fiddler it is involved with the requests and not just monitoring traffic. This act of Fiddler as a proxy is (my best guess) why the http or https requests are going through while Fiddler is operating. Since this same issue occurs on both networks I would further my guess that this is a personal machine firewall causing the proxy issue.

0 Kudos
SeanNakasone
New Contributor II

Thanks Matthew.

I'll investigate my firewall.

0 Kudos
JensBuchta
Occasional Contributor

I've seen the same issue in virtual machines. The basemap does not display at all, although the tiles are retrieved from the server.

But it works fine with ArcGIS Runtime for .NET 10.2.5!

My guess is some core functionality in the rendering engine uses some kind of 3D-functionality of the graphics card since 10.2.6 due to the 3D enhancements. I haven't had the chance to test this with different VM products by now, so I can't tell if my assumption is true or not.

0 Kudos
SeanNakasone
New Contributor II

thanks for info

that explains my VM issue.

I still have the proxy issue though. our IT folks said we do have a proxy server, but they didnt see my requests hitting it.

I cant understand why running fiddler would cause it to sometimes work. Also, if I exit fiddler, it will continue to work. Strange.

0 Kudos
SeanNakasone1
New Contributor II

I too was able to get 10.2.5 working from my VM using a simple wpf app.

I tried to load the 10.2.5 runtime into the ArcGISRuntimeSamplesDesktopViewer sample app but got lots of compile errors--I guess it's meant for 10.2.6 only.

0 Kudos