Select to view content in your preferred language

Cannot load data from server.

1531
4
01-12-2012 06:05 AM
NicoleShi
Deactivated User
I am having the exact issue defined in the article in the Resource Center here.

When I paste the URL of my Resource in the Browse function in the Silverlight Viewer I get the error message "Connection Error: Unable to connect to (URL)".

I went through the steps numerated in the above article but have not made any progress.

My ArcGIS Services Directory works when I navigate to the http://<host>/arcgis/rest/services URL, and the REST endpoint is available.

My Silverlight application and data (services) are on the same server and domain so I shouldn't need a clientaccesspolicy.xml file.

I don't know what they mean by "InitializationFailure event on the layer" in the fourth solution, where would I find this?

Finally I used Silverlight Spy while trying to browse to the resource but the output didn't report anything even with the output trace level at verbose.

I've spent all day on this one, any pointers would be greatly appreciated.

Thanks,

-Jon
0 Kudos
4 Replies
DerekLaw
Esri Esteemed Contributor
Hi Jonathan,

Please review the contents of this Silverlight Dev team blog post:
Troubleshooting blank layers

Hope this helps,
0 Kudos
NicoleShi
Deactivated User
This is exactly the problem I am having. When I use Fiddler2 the same clientaccesspolicy.xml and crossdomain.xml errors come up.

I added a clientaccesspolicy.xml file to the server's wwwroot folder but when I try to browse to the resource in the Silverlight Viewer it looks for the clientaccesspolicy.xml at http://servername.domain.com:8399/clientaccesspolicy.xml when it is actually at http://servername.domain.com:81/clientaccesspolicy.xml. It seems that what I put in the clientaccesspolicy.xml doesn't matter because it never gets to the point of reading it.

Any idea how I can get the Silverlight Viewer to look on port 81 or how to get my .xml on port 8399?

Thanks,

-Jon
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Jonathan,

Any idea how I can get the Silverlight Viewer to look on port 81 ...


Did you specify port 81 when you installed the ArcGIS Viewer for Silverlight? If not, can you try uninstalling, then re-installing the Silverlight Viewer to the correct port? You would specify the port # as defaults for both the Builder and Apps folders.

Hope this helps,
0 Kudos
NicoleShi
Deactivated User
I called ESRI Support and found out that I had to copy the clientaccesspolicy.xml into C:\Program Files (x86)\ArcGIS\Server10.0\java\manager\web_output instead of C:\Inetpub\wwwroot because I'm using the ArcGIS Server for Java.

Put the .xml in the right place and it worked.

Thanks,

-Jon
0 Kudos