Select to view content in your preferred language

Open Flex site to public

3876
43
02-10-2011 01:26 PM
ChrisOwen
Occasional Contributor
I spke too soon, I was not able to access the flex site outside of the network.  I will add the cross domain code in the next thread...

My flex site is ready for public consumption.
Does anyone have guidance or hints on how to make the flex site consumable from a public facing IIS server?
I have the bin-release folder ready to go, I just don't know what is needed from the outward facing IIS server.  Do I need to create a crossdomain.xml?
I can provide more info if needed...
Thanks!
Chris
Tags (2)
0 Kudos
43 Replies
ChrisOwen
Occasional Contributor
Here is the code I used for the cross domain.xml

<?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>


Do I have to explicitly define the domain?

Thanks,
Chris
0 Kudos
JonFisher
Emerging Contributor
Your crossdomain.xml file looks right as is, you should just need to put it in your webroot on the server.

That being said, we are having a trouble with the data extract widget where it's trying to access the crossdomain.xml file on our internal domain name rather than external DNS name, and we have not yet figured out how to fix that (see http://forums.arcgis.com/threads/23045-DataExtractWidget for details)

EDIT: also, make sure that the file name is crossdomain.xml rather than "cross domain.xml" (with a space) as you listed it below.
0 Kudos
ChrisOwen
Occasional Contributor
Thanks for the reply Jon.
The file name is named correctly and it sits on the wwwroot of the GIS Server box...still nothing.

The site is viewable (widgets, etc) but the data just does'nt display.  I am going to look at the GIS Server settings, but any ideas are welcome.

Chris
0 Kudos
JonFisher
Emerging Contributor
Does any data display (e.g. base maps, ESRI operational layers) but not your own? Or do no map services ever display? It helps to be able to figure out if it's a problem with your map services or the application itself. Post your config.xml file and maybe we can spot something wrong there.
0 Kudos
ChrisOwen
Occasional Contributor
All of the data comes form our SDE.
Attached is the config.XML
0 Kudos
JonFisher
Emerging Contributor
the URLs pointing to your map services are incorrect. "http://gis/ArcGIS/rest/services/GISBaseMap_wwcOrtho062/MapServer" will not resolve properly. You need to replace "gis" with the DNS name of the server (e.g. gis.yourcompany.com).

An easy test: if you can't load the URL in your config file in a browser (e.g. the one listed above), it won't work in the flex map either.
0 Kudos
ChrisOwen
Occasional Contributor
Ah-Ha, let me give that a try...
0 Kudos
ChrisOwen
Occasional Contributor
I changed the rest services in the config file to have the complete DNS name, but it still doesn't work from outside the network (it still works internally, so no issue there).

Still trying to fugure this out...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   What is the url? I will be glad to run a http diagnostic on your site and tell you what is going wrong.
0 Kudos