cannot connect to rest endpoint

3045
8
04-23-2010 11:10 AM
ChrisBradberry
Occasional Contributor
Hey,
I created a new web app using the ESRI showcase map application template in Expression Blend 3.  When I changed the rest service to the service on my server, I got the "A security exception occured while trying to connect to the rest endpoint..." 

There is a valid crossdomain.xml and clientaccesspolicy.xml in the webroot.  I have another application that uses the same service and it works.  I am running the app on the same server that runs the services, so it really shouldn't need the clientaccesspolicy.

Is there another setting that I am missing? 

Thanks, Chris
http:\\navigator.state.or.us\LocatOR\
0 Kudos
8 Replies
ZachEdwards
New Contributor III
Chris, I am having the same issue but i have not implemented the cross domain file. Can you point me to some documentation on how to do this or could you send along the cross domain file?
0 Kudos
ChrisBradberry
Occasional Contributor
Here is the crossdomain.xml -- it is not a good idea to leave the uri as http://*  but to put int the servers that you are hitting.  The clientaccesspolicy.xml is the same file.
Chris

<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
  <cross-domain-access>
  <policy>
  <allow-from http-request-headers="*">
  <domain uri="*" />
  <domain uri="http://*" />
  </allow-from>
  <grant-to>
  <resource path="/" include-subpaths="true" />
  </grant-to>
  </policy>
  </cross-domain-access>
  </access-policy>
0 Kudos
AgatinoLa_Rosa
New Contributor
I have a silverlight application in VS2008 that was showing fine my service until I enabled the security settings in Manager. Right after I have applied the disabling procedures because that was just a test. This is what I have now: I can see the rest service directory, I can see the service in ArcCatalog and Manager, I can see the service if used in a web application generated through the Manager, I cannot see the service (any rest service) using VS2008.

I have reset all permissions, rerun the web application configuration, followed the forum, I guess the rest directory got corrupted somehow. Any else to try before I reinstall ArcGIS Server 9.3.1? Thanks.
0 Kudos
dotMorten_esri
Esri Notable Contributor
When you say its the same server, is it also the same port number? And are you using the same name to point to the server? (ie localhost, servername, www.servername.com or IP number are all considered different even though they point to the same physical server).
0 Kudos
AgatinoLa_Rosa
New Contributor
Yes, everything else is the same as before, including server settings, port, and static IP to connect to the server. The only changes I have made were the ones associated with enabling security settings and disabling security settings. Thanks.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Might be an issue with the REST cache. Try cleaning the cache (http://<your server>/ArcGIS/rest/admin/cache/clear)
0 Kudos
AgatinoLa_Rosa
New Contributor
Done that earlier. Which port should be enabled beside port 80 and TCP 5151? Thanks
0 Kudos
DarinaTchountcheva
Occasional Contributor II
Hi alarosa,

I had the same problem.
I have two kind of Silveright applications:

1) Secured applications that are using Windows Authentications
2) Non-Secured applications that are using the Anonymous Logon to run the website where the Silverligh application is hosted.

For 1) I resolved the problem by following the steps in this thread (see my reply):

http://forums.arcgis.com/threads/5985-Secured-map-service-doesn-t-work-in-VS-2010.

Now 2) was a real pain! What I ended up doing is Adding additional instance to the ArcGIS server (suggested by ESRI support), and leaving the check on the Anonymous User in Direcory Security for Rest and Services directory for that instance. Then in the applications I accessed the services using the new instance:

http://servername/ArcGISNew/rest/services/....

In my case this is working only if I use the server alias name (and not working with the real server name). I am not sure why.

And before adding another instance, you can also try using the IP address, to see if you will be able to access the services.

Oh, and don't forget to add the Anonymous Logon user to the group that is allowed to see the services with no sensitive content.

Good Luck!
0 Kudos