ArcGISDynamicMapServiceLayer Will not display

3764
18
01-21-2011 11:25 AM
PaulLang
New Contributor III
For some reason after moving to 10.0 ArcGISDynamicMapServiceLayers will not display.
ArcGISTiledMapServiceLayer work fine, any clue?
Tags (2)
0 Kudos
18 Replies
RobertScheitlin__GISP
MVP Emeritus
Paul,

    You are not giving enough info... Are you saying you have an existing custom Flex API app that is using the same ArcGISDynamicMapServices, same url and now that you upgraded to Server 10 they don't work? Have you gone to the REST Service directory and tested that the upgrade went OK and you can see them listed there and preview them?
0 Kudos
PaulLang
New Contributor III
Just taking ESRI samples and putting my services instead of ESRI services.  The Tiled services work fine, but not the dynamic.
Flex Builder 4.0

Tiled:
http://gcgis/ArcGIS/rest/services/Imagery/Orthos2009/MapServer
Dynamic:
http://gcgis/ArcGIS/rest/services/Daily/TestService/MapServer


  <esri:ArcGISTiledMapServiceLayer  url="http://gcgis/ArcGIS/rest/services/Imagery/Orthos2009/MapServer"/>
  <esri:ArcGISDynamicMapServiceLayer  url="http://gcgis/ArcGIS/rest/services/Daily/TestService/MapServer"/>
  <esri:ArcGISDynamicMapServiceLayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"/>

  <esri:ArcGISTiledMapServiceLayer url="http://gcgis/ArcGIS/rest/services/Static/StartUp/MapServer"/>
0 Kudos
DasaPaddock
Esri Regular Contributor
When you go to the urls of your dynamic services, do the links to "ArcGIS JavaScript" and "Export Map" work OK?
0 Kudos
PaulLang
New Contributor III
ArcGIS JavaScript Link results:

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

Export Map link works, but no image displayed.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Paul,

    Delete the map service and publish it again. There are sometimes issues with upgrading that corrupts map services.
0 Kudos
PaulLang
New Contributor III
I did as suggested, but same result.
However I changed the service to tiled service and build a cache, published and it works.
ArcGISDynamicMapServiceLayer still not working...

Tiled:
http://gcgis/ArcGIS/rest/services/Daily/TestService/MapServer
Dynamic:
http://gcgis/ArcGIS/rest/services/Daily/Dynamic/MapServer

All map services ArcGIS JavaScript Link results:

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Paul,

   Time to call tech support!
0 Kudos
PaulLang
New Contributor III
Update:
ESRI Tech support help:

ArcGIS JavaScript Link now functions correctly.
Change made:
C:\inetpub\wwwroot\ArcGIS\rest\web.config
RequireToken value changed to FALSE

<appSettings>
  <add key="RequireToken" value="FALSE" />
  <add key="ShortTokenTime" value="60" />
  <add key="LongTokenTime" value="14400" />
  <add key="TokenServiceURL" value="https://gcgis/ArcGIS/tokens/" />
  <add key="TokenKey" value="bctm1563BC" />
</appSettings>

Still unable to get any ArcGISDynamicMapServiceLayer to display, have a new instance with developer support, but waiting.

Do any of you pro's know why my Flex setup will not display this:
Install issue?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:esri="http://www.esri.com/2008/ags"
      pageTitle="Example - ArcGIS API for Flex connecting to a dynamic AGS service">

<esri:Map>
  <esri:ArcGISDynamicMapServiceLayer url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer"/>
</esri:Map>

</s:Application>

Adobe Flash Builder 4 Premium
Windows 7
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Paul,

   Kind of a silly question but do you have the Flex API swc in the libs folder of your project or have it referenced in the library path of the project?
0 Kudos