Select to view content in your preferred language

New 10.1 Server and now popups do not work in Flex

2129
9
Jump to solution
03-19-2013 12:56 PM
LuciHawkins
Frequent Contributor
Hi,

We have a new server that has ArcGIS Server 10.1 SP1, Desktop 10.1 (no SP1), SQL 2008 R2, and Windows Server 2008 R2, IIS7, and Esri Web Adaptor installed on it.  We created our maps, registered the data with Server and published the maps as services.  We have the "Site (root)" directory security set to "Public, available to everyone".  We can see the REST endpoints at http://fwbgis/arcgis/rest/services  so the Web adaptor is working.  (No, the site is not open to the general public, only to those on our network)

I tested our old version of FlexViewer 3.0 that was configured to work with our 10.0 services on our old server.  Changed all of the rest http://.... to point to the new server and everything works EXCEPT popups.  All of the services are Dynamic. 

I downloaded the uncompiled FlexViewer 3.1 and started from scratch.  Everything works EXCEPT popups.  I just get a small spinning clock that quickly dissappears.

I have also tried the eSearch widget and cannot select a parcel to buffer - I receive "[RPC Fault faultString="Requested operation is not supported by this service." faultCode="400" faultDetail="The requested capabiliity is not supported."]

Any ideas? 


This is a sample of one of the popup.xml files that are in the popups folder in the Flexviewer app that works on the old system but not on the new system:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <title>City Address</title>
  <fields>
    <field name="SITE_ADDR" alias="Address" visible="true" />
<field name="LOCID" alias="Location ID" visible="true" >
  <format usethousandsseparator="false"/>
</field>
<field name="CAD" alias="CAD" visible="true" />
<field name="XCoord" alias="XCoord" visible="true" />
<field name="YCoord" alias="YCoord" visible="true" />
<field name="EMS_DIST" alias="EMS" visible="true" />
<field name="FIRE_ZONE" alias="FIRE" visible="true" />
<field name="STRAP" alias="STRAP" visible="true" />
  </fields>
  <showattachments>FALSE</showattachments>
</configuration>


Thank you!

Luci
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LuciHawkins
Frequent Contributor
It was a brand new server with a clean install of ArcGIS 10.1 Server,  I was having other problems with it so I wiped it and started over.  It is now giving me popups.  I believe it was a server problem all along.  I am not happy with 10.1 so far 😞

My filenames do match what is in my Flex app. 🙂

[ATTACH=CONFIG]23037[/ATTACH]

Thanks!

Luci

View solution in original post

0 Kudos
9 Replies
RhettZufelt
MVP Notable Contributor
Did you by any chance put it into another folder on the IIS site?

Wondering if your path to the popup config file in your config.xml is correct.

Can you get to it in the browser?  I.e., 
www,yourserver,com/viewername/popups/PopUp_filename.xml

R_
0 Kudos
LuciHawkins
Frequent Contributor
Yes,  I can get to it and see the xml file in my browser at:

http://fwbgis/fwb/popups/popup_addresses.xml

Unfortunately, this is not a public website.

I am beginning to think it is a connection or permission problem with our SQL database. 😕

Thanks,

Luci
0 Kudos
GISDev1
Deactivated User
Post your config.xml, a screenshot of a REST service page showing the field names, and an example pop-up config that matches that screenshot.

Make sure the field CaSe hasn't changed at all and that it matches between the popup field and the REST page field.
0 Kudos
LuciHawkins
Frequent Contributor
This is my config.xml file
<?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://fwbgis/arcgis/rest/services/Utilities/Geometry/GeometryServer" />

