This content has been marked as final. Show 13 replies
What is your public sites url?
Do you have a crossdomain.xml file in the root of the ArcGIS Servers wwwroot directory?
If you are getting sandbox error 2048, you probably need to configure one or more crossdomain.xml files
I discuss the issue and solution here:
I looked and found no crossdomain.xml file in the web root directory. I added a crossdomain.xml into the wwwroot folder......and as of right now it looks just like it did from downloading it from the google link on the geophyter blogspot. Below is the configuration of the crossdomain.....how do I need to set it up?
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="by-content-type" /> </cross-domain-policy>
Also, is there anything I need to do in the config.xml file in the Flex project?
Robert, the URL is http://publicgis.bartowga.org/floodplainproject_2.1/
Thanks for the help,
Ok, after doing some research, it seems like I do not need a crossdomain.xml. I have read that it is only necessary to have a crossdomain file if your application in not hosted on the same server where ArcGIS Server is hosted. Therefore, since my application is on the same server as ArcGIS Server, I do not see why I would need the crossdomain. Also, I am able to view .NET applications just fine and have the maps display with the layers and all data.
What do you mean by full URL's? I thought I am using full URL's?! I copy and past the URL from the rest/services directory?
Thank you tremendously. I will try this at work tomorrow, but I can now hit the rest/services page by including the new domain.....so I am pretty sure this is going to work!! Thank you again! :)
I too am having the same issue. I have the flex viewer installed on my web server with map services on my ArcGIS Server. I was getting the Sandbox error but placed a crossdomain file on the ArcGIS server and the error went away. When I view the application through the public domain, but from within my organizations network, everything works fine. When I view from outside, I see the application but with no data and no sandbox error. I seems that the public can't access the rest urls. Can someone more fully explain the idea behind the above mentioned "full urls". I experimented with this but it doesn't seem to help. Josh, were you able to get everything working by changing the urls? Any suggestions would be appreciated. Thanks.
A few additional details regarding my question in the post above:
Web server: imsweb
ArcGIS Server : gissoc
Outside link to my site:
my crossdomain.xml placed in the wwwroot folder on gissoc
[HTML]<?xml version="1.0" ?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<allow-access-from domain="*" />
<site-control permitted-cross-domain-policies="all" />
<allow-http-request-headers-from domain="*" headers="*" />
The first part of my config file on imsweb:
<title>Calvert County Department Of Technology Services</title>
<subtitle>Test Flex Application- Eric Benson</subtitle>
<!-- stylecolors>0xCEE7F4,0x39628C,0x355D89,0x294867,0xCEE7F4,0xAFCFAF</stylecolors -->
<!-- UI elements -->
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
<widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
<widget right="20" top="55" config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
<widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
<widget left="10" bottom="60" config = "widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf" />
<map initialextent="" top="40">
<layer label="Streets" type="tiled" visible="true" alpha="1"
Your issue is the same stated above you are not using fully qualified domain names for your map services
ccg-gisoc in the outside world (outside your domain) means very little. I would talk to your IT people and see what your fully qualified domain name is something like www.ccs-gisoc.com or something. If you are the IT people and still don't know this then :( you can find your full address using a reverse IP lookup and your IP address. Just google reverse IP lookup.
But my ArcGIS Server is an internal server, locked down and not open to the outside. There is no full address for this server. I thought this was why a crossdomain file is needed. How are my ArcGIS Server built maps, which are hosted on the web server, hitting my rest services? Are they using a proxy?
You need to setup a reverse proxy server then.
How are my ArcGIS Server built maps, which are hosted on the web server, hitting my rest services? Are they using a proxy?
They aren't they are using the SOAP endPoint, different completely.