Cannot view my app outside the local intranet

2568
13
11-17-2010 11:55 AM
JoshuaCoates
New Contributor
Can anyone explain why it is that I cannot view my application outside of the local intranet? I have some flex apps that are setup on a local public server with several apps on it. All of the .NET apps can be viewed outside the intranet and the data all appears fine. When I try going to one of the Flex apps from outside the intranet, I am able to see the UI and all of the widgets open fine, however, none of the map and data are displayed?! Does anyone know why this is?

Also, if anyone can look at my other post "Problem deploying Flexviewer app" I could really use some input on this as well. I can not figure out why my app appears sometimes and other times....it is just a white screen and I have to hit refresh a lot of times and then it will randomly sometimes work?!

Thanks for any input anyone can give, I would really appreciate it!

Josh C.
Tags (2)
0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus
Joshua,

   What is your public sites url?

Do you have a crossdomain.xml file in the root of the ArcGIS Servers wwwroot directory?
0 Kudos
JamesOBrien
New Contributor
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:

http://geophyter.blogspot.com/2010/11/flex-sandbox-security-error-2048.html
0 Kudos
JoshuaCoates
New Contributor
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,

Josh C.
0 Kudos
JoshuaCoates
New Contributor
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.
0 Kudos
DasaPaddock
Esri Regular Contributor
You need to use full urls for the layers in your config instead of just:
http://publicgis/PublicGISserver/rest/services/2010_CrossSections/MapServer
0 Kudos
JoshuaCoates
New Contributor
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?
0 Kudos
DasaPaddock
Esri Regular Contributor
It needs to include the domain for outside users or their DNS lookup will fail:
http://publicgis.bartowga.org/PublicGISserver/rest/services/2010_CrossSections/MapServer
0 Kudos
JoshuaCoates
New Contributor
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! 🙂


Josh C.
0 Kudos
LukePecoraro
New Contributor
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.

Eric
0 Kudos