Select to view content in your preferred language

Could not connect to Portal HTTP request error

4015
9
10-04-2012 01:02 PM
StephanieSnider
Frequent Contributor
[ATTACH=CONFIG]18210[/ATTACH]

I'm on Windows Server 2008 R2 Standard.  It seems to be locked down like Fort Knox compared to Server 2003.   I'm creating my first web app in ArcGIS Viewer for Flex 3.0.  Under the Basemaps and operation layers > Basemaps, none of the ESRI basemaps are showing up.  The tab says [object Object].  The error I see is "Could not connect to Portal.  HTTP request error".   I have allowed the sites "www.esri.com" and "www.arcgis.com" through the Trusted Sites in the Internet Explorer security options.  But it still doesn't work.  Any suggestions?
Tags (2)
0 Kudos
9 Replies
RobertScheitlin__GISP
MVP Emeritus
Stephanie,

   Have you tried to run App Builder as administrator (Meaning right clicking the icon on your computer and choosing "Run as administrator")? A better workflow would be install App Builder on your local machine (not server) and get your app fully configured the way you want then copy the site from your C:\inetpub\wwwroot\flexviewers\YOURAPPNAME folder over to the server.
StephanieSnider
Frequent Contributor
I just tried to run the Flex Viewer as Administrator, but have the same problem.  I will try the workaround you suggested.  Creating it on my computer, then copying it over to the server.  Still, I feel like there is just some small port or permission not open on the server that could fix it.  And if the Flex Viewer can't get out to the ESRI basemaps....what else is being blocked that might be important in the future for ArcGIS Server functionality.  Thanks for your help.
0 Kudos
StephanieSnider
Frequent Contributor
When I install ArcGIS Viewer for Flex on my local machine, I have to specify my own computer's IP address for the web server base folder URL.  If I then copy a created site from my computer to the server, isn't the IP address information from my computer going to cause the app not to work on the server? 

Regardless, I can't install Flex Viewer on my computer. It doesn't like my web base folder settings.  Do I need to enable IIS on my personal computer in order to create Flex maps?
0 Kudos
DasaPaddock
Esri Regular Contributor
The "Web Server Base Folder" is where the Builder will write the Viewer files to disk. This can be on your local machine or on a mapped drive as long as you have write access.

The "Web Server Base Folder URL" is whatever url can be used to access the Viewer files from above via http. This is used in the Builder's Preview tab.

Neither of these settings are stored inside of a Viewer itself so the Viewer's files can be moved to another web server and still work.
0 Kudos
StephanieSnider
Frequent Contributor
[ATTACH=CONFIG]18215[/ATTACH]
How can I have a web server base folder URL if I don't have IIS installed?  See my flex viewer settings for web server.  I have write permission to this folder.
0 Kudos
DasaPaddock
Esri Regular Contributor
You can use any web server software. Apache and Nginx are two popular alternatives to IIS.

http://en.wikipedia.org/wiki/Apache_HTTP_Server
http://en.wikipedia.org/wiki/Nginx
0 Kudos
DasaPaddock
Esri Regular Contributor
This page has links on how to install IIS if you'd like to use IIS:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/System_requirements/01m30000002...
0 Kudos
RachelS
Frequent Contributor
Stephanie,
Did you mange to get this resolved, as I am having the same problem.
Mines seems to only have started when I set the MapSwitcher <layerlist visible="false"/>
then the maps disappear and I get an error "Could not connect to portal". Both buttons More and Basemaps disappear on the viewer but I was just hoping to get rid of the More button so I could use a Layer list.
When I change it back to "True" the maps reappear although I still have the error "Could not connect to Portal".
The "More" button reappears but the Basemaps button does not.

The viewer was working fine before I did this. I even tried creating a new viewer (using Flexviewer 3) but the same issue occurs.

any ideas I'd be grateful.
Rachel
0 Kudos
AvramPrimack
Deactivated User
This page has links on how to install IIS if you'd like to use IIS:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/System_requirements/01m30000002...



The instructions on this page do not include or seem to work with Windows 2012 R2.
Right clicking on the install folder for flex does not bring up an option to install as administrator.
Attempting to change file permissions does not result in a change in file permissions.
After watching the online seminar with Heather and Bjorn??? I had the impression this would be easy.... three days later still can't get past installing Flex viewer. Are there instructions for windows 2012? I can't seem to find any.... help appreciated in advance.....
0 Kudos