Select to view content in your preferred language

Layer Failed to Load

6584
5
Jump to solution
05-05-2012 05:22 AM
KevinDixon
Deactivated User
Hi everyone, I am very new to ArcGis. I am using the flex viewer 2.5 version.
I am trying to add a map from a rest service. I added it to the conf.xml & the conf-all.xml. Here is the code from the conf.xml.
The last layer in the code below is what I am trying to add. When I parse the page, I receive a Map Manager pop-up.
PhillyBase layer failed to load: Fault code: 500
Fault info: Server Error- Object reference not set to an instance of an object.
Can someone help with a little guidance?

Thanks

[ATTACH=CONFIG]14116[/ATTACH]

    <map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40">         <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"/>             <layer label="PhillyBase" type="tiled" visible="false"                    url="http://gisserv.phila.gov/ArcGIS/rest/services/GSG_CityBaseMaps/PhillyBaseMap"/>  
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
KDL66,

   You need MapServer on the end of the url.

<map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40">         <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"/>             <layer label="PhillyBase" type="tiled" visible="false"                    url="http://gisserv.phila.gov/ArcGIS/rest/services/GSG_CityBaseMaps/PhillyBaseMap/MapServer"/>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
KDL66,

   You need MapServer on the end of the url.

<map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40">         <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"/>             <layer label="PhillyBase" type="tiled" visible="false"                    url="http://gisserv.phila.gov/ArcGIS/rest/services/GSG_CityBaseMaps/PhillyBaseMap/MapServer"/>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

0 Kudos
KevinDixon
Deactivated User
KDL66,

   You need MapServer on the end of the url.

<map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40">
        <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"/>
            <layer label="PhillyBase" type="tiled" visible="false"
                   url="http://gisserv.phila.gov/ArcGIS/rest/services/GSG_CityBaseMaps/PhillyBaseMap/MapServer"/>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:



Thank you very much. That took care of the error, but now the map area is just blank (white).
Also it will let you search an address, but the map is still not visible after the search.
Search this on the map:
576 City Hall , Philadelphia, PA
Here is the link to my flexviewer:

LINK
0 Kudos
KevinDixon
Deactivated User
There seems to be a sub-layer, maybe thats why the map is not showing up.
the sub-layer is called dvrpc_mcd_Clip_Erase. Can/should I add this to the conf.xml?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Kevin,

  So that issue has to do with your data has a WKID of: Spatial Reference: 2272 and is tiled and your are using esri basemaps that are WKID of: Spatial Reference: 102100 (3857) and are tiled. ArcGIS Server does not re-project tiled map services. Your only option is to not use esri basemaps or ignore your tiles and use your layer as dynamic:

<map wraparound180="true" initialextent="-14083000 3139000 -10879000 5458000" fullextent="-20000000 -20000000 20000000 20000000" top="40">
        <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"/>
            <layer label="PhillyBase" type="dynamic" visible="false"
                   url="http://gisserv.phila.gov/ArcGIS/rest/services/GSG_CityBaseMaps/PhillyBaseMap/MapServer"/>


This would lose the performance gain of caching your map service but would make it where ArcGIS Server would re-project it to match the esri basemaps in WKID 102100(3857).

Again don't forget to make this thread as answered as detailed in my first response.
0 Kudos
KevinDixon
Deactivated User
Thank you very much. Works for me.
Marked as answered.
0 Kudos