Dynamic Legend for SFV1.3 upgraded to AGS10

653
3
11-01-2010 09:56 AM
NathanEnge
Esri Contributor
Hi,
We are in the process of deploying AGS10 on a different box for testing. Previously, we had the Legend working on SFV1.3 on AGS 9.3.1
I'm assuming the asp.net code needs to be ammended to AGS10:
<compilation debug="true" strict="false" explicit="true">
   <assemblies>
    <add assembly="ESRI.ArcGIS.ADF.ArcGISServer, Version=9.3.1.1850, Culture=neutral, PublicKeyToken=8FC3CC631E44AD86"/></assemblies></compilation>


What would be the new value for this? or how do I get this?
What other bits would need to be changed for AGS10 to serve the RESTLegend app on SFV 1.3?
Tags (2)
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
In regards to Legends ... you might also be interested in knowing that ArcGIS Server 10.0 SP1 (planned for this month) will have support for REST legends:
http://downloads2.esri.com/support/documentation/ao_/10.0_SP1_Announcement.pdf (linked to from http://blogs.esri.com/Dev/blogs/arcgis/archive/2010/09/20/ArcGIS-10-Service-Pack-1.aspx).  The "server" part of that document lists all the bug fixes and enhancements coming in 10.0 SP1.

We plan to take advantage of the REST legend support in both the next Flex API and Flex Viewer releases.
0 Kudos
NathanEnge
Esri Contributor
Nathan,

Look here.

http://forums.arcgis.com/threads/10343-Dynamic-Rest-Legend-in-ArcGIS-Server-10-and-Flex-API-1.3?high...


Thanks for the link to the updated code. What I was having problems with, and was hoping it would fix...but didn't, was the following error:
(mx.messaging.messages::ErrorMessage)#0
  body = ""
  clientId = "DirectHTTPChannel0"
  correlationId = "4A41E22A-78F1-C30F-ABAF-2CFE8F8D6BFC"
  destination = ""
  extendedData = (null)
  faultCode = "Server.Error.Request"
  faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.mapservices.ca/restLegend/restLegend.asmx"]. URL: http://www.mapservices.ca/restLegend/restLegend.asmx"
  faultString = "HTTP request error"
  headers = (Object)#1
    DSStatusCode = 400
  messageId = "795EED4A-5341-9A14-E87E-2CFE8FAC0E88"
  rootCause = (flash.events::IOErrorEvent)#2
    bubbles = false
    cancelable = false
    currentTarget = (flash.net::URLLoader)#3
      bytesLoaded = 0
      bytesTotal = 0
      data = ""
      dataFormat = "text"
    errorID = 0
    eventPhase = 2
    target = (flash.net::URLLoader)#3
    text = "Error #2032: Stream Error. URL: http://www.mapservices.ca/restLegend/restLegend.asmx"
    type = "ioError"
  timestamp = 0
  timeToLive = 0


I only get this error on password protected sites using windows authentication (Windows Authentication = Enabled in IIS7). Any clues?
0 Kudos