Issues using 3.1

5210
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
RhettZufelt
MVP Notable Contributor
You might check with your IT folks.  Our "government" network only allows "approved" traffic debuggers as given to me by the IT department.

At first, they just captured my info for me, but got tired of it.

R_
0 Kudos
HeatherGonzago
Esri 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.


"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."

This is why I'm thinking you don't have access. Many times when on an internal/private network where there is more limited access to particular sites you won't be able to gain access to public sites like this. By default the portal url goes to https://www.arcgis.com. If this domain is blocked, which the error message indicates it is, than you won't be able to get access to the underlying portal basemaps.

Another thing you could try would be to instead of using the addarcgisbasemaps="true", set this to "false" and see if you are able to use basemaps in your application similar to how prior versions of the viewer accessed them.

For example, can you access these services by switching out the xml to read this instead

<basemaps>
<layer label="Streets" type="tiled" visible="true" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<layer label="Aerial" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</basemaps>


If you can access the service than we know that it is something on your end with how you are able to access this portal site outside of your organization.
0 Kudos
DasaPaddock
Esri Regular 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.


Are you able to run Firefox? If you can, then you can try using the HttpFox or Firebug add-ons.
0 Kudos
KennethLyons
Emerging Contributor
Heather,

No problem with using individual map layers in the basemaps section of the config.xml. 

I don't have to do this in version 3.0 though, my config.xml for 3.0 says addarcgisbasemaps="true".  I'm not understanding what has changed in 3.1 to give me this error.
0 Kudos
HeatherGonzago
Esri Contributor
Heather,

No problem with using individual map layers in the basemaps section of the config.xml. 

I don't have to do this in version 3.0 though, my config.xml for 3.0 says addarcgisbasemaps="true".  I'm not understanding what has changed in 3.1 to give me this error.


OK I see where the issue is coming from. In 3.0, the default portal url pointed to http://www.arcgis.com whereas in 3.1 it is pointing to https://www.arcgis.com. This is probably why you are not able to access it if you are in a more secure environment.

One thing you could do to test this out is to use http://www.arcgis.com instead. All you would need to do is switch this out in the config.xml to read portalurl="http://www.arcgis.com".

Try this out now and see if it works for you.
0 Kudos
KennethLyons
Emerging Contributor
Heather,

I think you might be correct with the difference being https and http because I tried to access them both in my browser and the https gave me a certificate error.  The catch I'm having now, in order to test this out, is that I don't see "portalurl"  in my config.xml.  Could this be located in another file location?  I see "portalurl" alot on the PortalBasemapAppender.as but no specific URLs are referenced.
0 Kudos
SarthakDatt
Frequent Contributor
You would have to set the portalurl as an attribute of the map tag:

<map addarcgisbasemaps="true" portalurl="http://www.arcgis.com"/>
0 Kudos
KennethLyons
Emerging Contributor
Thank you for everyone's help so far.  But I'm still unable to make this work.  I just tried to add the portalurl and it didn't seem to make a difference.  That specific URL has to be referenced somewhere else.  Any idea where?
0 Kudos
HeatherGonzago
Esri Contributor
Thank you for everyone's help so far.  But I'm still unable to make this work.  I just tried to add the portalurl and it didn't seem to make a difference.  That specific URL has to be referenced somewhere else.  Any idea where?


Are you able to show us the config.xml file you are working with that's causing the issue? Once I changed my portalurl it displays the requests to access the basemaps using this instead of https (I was able to determine this using Firebug).
0 Kudos
KennethLyons
Emerging Contributor
Here is the config.xml I'm using.

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>ArcGIS Viewer for Flex</title>
    <subtitle>a configurable web mapping application</subtitle>
    <logo>assets/images/logo.png</logo>
    <style>
        <colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />
    <bing key="AouPb_FO7TB3yx9VQHWgq29KsWogBYGgnwBBHr8sHdalhXhy3kka1rCWH3tPJ9KK" />

    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="0" bottom="0"   config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>

    <map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40"  addarcgisbasemaps="true" portalurl="http://www.arcgis.com">
        <basemaps>
            <layer label="Topo Maps"      type="tiled" visible="true" alpha=".8"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>                
     <layer label="World Imagery" type="bing" style="aerialWithLabels" visible="false" />      
     <layer label="Street Map"   type="osm" visible="false" />             
            <layer label="PA Imagery"    type="tiled" visible="false" alpha=".8"
                   url="http://146.186.163.133/ArcGIS/rest/services/AerialPhoto_Color2003-2006/MapServer"/>  

        </basemaps>
        <operationallayers>
            <layer label="Demographics" type="tiled" visible="false" alpha="0.5"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServ...">
                <sublayer id="1" popupconfig="popups/PopUp_Demographics_BlockGroups.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_Demographics_Tracts.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_Demographics_Counties.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_Demographics_States.xml"/>
            </layer>
            <layer label="Fires" type="feature" visible="false" alpha="1.0"
                   popupconfig="popups/PopUp_Fires.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>
        </operationallayers>
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Louisville Police" left="590" top="280"
                icon="assets/images/i_police.png"
                config="widgets/Query/QueryWidget_Louisville_PoliceStations.xml"
                url="widgets/Query/QueryWidget.swf"/>
        <widget label="Search" left="80" top="280"
                icon="assets/images/i_search.png"
                config="widgets/Search/SearchWidget_Louisville.xml"
                url="widgets/Search/SearchWidget.swf"/>
        <widget label="Earthquakes (GeoRSS)" left="410" top="280"
                icon="assets/images/i_rss.png"
                config="widgets/GeoRSS/GeoRSSWidget.xml"
                url="widgets/GeoRSS/GeoRSSWidget.swf"/>
        <widget label="Draw" left="60" top="400"
                icon="assets/images/i_draw2.png"
                config="widgets/Draw/DrawWidget.xml"
                url="widgets/Draw/DrawWidget.swf"/>
        <widget label="Print" left="390" top="400"
                icon="assets/images/i_print.png"
                config="widgets/Print/PrintWidget.xml"
                url="widgets/Print/PrintWidget.swf"/>

        <!--
        <widget label="My first widget"
                icon="assets/images/i_widget.png"
                config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
                url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
        -->
    </widgetcontainer>
   
</configuration>
0 Kudos