<?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 A security exception occurred while trying to connect to the 'WMS' service in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-security-exception-occurred-while-trying-to/m-p/611171#M15676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer my previous question in the link given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/858968-re-issue-in-accessing-wms-layers-in-arcgis-api-31-for-silverlight?commentID=858968&amp;amp;et=watches.email.thread#comment-858968"&gt;https://community.esri.com/message/858968-re-issue-in-accessing-wms-layers-in-arcgis-api-31-for-silverlight?commentID=858968&amp;amp;et=watches.email.thread#comment-858968&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am trying to add WMS layer published on GeoServer using the code given below&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;var wmsLayer = new WmsLayer()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ID = "highways:sp_health_dh",&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Url = "&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftnssdi.tn.gov.in%2Fgeoserver%2Fwms" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://tnssdi.tn.gov.in/geoserver/wms&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SkipGetCapabilities = false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Version = "1.1.1",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Opacity = 0.7,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;DisplayName = "District Hospitals",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Layers = new string[] { "highways:sp_health_dh" }&lt;BR /&gt;};&lt;BR /&gt;map.Layers.Add(wmsLayer);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;When I try to run the application, received the following error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Unhandled exception at line 159, column 14 in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A60414%2Fepathaigis.aspx" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://localhost:60414/epathaigis.aspx&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;0x800a139e - JavaScript runtime error: Unhandled Error in Silverlight Application&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Code: 4004&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Category: ManagedRuntimeError&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Message: System.Security.SecurityException: A security exception occurred while trying to connect to the 'WMS' service. Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application. If not, use a proxy page (handler) to broker communication. ---&amp;gt; System.Security.SecurityException ---&amp;gt; System.Security.SecurityException: Security error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.BrowserHttpWebRequest.&amp;lt;&amp;gt;c__DisplayClassa.&amp;lt;EndGetResponse&amp;gt;b__9(Object sendState)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.AsyncHelper.&amp;lt;&amp;gt;c__DisplayClass4.&amp;lt;BeginOnUI&amp;gt;b__0(Object sendState)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;--- End of inner exception stack trace ---&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;--- End of inner exception stack trace ---&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at ESRI.ArcGIS.Client.Layer.Initialize()&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;To resolve the error, I added crossdomain.xml in the root folder where the layers are published. Still I am getting the same error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;How can I resolve the above issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2019 09:22:12 GMT</pubDate>
    <dc:creator>VinayS</dc:creator>
    <dc:date>2019-07-11T09:22:12Z</dc:date>
    <item>
      <title>A security exception occurred while trying to connect to the 'WMS' service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-security-exception-occurred-while-trying-to/m-p/611171#M15676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer my previous question in the link given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/858968-re-issue-in-accessing-wms-layers-in-arcgis-api-31-for-silverlight?commentID=858968&amp;amp;et=watches.email.thread#comment-858968"&gt;https://community.esri.com/message/858968-re-issue-in-accessing-wms-layers-in-arcgis-api-31-for-silverlight?commentID=858968&amp;amp;et=watches.email.thread#comment-858968&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am trying to add WMS layer published on GeoServer using the code given below&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;var wmsLayer = new WmsLayer()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ID = "highways:sp_health_dh",&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Url = "&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftnssdi.tn.gov.in%2Fgeoserver%2Fwms" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://tnssdi.tn.gov.in/geoserver/wms&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SkipGetCapabilities = false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Version = "1.1.1",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Opacity = 0.7,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;DisplayName = "District Hospitals",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Layers = new string[] { "highways:sp_health_dh" }&lt;BR /&gt;};&lt;BR /&gt;map.Layers.Add(wmsLayer);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;When I try to run the application, received the following error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Unhandled exception at line 159, column 14 in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A60414%2Fepathaigis.aspx" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://localhost:60414/epathaigis.aspx&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;0x800a139e - JavaScript runtime error: Unhandled Error in Silverlight Application&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Code: 4004&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Category: ManagedRuntimeError&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Message: System.Security.SecurityException: A security exception occurred while trying to connect to the 'WMS' service. Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application. If not, use a proxy page (handler) to broker communication. ---&amp;gt; System.Security.SecurityException ---&amp;gt; System.Security.SecurityException: Security error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.BrowserHttpWebRequest.&amp;lt;&amp;gt;c__DisplayClassa.&amp;lt;EndGetResponse&amp;gt;b__9(Object sendState)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.AsyncHelper.&amp;lt;&amp;gt;c__DisplayClass4.&amp;lt;BeginOnUI&amp;gt;b__0(Object sendState)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;--- End of inner exception stack trace ---&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;--- End of inner exception stack trace ---&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at ESRI.ArcGIS.Client.Layer.Initialize()&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;To resolve the error, I added crossdomain.xml in the root folder where the layers are published. Still I am getting the same error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;How can I resolve the above issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:22:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-security-exception-occurred-while-trying-to/m-p/611171#M15676</guid>
      <dc:creator>VinayS</dc:creator>
      <dc:date>2019-07-11T09:22:12Z</dc:date>
    </item>
  </channel>
</rss>

