Select to view content in your preferred language

Error ArcGIS Viewer for Flex

584
3
10-27-2011 08:55 PM
AysberqTundra
Deactivated User
Hello everyone.

I want to create a web application via my custom GIS resources (non internet recources) using ArcGIS Viewer for Flex.
I have create a new Map service using ArcGIS Server 10 and I have install ArcGIS API for JavaScript library according to installation instruction.
Then, I changed the next 2 lines in C:\inetpub\wwwroot\ArcGIS\rest\rest.config file.
<ArcGIS>http://serverapi.arcgisonline.com/jsapi/arcgis?v=2.0</ArcGIS>  line with
<ArcGIS>http://my_pc/arcgis_js_api/library/2.5/arcgis?v=2.5</ArcGIS>.
and
<ArcGISCSS>http://serverapi.arcgisonline.com/jsapi/arcgis/2.0/arcgis/js/dojo/dijit/themes/claro/claro.css </ArcGISCSS> line with
<ArcGISCSS>http://my_pc/arcgis_js_api/library/2.5/arcgis/js/dojo/dijit/themes/claro/claro.css </ArcGISCSS>.
Then I changed ArcGIS Online services URLs to my custum service URL in config.xml file of FlexViewer.
When I try open http://my_pc/flexviewer/ link in browser I get this error message:

myservice layer failed to load: Fault code: null
Fault info: E0005E: Invalid tile service: http://my_pc/ArcGIS/rest/services/myservice/MapServer
Fault details: null

Software versions:
ArcGis Server 10
ArcGIS JavaScript Api 2.5
ArcGIS Viewer For Flex 2.4

Please help  me!
Tags (2)
0 Kudos
3 Replies
MattiasEkström
Frequent Contributor
Hi,
the ArcGIS Viewer for Flex is based on the ArcGIS API for Flex. I don't see how your supposed to use the Viewer for Flex together with the JavaScript API.
When you download the Viewer for Flex the API for flex is included, you don't have to download the API separately, just set up the config file with your map services.
The Error you're getting "Invalid tile service" might be that your using type="tiled" on a mapservice that isn't cached. Try use type="dynamic" or make sure the mapservice is cached.
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Aysberq,

I want to create a web application via my custom GIS resources (non internet recources) using ArcGIS Viewer for Flex. I have create a new Map service using ArcGIS Server 10 and I have install ArcGIS API for JavaScript library according to installation instruction.


I'm not sure which "installation instruction" you used, but the 2nd statement is incorrect. You DO NOT NEED the ArcGIS API for JavaScript library to use the ArcGIS Viewer for Flex.

If you have ArcGIS Server, the ArcGIS Viewer for Flex will work directly with its services. The Viewer is based on the ArcGIS API for Flex, not the JavaScript API. But you don't need to install the Flex API to use the Viewer.

Please follow these instructions: Getting started with ArcGIS Viewer for Flex

FYI: ArcGIS Viewer for Flex Resource Center

Hope this helps,
0 Kudos
AysberqTundra
Deactivated User
Thanks for yours replays. These were very useful.
0 Kudos