You are here: > ESRI Forums > arcgis server forums > Thread Replies

ArcGIS Server Forums

ArcGIS API for Silverlight forum

Unable to display localhost REST Mapserver...   Ravichandran M. Kaushika Apr 02, 2009
Re: Unable to display localhost REST Mapser...   Robert Vega Apr 02, 2009
Re: Unable to display localhost REST Mapser...   Ravichandran M. Kaushika Apr 03, 2009
Re: Unable to display localhost REST Mapser...   Ravichandran M. Kaushika Apr 14, 2009
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Unable to display localhost REST Mapserver in VS 2008 
Author Ravichandran M. Kaushika 
Date Apr 02, 2009 
Message dear Readers,

thank you for taking the time to read through this to help me out.

1. created a pooled service (non-pooled service does not work) with MapService enabled.

2. cleared the REST cache and set a periodic 5 min interval to clear rest cache.

3. displayed metadata about the service/MapServer in IE 7+.

4. when i used it in a simple XAML file/VS 2008/Silver light Web app option using ESRI sample - with no other controls, it did not show up.

5. the map shows up in the ArcGIS Javascript link in the /rest/ServiceNameFolder/ServiceName/MapServer/ page in IE. but not in ArcMap, google earth or any other link.

6. i copied the contents of crossdomain.xml and clientaccesspolicy.xml from the web (same xml contents - 2 file name) and put them in /inetput/wwwroot.

7. server.dat and services.data were modified to securityEnabled=false in the .xml dom style files under the server folders and /inetpub/ArcGISInstanceName/rest folders.


8. made changes to the vs2008 project as indicated in this link: http://forums.esri.com/Thread.asp?c=158&f=2455&t=278132&mc=11

9. i also had the .xap - unable to download silver light app - made changes as per suggestions of this link:
http://silverlight.net/forums/t/20831.aspx

all the above steps were completed - no map displayed in arcmap, google earth, or in the application.

vs2008 however consumes one of the esri samples and displays the map correctly. it does not show my rest map server.

thanks for your time.

regards
Ravi. 
  Ravichandran M. Kaushika, Certified GISP
Client:USDA, Fort Worth, TX.
817-509-3397
mravichandran @ hotmail.com
mravichandran.geo @ yahoo.com
http://www.blogger.com/profile/06062052157385385714 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Unable to display localhost REST Mapserver in VS 2008 
Author Robert Vega 
Date Apr 02, 2009 
Message Make sure that an output directory is specified in the service properties section. I just got hit with this one as several services were working, just not the newest one that I quickly created. It behaved exactly as you describe. It was missing the output directory. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Unable to display localhost REST Mapserver in VS 2008 
Author Ravichandran M. Kaushika 
Date Apr 03, 2009 
Message Robert,

good afternoon. thanks for your input. i was having the output directory specified to a physical location. i usually fill up as much information possible in each of the controls that request some sort of an input (including description).

thanks for your idea. it did not fix it. i will keep checking for more ideas.

regards
ravi. 
  Ravichandran M. Kaushika, Certified GISP
Client:USDA, Fort Worth, TX.
817-509-3397
mravichandran @ hotmail.com
mravichandran.geo @ yahoo.com
http://www.blogger.com/profile/06062052157385385714 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Unable to display localhost REST Mapserver in VS 2008 
Author Ravichandran M. Kaushika 
Date Apr 14, 2009 
Message FIXED IT. i was under the previous ags 9.2 and 9.3 mindset. i had one map document where many llayers with differing projections were included and the map was published as a single service. the map service was consumed inside the .net aspx web map application page.

this did not work in esri's silver light api. it might be 'obvious' for many - it was NOT for me. i had to learn it the hard way.

the layers in a map document exposing a rest service should have the SAME projection - so should the data frame holding these layers.

so if there are layers with differing projection layers in a single map service, they need to be appropriately broken down into multiple map document and exposed as different services.

i created 3 map documents from my original map document to create 3 REST /ags services.

this saved my day. i will mark the previous posting as answered my question to give credit to his time. HOWEVER, users should read this posting to see what fixed it.

regards
Ravi. 
  Ravichandran M. Kaushika, Certified GISP
Client:USDA, Fort Worth, TX.
817-509-3397
mravichandran @ hotmail.com
mravichandran.geo @ yahoo.com
http://www.blogger.com/profile/06062052157385385714