AnsweredAssumed Answered

Getting "Error while loading layer : Basemap..." in basic .net runtime project

Question asked by seannakasone on Jan 5, 2016
Latest reply on Jun 29, 2016 by premarajanna

I'm running a basic .net runtime 10.2.6 project.  Here's the workflow...

visual studio 2013 > file > new > project > visual C# > windows desktop > ArcGIS Runtime 10.2.6 for .NET Application


In Visual Studio's output window, I'm seeing...

"Error while loading layer : Basemap - Layer could not be added to Map because layer initialization failed. See InnerException for more information."


I added the InnerException argument to debug statement...

            Debug.WriteLine(string.Format("Error while loading layer : {0} - {1} - {2}", e.Layer.ID, e.LoadError.Message, e.LoadError.InnerException));

And it produces...

System.Net.Http.HttpRequestException: Proxy Authorization Required

   at Esri.ArcGISRuntime.Layers.Layer.<InitializeAsync>b__3(Task`1 t)

   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()



By default, it uses this as the basemap.



I have no problem accessing the map through my browser. This URL produces maps everytime, quickly...