Select to view content in your preferred language

Can't access flex viewer applications from computers outside wi-fi area

2374
8
Jump to solution
03-19-2014 04:22 AM
RichardGeoghegan
Deactivated User
I have created some flex viewer applications which I wish to make viewable to users anywhere in the world via the internet. Originally the applications looked like the following portnumber/flexviewers/application name. Our IT department registered a sub domain name. I opened port 80 as well as 6080. After this I installed the ArcGIS Web Adapter. I checked the IIS requirements from the following website and I ensured that the relevant extensions were turned on; http://resources.arcgis.com/en/help/install-guides/arcgis-server-web-adaptor-iis/10.1/index.html#/Wi...

I also ensured Microsoft .NET Framework 3.5 was installed. For the installation of the web adapter a default site was selected and I didn't change anything in terms of cross domain policy files. I registered the GIS server with the web adapter which includes the layers that should be visible in the flex viewer.
Next I edited the configuration xml of one of the applications placing the new rest urls where appropriate along with widget edits.
Using our organisations wi-fi there is no problem accessing the applications from any computer.
The problem is when we try from an external computer. The application loads, however the layers do not. I received the attached error.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Richard,

   Here are some steps I would take:

  1. Attempt to use the Public url to the website http://somedomain.com and add your /arcgis/rest/services/ to that url and see if you can access the rest endpoint from the public url.

  2. If you can do that then just replace your internal machine name "http://geosal-server" with that.

View solution in original post

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Richard,

   So in your main config.xml you replaced all your urls that had the internal server name or IP with the new fully qualified domain name of your server right?
0 Kudos
RichardGeoghegan
Deactivated User
Yes, for the layer types in the configuration file I have replaced our internal server name with the new server domain name.
I also have the following crossdomain.xml in wwwroot folder.

<?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>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   It is likely something simple. Can you attach your main config.xml in a zipfile?
0 Kudos
RichardGeoghegan
Deactivated User
Robert, here it is.
0 Kudos
RayCrew
Frequent Contributor
I tried to see the map services listed in your confiq file (http://geosal-server/ucd/rest/services/Land_use_2006/Land_Use_2006/MapServer) and cannot.

Are you sure that URL is correct, correctly registered, and open to the public web?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   That does not seem like it is the correct public accessible url. It would normally look like http://somedomain.com or .org or .net not just a machine name. What is the url that you use to access the web app because most of the time the url (at least the begining of it) is the usual url begining that your rest urls would use.
0 Kudos
RichardGeoghegan
Deactivated User
OK it appears I had just installed the web adapter just to connect to the server.

When I was installing the web adapter, the default website (port) was chosen. In IIS manager this appears to be the site through which flex viewer content is held. The IT department of our organisation registered a sub-domain name for us. Should I add this as a new site with IIS manager on the computer where I'm creating my applications and go back and re-install the web adapter?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   Here are some steps I would take:

  1. Attempt to use the Public url to the website http://somedomain.com and add your /arcgis/rest/services/ to that url and see if you can access the rest endpoint from the public url.

  2. If you can do that then just replace your internal machine name "http://geosal-server" with that.

0 Kudos