<!-- UI elements -->
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml"
  url="widgets/Navigation/NavigationWidget.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="-9657400 3552400 -9627600 3566500"
  fullextent="-17360000 1756000 -2518000 8321000" top="40"
  addarcgisbasemaps="false">
  <lods>
   <lod resolution="9783.93962049996" scale="36978595.474472" />
   <lod resolution="4891.96981024998" scale="18489297.737236" />
   <lod resolution="2445.98490512499" scale="9244648.868618" />
   <lod resolution="1222.99245256249" scale="4622324.434309" />
   <lod resolution="611.49622628138" scale="2311162.217155" />
   <lod resolution="305.748113140558" scale="1155581.108577" />
   <lod resolution="152.874056570411" scale="577790.554289" />
   <lod resolution="76.4370282850732" scale="288895.277144" />
   <lod resolution="38.2185141425366" scale="144447.638572" />
   <lod resolution="19.1092570712683" scale="72223.819286" />
   <lod resolution="9.55462853563415" scale="36111.909643" />
   <lod resolution="4.77731426794937" scale="18055.954822" />
   <lod resolution="2.38865713397468" scale="9027.977411" />
   <lod resolution="1.19432856685505" scale="4513.988705" />
   <lod resolution="0.597164283559817" scale="2256.994353" />
   <lod resolution="0.298582141647617" scale="1128.497176" />
   <lod resolution="0.149291444416222" scale="564.25" />
   <lod resolution="0.0746" scale="282.12" />
   <lod resolution="0.0373" scale="141.06" />
   <lod resolution="0.0187" scale="70.53" />
  </lods>
  <basemaps>
   <layer label="FWB Map" type="dynamic" visible="true"
    icon="assets/images/map.jpg"
    url="http://fwbgis/arcgis/rest/services/Maps/GreaterFWBWebM/MapServer"></layer>
   <layer label="2010 Aerial" type="tiled" visible="false"
    icon="assets/images/basemap_imagery.jpg"
    url="http://fwbgis/arcgis/rest/services/Maps/AerialFeb2010WebM/MapServer"></layer>
   <layer label="World Streets" type="tiled" visible="false"
    icon="assets/images/basemap_streets.jpg"
    url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"></layer>
   <layer label="USA Topo" type="tiled" visible="false"
    icon="assets/images/basemap_topographic.jpg"
    url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"></layer>
  </basemaps>
  <operationallayers>
   <layer label="GIS Map" type="dynamic" visible="true"
    url="http://fwbgis/arcgis/rest/services/Maps/FWBWebMap/MapServer">
    <sublayer id="153" popupconfig="popups/PopUp_FWBParcels.xml" />
    <sublayer id="154" popupconfig="popups/PopUp_FWBParcels.xml" />
    <sublayer id="147" popupconfig="popups/PopUp_FIRM.xml" />
    <sublayer id="145" popupconfig="popups/PopUp_HS.xml" />
    <sublayer id="144" popupconfig="popups/PopUp_ElevCert.xml" />
    <sublayer id="142" popupconfig="popups/PopUp_Wetlands.xml" />
    <sublayer id="138" popupconfig="popups/PopUp_FWBLanduse.xml" />
    <sublayer id="139" popupconfig="popups/PopUp_FWBLanduse.xml" />
    <sublayer id="140" popupconfig="popups/PopUp_FWBLanduse.xml" />
    <sublayer id="134" popupconfig="popups/PopUp_Parks.xml" />
    <sublayer id="129" popupconfig="popups/PopUp_CityProperty.xml" />
    <sublayer id="128" popupconfig="popups/PopUp_PCI.xml" />
    <sublayer id="122" popupconfig="popups/PopUp_StreetSigns.xml" />
    <sublayer id="121" popupconfig="popups/PopUp_Streetlights.xml" />
    <sublayer id="120" popupconfig="popups/PopUp_SewerTaps.xml" />
    <sublayer id="119" popupconfig="popups/PopUp_WaterTaps.xml" />
    <sublayer id="108" popupconfig="popups/PopUp_FWBRMain.xml" />
    <sublayer id="107" popupconfig="popups/PopUp_FWBRLateral.xml" />
    <sublayer id="101" popupconfig="popups/PopUp_FWBRMeter.xml" />
    <sublayer id="100" popupconfig="popups/PopUp_FWBRHydrant.xml" />
    <sublayer id="103" popupconfig="popups/PopUp_FWBRValve.xml" />
    <sublayer id="106" popupconfig="popups/PopUp_FWBRValve.xml" />
    <sublayer id="102" popupconfig="popups/PopUp_FWBRNetworkStructure.xml" />
    <sublayer id="105" popupconfig="popups/PopUp_FWBRFitting.xml" />
    <sublayer id="116" popupconfig="popups/PopUp_FWBSWMain.xml" />
    <sublayer id="117" popupconfig="popups/PopUp_FWBSWMain.xml" />
    <sublayer id="111" popupconfig="popups/PopUp_FWBSWInletOutlet.xml" />
    <sublayer id="112" popupconfig="popups/PopUp_FWBSWInletOutlet.xml" />
    <sublayer id="113" popupconfig="popups/PopUp_FWBSWInletOutlet.xml" />
    <sublayer id="114" popupconfig="popups/PopUp_FWBSWHeadEnd.xml" />
    <sublayer id="115" popupconfig="popups/PopUp_FWBSWHeadEnd.xml" />
    <sublayer id="92" popupconfig="popups/PopUp_FWBSSManhole.xml" />
    <sublayer id="96" popupconfig="popups/PopUp_FWBSSFM.xml" />
    <sublayer id="97" popupconfig="popups/PopUp_FWBSSMain.xml" />
    <sublayer id="98" popupconfig="popups/PopUp_FWBSSLateral.xml" />
    <sublayer id="95" popupconfig="popups/PopUp_FWBSSNetworkStructure.xml" />
    <sublayer id="87" popupconfig="popups/PopUp_FWBSSCleanout.xml" />
    <sublayer id="91" popupconfig="popups/PopUp_FWBSSStubout.xml" />
    <sublayer id="85" popupconfig="popups/PopUp_FWBWMain.xml" />
    <sublayer id="84" popupconfig="popups/PopUp_FWBWLateral.xml" />
    <sublayer id="74" popupconfig="popups/PopUp_FWBWMeter.xml" />
    <sublayer id="77" popupconfig="popups/PopUp_FWBWHydrant.xml" />
    <sublayer id="81" popupconfig="popups/PopUp_FWBCHydrant.xml" />
    <sublayer id="82" popupconfig="popups/PopUp_FWBMHydrant.xml" />
    <sublayer id="75" popupconfig="popups/PopUp_FWBWValve.xml" />
    <sublayer id="79" popupconfig="popups/PopUp_FWBWValve.xml" />
    <sublayer id="80" popupconfig="popups/PopUp_FWBWNetworkStructure.xml" />
    <sublayer id="83" popupconfig="popups/PopUp_FireStations.xml" />
    <sublayer id="78" popupconfig="popups/PopUp_FWBWFitting.xml" />
    <sublayer id="71" popupconfig="popups/PopUp_References.xml" />
    <sublayer id="72" popupconfig="popups/PopUp_References.xml" />
    <sublayer id="69" popupconfig="popups/PopUp_Subdivisions.xml" />
    <sublayer id="11" popupconfig="popups/PopUp_Easements.xml" />
    <sublayer id="12" popupconfig="popups/PopUp_Easements.xml" />
    <sublayer id="13" popupconfig="popups/PopUp_Easements.xml" />
    <sublayer id="14" popupconfig="popups/PopUp_Easements.xml" />
    <sublayer id="15" popupconfig="popups/PopUp_Easements.xml" />
    <sublayer id="16" popupconfig="popups/PopUp_Easements.xml" />
    <sublayer id="17" popupconfig="popups/PopUp_Easements.xml" />
    <sublayer id="10" popupconfig="popups/PopUp_Deeds.xml" />
    <sublayer id="9" popupconfig="popups/PopUp_Deeds.xml" />
    <sublayer id="8" popupconfig="popups/PopUp_Deeds.xml" />
    <sublayer id="7" popupconfig="popups/PopUp_Deeds.xml" />
    <sublayer id="5" popupconfig="popups/PopUp_Brownfields.xml" />
    <sublayer id="1" popupconfig="popups/PopUp_Addresses.xml" />
    <sublayer id="2" popupconfig="popups/PopUp_AddressesC.xml" />
   </layer>
  </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
