Select to view content in your preferred language

map service works on both servers, flex only see's one of them

517
2
05-20-2010 11:55 AM
eddiequinlan
Deactivated User
Hi all,

I've just migrated to flex 4 and am readjusting my code as such.  In doing so, I have a arcgis server with a map service on it (call it A).  Thru ArcGis Server manager i can view the service and the mxd it points to.

I also have another server which I am migrating everything over too.  On this server (call it B) the map service works; I can view thru ArcGis Server manager the service/mxd.

However, thru my flex code it will only "see" the map service located on "A".  When I change the url to the "B" server the map service doesn't display in flex.

Any suggestions?
sincerely,
Eddie
Tags (2)
0 Kudos
2 Replies
TomSchuller
Frequent Contributor
Hy,
is your mapservice on the second server accessible by the REST-api.
If no, there is a problem with your server configuration

If yes, there is a problem with the Flex.
   Check if you have you set the "crossdomain.xml" file

Tom
0 Kudos
eddiequinlan
Deactivated User
Hi all,

The problem has been resolved, but I think it should be noted for other users as to what happened.

The url I was using on one map service was as such: "http://myserver/ArcGIS/services/......."
I obtained this from the ArcGIS Server Manager under services, then selecting the map service... click "edit" and under capabilities it list the url path.  This is not correct.

If you go to Start...Programs....ArcGIS...ArcGIS Server for the Microsoft .NET Framwork... ArcGIS services Directory;
then navigate to your services folder and map service it will show the proper URL in the IE http path.  In my case it showed: "http://myserver/ArcGIS/rest/services/....."

I was missing the "/rest/" part of the path.  Get the proper path thru ArcGIS services Directory!

Hope this helps anyone who has made this mistake.

Sincerely,
Eddie
0 Kudos