Select to view content in your preferred language

ArcGiS Viewer for Flex error #2101

2887
9
Jump to solution
06-17-2012 11:45 AM
LigiaGafitescu
Deactivated User
Hello everyone,

I am very new to ArcGIS Viewer for Flex. So sorry, if the question is stupid.
I am trying to add some operational layers to my application which are located as map services on my ArcGIS Server, so I went to Step 2 (Operational Layers)- ArcGIS Server- pasted the URL of my map server- Browse- and I Get the following message: "Error #2101".

Thank you for your help.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DasaPaddock
Esri Regular Contributor
0 Kudos
9 Replies
DasaPaddock
Esri Regular Contributor
What is the URL you pasted?
0 Kudos
LigiaGafitescu
Deactivated User
the URL is:
http://esri:8080/rest/services/ancom/MapServer

I can now see the layers listed in the operational layers tab, but I ca't use them apparently. Still says error #2101 at the bottom of the window now.

Then , when I go to Preview I get this:

"punte" layer failed to load. Fault code: Cannel.Security.Error

Fault info: Security error accessing url.
Fault details: Destination: DefaultHttp


I really don't know what it means:(
0 Kudos
AnthonyGiles
Honored Contributor
Logia,

It looks like you are missing arcgis before rest in your URL:

http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer

You should be able to type the URL in a browser and see you REST endpoints

Regards

Anthony
0 Kudos
LigiaGafitescu
Deactivated User
Hello,

Thank you for the quick reply.

I couldn't connect to ArcGIS Server so the URL I typed above, was the URL of  a tomcat where my rest endpoints are. I can now see the layers listed in the operational layers tab, but I ca't use them apparently.


The layers I want to add are actually map services published on ArcGIS Server, so I have to take them from there:)

the URL of that would be :http://ESRI:8399/arcgis/rest/services ........but it doesn't work.


So, I have to specify the "REST endpoint URL address for my ArcGIS Server instance", - how do I get that?.


Sorry. 😞 I can imagine is a stupid question.
0 Kudos
DasaPaddock
Esri Regular Contributor
On the Preview tab, can you click the "Application URL" link so that it opens in your browser and then add config.xml to the end of the url and load it and let us know what the URL of the operational layer is? Also try loading the operation layer's URL in your browser to see if you get the REST metadata page for it.
0 Kudos
LigiaGafitescu
Deactivated User
On the Preview tab, can you click the "Application URL" link so that it opens in your browser and then add config.xml to the end of the url and load it and let us know what the URL of the operational layer is? Also try loading the operation layer's URL in your browser to see if you get the REST metadata page for it.


1. Hello again. I opened the "application URL " in my browser, added config.xml, and found out that the url of the operational layer is : http://esri:8080/rest/services/time_aware_map_service/MapServer/   
I loaded this URL in my browser and I can see the rest metadata page. I still cannot see the layer in ArcGIS Viewer for Flex.

2. How come when I browse in ArcGIS VIewer for my ArcGIS Server data on this URL: http://ESRI:8399/arcgis/rest/services/   I get "No results found"?


ps: It would be useful for me a short tutorial on how to use data in ArcGIS Viewer for Flex from your ArcGIS Server. I definitely missed the basic.

Thank you again.
0 Kudos
DasaPaddock
Esri Regular Contributor
1.) Do you have a crossdomain.xml file at http://esri:8080/crossdomain.xml or is your Viewer also on http://esri:8080/ ?

2.) Do you see the ArcGIS REST Services Directory at http://ESRI:8399/arcgis/rest/services/ ?

Here is documentation for the Application builder:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Getting_started_with_the_applic...
0 Kudos
LigiaGafitescu
Deactivated User
1.) Do you have a crossdomain.xml file at http://esri:8080/crossdomain.xml or is your Viewer also on http://esri:8080/ ?

2.) Do you see the ArcGIS REST Services Directory at http://ESRI:8399/arcgis/rest/services/ ?

Here is documentation for the Application builder:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Getting_started_with_the_applic...


hello again,

1. No/ No, As far as I remember 🙂

2. No.
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos