Issues using 3.1

5174
30
12-17-2012 11:33 AM
KennethLyons
Emerging Contributor
I have recently downloaded v3.1 to test out.  I've attempted to use the compiled and uncompiled versions and both have given me similar results.  I'm not sure if there is something different that I need to do in this version, but previously it was more or less plug and play. 

I've attached a copy of the error I'm recieving. 

If anyone can help I'd appreciate it.

Thanks
Tags (2)
0 Kudos
30 Replies
HeatherGonzago
Esri Contributor
I have recently downloaded v3.1 to test out.  I've attempted to use the compiled and uncompiled versions and both have given me similar results.  I'm not sure if there is something different that I need to do in this version, but previously it was more or less plug and play. 

I've attached a copy of the error I'm recieving. 

If anyone can help I'd appreciate it.

Thanks


One other thing I forgot to mention before was whether or not you were behind a firewall? I'm wondering if you are actually being able to connect to the services on ArcGISOnline which is what we are pulling our basemaps? Can you access http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?

What do you have set as your portalurl? Try removing any reference to a URL for this.


You also mentioned that you get the problem in App Builder as well. What services are you trying to access before accessing the finished web application?
0 Kudos
KennethLyons
Emerging Contributor
Heather,
yes, I am able to access the link you provided. 

I'm not sure what portal URL I have set.  It should be whatever it was set to be when I downloaded it, since I haven't edited any of the code yet.

Yes I get the same error when I attempt to comile the source code in Flash Builder, but again, I haven't made any changes so whatever is referenced in the download, is what is trying to be accessed when I compile it in FlashBuilder.
0 Kudos
HeatherGonzago
Esri Contributor
Heather,
yes, I am able to access the link you provided. 

I'm not sure what portal URL I have set.  It should be whatever it was set to be when I downloaded it, since I haven't edited any of the code yet.

Yes I get the same error when I attempt to comile the source code in Flash Builder, but again, I haven't made any changes so whatever is referenced in the download, is what is trying to be accessed when I compile it in FlashBuilder.


Are you able to install and create a new web application in App Builder? If so, what basemap are you specifying under the Maps tab? Can you click on Settings > Advanced Settings > and remove whatever URL may be set for the Portal setting?
0 Kudos
KennethLyons
Emerging Contributor
Heather,
I'm not using App Builder.  I'm not even entirely sure what that is.  I'm using Adobe Flash Builder and I haven't changed anything in the source code since I downloaded it.  I have tried to use links to other web services since this error appreared, but I've gotten error no matter what I use.  I'm just not sure why I'm getting this error.  I followed the same process that I have used in the past to create the viewer.
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you try setting this attributes on the map tag in your config.xml to false:

addarcgisbasemaps="false"
0 Kudos
HeatherGonzago
Esri Contributor
Heather,
I'm not using App Builder.  I'm not even entirely sure what that is.  I'm using Adobe Flash Builder and I haven't changed anything in the source code since I downloaded it.  I have tried to use links to other web services since this error appreared, but I've gotten error no matter what I use.  I'm just not sure why I'm getting this error.  I followed the same process that I have used in the past to create the viewer.


Without knowing your network system setup on your end, I am guessing that it is blocking the arcgis.com portal that we have the portalurl set to. If you downloaded the source code and are running it directly in FB without changing a thing, and still getting this error, something is blocking this request. This is where I mentioned it would be useful to run this through something like Fiddler or Firebug so you could see exactly which request it is erroring out on.

One thing you could try would be to go into the config.xml file change addarcgisbasemaps="true" to "false". This turns off the basemap switcher. These basemaps are accessed from the default basemaps accessible from the arcgis.com default portal.

Do you still get the error? If not, this will give us an indication of where this is coming from.
0 Kudos
KennethLyons
Emerging Contributor
Heather,
Just switched the addarcgisbasemaps from "true" to "false".  Got no error upon compiling it.  So does this mean that there is an error in the basemap somewhere, maybe an .as or .mxml somewhere?  Because I use the basemap window in 3.0 with no issue so that's the only solution I can think of.
0 Kudos
HeatherGonzago
Esri Contributor
I'm still thinking that the issue is with your network blocking accessing to the arcgis.com portal. Are you able to, in a browser, access arcgis.com and specify an item # to get to a basemap? e.g. http://arcgis.com/home/item.html?id=f2498e3d0ff642bfb4b155828351ef0e.

I still think the next best thing you should do is to run the app in an http traffic debugger, this would tell you specifically where it could be getting hung up on.

This is a small screen capture of what Firebug shows when launching the Flex Viewer and having it request the portal items for the basemap gallery.

[ATTACH=CONFIG]20037[/ATTACH]
0 Kudos
KennethLyons
Emerging Contributor
Heather,
Still no problems accessing map backgrounds on Arcgis.com.  And no issues accessing them in previous versions of Flex.

I don't have a http traffic bugger, and I probably won't be able to install one since I'm running on a government network/computer.
0 Kudos