Select to view content in your preferred language

Can't connect to local services in ArcGIS Explorer Online

2171
9
06-04-2010 06:02 AM
BrianHaren
Deactivated User
We have a number of services running on our development server (ArcGIS Server 10) and our production server (ArcGIS Server 9.3.1) that feed our web applications and other applications like the 'ArcGIS for AutoCAD' plugin our CAD group uses. 

I've been playing around with ArcGIS Explorer Online for a few days now, but can't seem to connect to any of my local services running on either server.  AGIS XO won't let me copy/paste a service URL into the 'GIS Service...' search box under the 'Add Content' dialog, and manually typing the service URL in returns a 'The services could not be accessed.' error.

Is the ability to add local services turned off in this Beta version or an I experiencing a problem unique to my setup?

The potential for this on-line application really has my company excited, but if I can't get to my local services it won't be of much use to us.

(I'm running IE8 with the most current Silverlight module installed)
0 Kudos
9 Replies
AndyMacDonald
Occasional Contributor
Adding local services is supported in the beta. It sounds like Explorer Online can't resolve your server name. Can you give me an example of the Url that you are specifying. A couple of things to try:

instead of http://<ServerName>/ArcGIS/rest/services

try:

http://<ServerName>.<DomainName>/ArcGIS/rest/services

or:

http://<ServerIP>/ArcGIS/rest/services

Andy
0 Kudos
BrianHaren
Deactivated User
Andy, thanks for the suggestions but, unfortunately, none work. 

Now, I just went to the ArcGIS.com Map site ('My Map').  I CAN load my local services in that environment using the 'http://<my server>/ArcGIS/rest/services' syntax.

Any ideas?
0 Kudos
AndyMacDonald
Occasional Contributor
Try adding a clientaccesspolicy.xml file to the root of your web server. For an example of one, see the one on arcgis.com:

http://www.arcgis.com/clientaccesspolicy.xml

A client accesspolicy file advertises that your services are accessible to silverlight applications from a particular domain (in the case of this clientaccesspolicy file, all domains).

Andy
0 Kudos
BrianHaren
Deactivated User
Andy, thanks.  I'll see if our web admins can get this figured out early next week.

Brian
0 Kudos
CharlesTilly
Deactivated User
I have both the crossdomain.xml file and the clientaccesspolicy.xml files in my root and still not working.  Is there a specific set of values I should set in my clientaccespolicy.xml file?  I'm currently just using it the way you published it, but it appears to use wildcards.  I stopped and then restarted IIS and still doesn't work.

Thoughts?

CT
0 Kudos
AndyMacDonald
Occasional Contributor
Can you post the content of your clientaccesspolicy and crossdomain files?

Also can you post examples of the Urls you are trying to connect to?

Thanks,
Andy
0 Kudos
PaulHesby
New Contributor
Was there a resolution to this issue?  I'm experiencing the same thing where I can connect to our local services from arcgis.com/map, but not from ARCGis Explorer Online.  The local URL I'm trying to connect to is: http://arcgissom:8399/arcgis/rest/services

I have both the crossdomain.xml and clientaccesspolicy.xml files (contents below):

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
  <policy>
   <allow-from http-request-headers="*">
    <domain uri="http://*"/>
    <domain uri="https://*"/>
   </allow-from>
   <grant-to>
    <resource path="/" include-subpaths="true"/>
   </grant-to>
  </policy>
</cross-domain-access>
</access-policy>
0 Kudos
AndyMacDonald
Occasional Contributor
Try including the domain of your server in the Url:

http://<server>.<domain>/arcgis/rest/services

Andy
0 Kudos
PaulHesby
New Contributor
Adding the domain didn't work.  However, I just replaced the servername (arcgissom) with the server IP and now I'm seeing my services!  :cool:
0 Kudos