I'm having trouble bringing a WMS layer into my app. I have verified that the server where the WMS service is hosted has a clientaccessploicy.xml, as well as a crossdomain.xml. However, I continue to recieve the following error on WmsLayer.Initialized:WmsLayer.InitializationFailure = "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."Any ideas? The service is valid too, I can see it in ArcCatalog...clientaccesspolicy.xml (http://geoint.lmic.state.mn.us/clientaccesspolicy.xml)crossdomain.xml (http://geoint.lmic.state.mn.us/crossdomain.xml)
void SetBaseLayerWMS()
{
try
{
BaseLayerWMS = new WmsLayer();
BaseLayerWMS.ID = "BaseLayerWMS";
BaseLayerWMS.Layers = new string[] { "met10" };
BaseLayerWMS.Url = "http://geoint.lmic.state.mn.us/cgi-bin/wmsll?";
//THIS IS WHAT I'M TRYING TO GET.
//BaseLayerWMS.Url = "http://geoint.lmic.state.mn.us/cgi-bin/wmsll?VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&BBOX=44.43,-94.08,45.44,-92.68&WIDTH=847&HEIGHT=611&LAYERS=met10&STYLES=&EXCEPTIONS=XML&FORMAT=image/jpeg&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE";
BaseLayerWMS.Initialized += new EventHandler<EventArgs>(BaseLayerWMS_Initialized);
BaseLayerWMS.InitializationFailed += new EventHandler<EventArgs>(BaseLayerWMS_InitializationFailed);
}
catch (Exception)
{
throw;
}
}