Select to view content in your preferred language

Error in Silverlight Application

2881
6
01-11-2011 08:56 PM
by Anonymous User
Not applicable
Original User: ecarson

Hi,

I'm getting "A security exception occured whilst trying to connect to the REST endpoint. Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application."

When a silverlight application via an intranet through a dmz outside of our intranet (do not understand the complexity of the intranet access through the dmz).

I have both a clientaccesspolicy.xml and crossdomain.xml (attached).

I believe both xml doc are as open as can be. The problem occurs when trying to access an image service only, map services come through fine.

Any help is appreciated,
Elliott
0 Kudos
6 Replies
by Anonymous User
Not applicable
Original User: jenniferdnery

Were you able to figure this out? If not, you can look at this related thread: http://forums.esri.com/Thread.asp?c=158&f=2455&t=281207
0 Kudos
dotMorten_esri
Esri Notable Contributor
Fiddler will often help you better understand what is going on. See this blogpost:
http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
0 Kudos
by Anonymous User
Not applicable
Original User: ecarson

Thanks for the reply guys,

Unfortunatley those suggestions haven't helped. Plus I'm unable to install fiddler on the comptuers.

I'm able to see the clientaccesspolicy.xml from both internal and external facing computers which is located in the root directory https://domainname/clientaccesspolicy.xml (external).

Any help is appreciated.

Regards,
Elliott
0 Kudos
dotMorten_esri
Esri Notable Contributor
See if you can't somehow get a PC up and running with Fiddler. Without it, it will all only be guesswork. With it, I'll give it 99% chance that it will pinpoint exactly what the problem is.
0 Kudos
by Anonymous User
Not applicable
Original User: ecarson

Thanks for the replys Nielsen,

I've installed fiddler and at the moment just trying to look at the image via the rest/services java script. When I call the Services Directory and I click on the image service i get the following

HTTP Error 403.4 - Forbidden: SSL is required to view this resource.
Internet Information Services (IIS)

when I add the "s" to http I get the desired text output, I then click the ArcGIS Javascript same error occurs as above

HTTP Error 403.4 - Forbidden: SSL is required to view this resource.
Internet Information Services (IIS)

I add the "s" again and click yes to the security information for both secure and non secure items and I get the following page shown in attachments.

With the following errors as noted in the bottom left corner of the page.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Thu, 27 Jan 2011 03:14:09 UTC

Message: Could not load 'dojox.gfx.vml'; last tried 'http://serverapi.arcgisonline.com/jsapi/arcgis/1.2/js/dojo/dojox/gfx/vml.js'
Line: 16
Char: 5374
Code: 0
URI: https://serverapi.arcgisonline.com/jsapi/arcgis?v=1.2

Message: Could not load 'esri.map'; last tried 'http://serverapi.arcgisonline.com/jsapi/arcgis/1.2/js/esri/map.js'
Line: 16
Char: 5374
Code: 0
URI: https://serverapi.arcgisonline.com/jsapi/arcgis?v=1.2

Message: Exception thrown and not caught
Line: 16
Char: 17035
Code: 0
URI: https://serverapi.arcgisonline.com/jsapi/arcgis?v=1.2

Of which fiddler output is also attached. Bascially the fiddler output is saying that some process is forbidden and thats all I get.

Any help is appreciated.

Regards,
Elliott
0 Kudos
ElliottCarson
Occasional Contributor
Resolved the rest point issue. Because the external page is going through https, I had not checked the Required secure channel (SSL) in the virtual directory --> properties --> directory security --> secure communications (edit) in IIS. Also make sure that you are referencing the domain of your map/image service and not the server name.
0 Kudos