Services are not getting loaded

3235
17
09-05-2013 11:49 PM
MohammedIsmail
New Contributor
hi


I got stuck since last two month on this issue

like my problem is, services are not getting loaded when i browse my site
(all the services has to be get loaded in a drop down list)

u can try this link http://maps.icrisat.org/bhochetana

i have uploaded my web application on IIS

my domain name is Maps.icrisat.org

My server name is gisserver


My service URLs are like this

http://gisserver/ArcGis/rest/service...ron/MapServer/

i have also defined cross domain

<?xml version="1.0" ?>
- <cross-domain-policy>
<allow-access-from domain="www.maps.icrisat.org/bhochetana" ports="80"/>
<allow-access-from domain="*.maps.icrisat.org/bhochetana" to-ports="80"/>
<allow-access-from domain="10.3.1.160" to-ports="80" />
<allow-access-from domain="GISSERVER.ICRISAT.CGIARAD.ORG" />
<allow-http-request-headers-from domain="*.maps.icrisat.org/bhochetana" headers="*" />

</cross-domain-policy>

what could be the reason if you could tell me i can check

Thanks
Ismail
Tags (2)
0 Kudos
17 Replies
RobertScheitlin__GISP
MVP Emeritus
Ismail,

   In your application anywhere you specify the url of a layer make sure you use the fully qualified server name:

http://maps.icrisat.org/arcgis/rest/services/

This will prevent errors like this:

SecurityError: Error #2048: Security sandbox violation: http://maps.icrisat.org/bhochetana/karnataka_web.swf cannot load data from http://gisserver/ArcGis/rest/services/RaichurpH/MapServer/?f=json

and the fact that if I use fiddler to inspect the Http traffic there are requests for:
http://gisserver/crossdomain.xml
that are returning 502 erros
0 Kudos
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
It seems like your map was covered by other layers. Cause when you move the mouse the Longitude and Latitude is changing and the scale bar also changes when you zoom in.
I would suggest you to double check the did you put the map layer and the magazine cover in a right way. Specifically check if it is solid or transparent display.
0 Kudos
MohammedIsmail
New Contributor
hi

i tried by changing my url but i failed its not loading

here is the simple code i tried with

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:esri="http://www.esri.com/2008/ags"
      xmlns:samples="com.esri.ags.samples.*"
      xmlns:supportClasses="com.esri.ags.skins.supportClasses.*"
      width="100%" height="100%">
<fx:Script>
  <![CDATA[
  
  
  ]]>
</fx:Script>

<fx:Declarations> 
 
  <s:GlowFilter id="glowFilter"
       alpha="1"
       color="{getStyle('focusColor')}"
       inner="true"
       strength="2"
       />
 
  <!-- Symbol for where the user clicked -->
  <esri:SimpleMarkerSymbol id="clickPtSym" color="0xFF0000" size="20" style="x"/>
  <!-- Symbol for Identify Result as Polyline -->
  <esri:SimpleLineSymbol id="slsIdentify"
          width="2"
          alpha="1"
          color="0x00FF00"
          style="solid"/>
 
  <!-- Symbol for Identify Result as Point -->
  <esri:SimpleMarkerSymbol id="smsIdentify"
         color="0x00FF00"
         size="15"
         style="diamond"/>
</fx:Declarations>
   <esri:Map id="MyML" x="14" y="13" width="1026" height="752" cachePolicy="auto"  
       logoVisible="false"
       openHandCursorVisible="false"
       zoomSliderVisible="true">
    <esri:ArcGISDynamicMapServiceLayer id="layer0" imageFormat="png32"
               name="RaichurBoron"
               url= "http://maps.icrisat.org/ArcGis/rest/services/RaichurBoron/MapServer/"/>
   </esri:Map>
</s:Application>



if i run the service url independently its coming when am trying with this its not coming

Waiting for reply

Thanks alot
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mohammed Ismail,

   When I attempt to access http://maps.icrisat.org/ArcGis/rest/services/RaichurBoron/MapServer I am prompted for a user name and password. Have you disabled anonymous access to your rest service directory?
0 Kudos
MohammedIsmail
New Contributor
hi Robert


when i am using my server name i.e gisserver it is not asking any credentials but when i am using maps.icrisat.org it is asking


idont know why if ucan help it will be great


u can use credentials

User name: gisserver\gisserver
Password : Admin@123


Thanks

Ismail
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ismail,

   You need to change that password QUICK! and edit your post to remove that info!

You have security enabled on your ArcGIS Server using Windows authentication so access to your map services using the external server name requires a login or you need to generate a token to be used by the service and add that token to the ArcGISDynamicMapServiceLayer. I attempted to generate a token for testing using the credentials you gave but your server is not configured correctly for external access to generate tokens.
0 Kudos
MohammedIsmail
New Contributor
hi Robert

Could you tell me one thing when am using your samples it is working fine and all your services can be accessed without any problem

but when it comes ours part nothing is working

is this all about security issue are some thing different

how can i use the token in flex

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ismail,

   I do not have security enabled on my ArcGIS Servers. Your will work fine with security enabled if you get a long lihe token form your token service and add that to the token property of your layers or look into setting up a proxy page.
0 Kudos
MohammedIsmail
New Contributor
hi


If you ca help me it will be great

My problem is

1. when i run my application from my local machine it is working fine all the services are getting loaded
2. but when i try it by placing the export release build to my IIS server only am getting the front page and the services are not getting loaded

you can check the link http://maps.icrisat.org/bhochetana



Thanks
Ismail
0 Kudos