LuciHawkins
Frequent Contributor
The attached is the screenshots of my rest service.

Thanks,

Luci
0 Kudos
GISDev1
Deactivated User
The attached is the screenshots of my rest service.

Thanks,

Luci


What is the url you are using to view the flexviewer?
0 Kudos
LuciHawkins
Frequent Contributor
The compiled version of my 3.0 version Flex Viewer app is physically located at:

C:\inetpub\wwwroot\fwb

and in a browser I reach it through

http://fwbgis/fwb/index.html

I also have the uncompiled 3.0, 3.1, and 3.2 versions in Flash Builder 4.6 for testing/debugging and the popups do not work in any of the three versions there either.

As stated above, if I go to this address:

http://fwbgis/fwb/popups/popup_addresses.xml


Thanks!

Luci
I can see the xml file [ATTACH=CONFIG]22941[/ATTACH]
0 Kudos
RhettZufelt
MVP Notable Contributor
I see you are telling it to load
<sublayer id="1" popupconfig="popups/PopUp_Addresses.xml" />


but for the example you load popups/popup_addresses.xml.

Remember, FLEX is CaSe sensitive, so these are NOT the same thing.  Try updating the config.xml so that paths are identical, including CaSe.
Either will work if put directly in the browser, but FLex needs it to be exact.

R_
0 Kudos
LuciHawkins
Frequent Contributor
It was a brand new server with a clean install of ArcGIS 10.1 Server,  I was having other problems with it so I wiped it and started over.  It is now giving me popups.  I believe it was a server problem all along.  I am not happy with 10.1 so far 😞

My filenames do match what is in my Flex app. 🙂

[ATTACH=CONFIG]23037[/ATTACH]

Thanks!

Luci
0 Kudos