<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DynamicMapServiceLayer Load Failure in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25940#M679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. After some more thourough testing I verfied that listening for the InitilaizationFailure event works as you suggested on the ArcGISDynamicMapServiceLayer. However, on the WmsLayer it only works when SkipGetCapabilities is false and the GetCapabilities call fails. If I set SkipGetCapabilities to true or the GetCapabilites call succeeds, and then the subsequent call to GetMap fails, no problem is indicated. The result is no data loaded and there is no way to know that an error occurred. I realize this is an issue with the host and the assumption is made that if GetCapabilities succeeds then the GetMap call should also succeed. But this precisely the issue I am running into. Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 23:54:43 GMT</pubDate>
    <dc:creator>DouglasJones</dc:creator>
    <dc:date>2010-11-17T23:54:43Z</dc:date>
    <item>
      <title>DynamicMapServiceLayer Load Failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25938#M677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application I am consuming WMS and REST serivces using the WmsLayer and ArcGISDynamicMapServicesLayer layers. From time to time the remote host bogs down or is unavailable. When this occurs no data is returned and the underlying WebRequests eventually timeout or fail. Is there any built in mechanism (Error event?) that will provide information to my application if the underlying WebRequest fails?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 17:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25938#M677</guid>
      <dc:creator>DouglasJones</dc:creator>
      <dc:date>2010-11-17T17:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicMapServiceLayer Load Failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25939#M678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, you can subscribe to InitializedFailed event, both WMS layer and ArcGISDynamicMapServiceLayer have this.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/2.1/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Layer~InitializationFailed_EV.html"&gt;http://help.arcgis.com/en/webapi/silverlight/2.1/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Layer~InitializationFailed_EV.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also subscribe to Initialized event and check for when the layer's InitializationFailure is not null.&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/2.1/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Layer~InitializationFailure.html"&gt;http://help.arcgis.com/en/webapi/silverlight/2.1/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Layer~InitializationFailure.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 20:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25939#M678</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-17T20:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicMapServiceLayer Load Failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25940#M679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. After some more thourough testing I verfied that listening for the InitilaizationFailure event works as you suggested on the ArcGISDynamicMapServiceLayer. However, on the WmsLayer it only works when SkipGetCapabilities is false and the GetCapabilities call fails. If I set SkipGetCapabilities to true or the GetCapabilites call succeeds, and then the subsequent call to GetMap fails, no problem is indicated. The result is no data loaded and there is no way to know that an error occurred. I realize this is an issue with the host and the assumption is made that if GetCapabilities succeeds then the GetMap call should also succeed. But this precisely the issue I am running into. Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 23:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25940#M679</guid>
      <dc:creator>DouglasJones</dc:creator>
      <dc:date>2010-11-17T23:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicMapServiceLayer Load Failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25941#M680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When GetMap request is made, the WMS layer has already initialized without failure.&amp;nbsp; You can&amp;nbsp; verify this with Fiddler. Capabilities are retrieved during Initialize(), which means that your host at this point must have been available.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, we do not have an event that is raised when GetMap request fails.&amp;nbsp; What you can do is override GetUrl() of the WMS layer, create a delegate for the OnUrlComplete parameter so you can do the error-handling yourself. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit.DataSources~ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer_members.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit.DataSources~ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer_members.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 14:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25941#M680</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-18T14:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicMapServiceLayer Load Failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25942#M681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have overridden the GetUrl method and assigned a custom OnUrlComplete handler. My question now is what to do inside the OnUrlComplete handler? I am guessing I need to issue a WebRequest to load the remote resource for the WmsLayer but I'm not sure what else is required. Is this documented somewhere?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 17:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25942#M681</guid>
      <dc:creator>DouglasJones</dc:creator>
      <dc:date>2010-11-19T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: DynamicMapServiceLayer Load Failure</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25943#M682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The closest I found online is this GetUrl (&lt;/SPAN&gt;&lt;A href="http://rexdotnet.blogspot.com/2010/09/use-google-maps-with-arcgis-silverlight.html"&gt;http://rexdotnet.blogspot.com/2010/09/use-google-maps-with-arcgis-silverlight.html&lt;/A&gt;&lt;SPAN&gt;). You are correct try to create the WebClient request from here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this would help too: &lt;/SPAN&gt;&lt;A href="http://forums.silverlight.net/forums/p/116593/445906.aspx"&gt;http://forums.silverlight.net/forums/p/116593/445906.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Nov 2010 23:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dynamicmapservicelayer-load-failure/m-p/25943#M682</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-20T23:09:42Z</dc:date>
    </item>
  </channel>
</rss>

