Services are not getting loaded

3233
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,

   Your app is still not getting the crossdomain.xml file. Right now if you look at the HTTP traffic in Fiddler your app is requesting the crossdomain.xml from http://gis/crossdomain.xml. You need that file in the wwwroot folder on your web server.
It is also failing on http://maps.icrisat.org/bhochetana/assets/Icrlogo.jpg, and http://maps.icrisat.org/bhochetana/assets/Movie.flv
0 Kudos
MohammedIsmail
New Contributor
hi


i have created crossdomain.xml but still am facing the same problem


Crossdomain.xml

<?xml version="1.0" ?>
- <cross-domain-policy>

  <allow-access-from domain="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-http-request-headers-from domain="maps.icrisat.org/bhochetana" headers="*" />

</cross-domain-policy>

What should i do please help me


Thanks & Regards
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ismail,


   You should probably make the crossdomain.xml less restrictive untill you get it to work. Where did you put that crossdomain.xml?

https://developers.arcgis.com/en/flex/guide/using-crossdomain-xml.htm
0 Kudos
DasaPaddock
Esri Regular Contributor
I found the policy file at http://maps.icrisat.org/crossdomain.xml but it's not well formed.

Try:

<?xml version="1.0"?>
<cross-domain-policy>
    <allow-access-from domain="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-http-request-headers-from domain="maps.icrisat.org/bhochetana" headers="*"/>
</cross-domain-policy>
0 Kudos
DasaPaddock
Esri Regular Contributor
The file also needs to match the cross-domain policy file specification.

Try:
<?xml version="1.0"?>
<cross-domain-policy>
    <allow-access-from domain="maps.icrisat.org"/>
    <allow-access-from domain="*.maps.icrisat.org"/>
    <allow-access-from domain="10.3.1.160"/>
    <allow-http-request-headers-from domain="maps.icrisat.org" headers="*"/>
</cross-domain-policy>
0 Kudos
MohammedIsmail
New Contributor
hi Robert


I have copied crossdoman file in C:\Inetpub\wwwroot folder of my server

is my crossdomain file is not correct please let me know

thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ismail,

   Your application is still trying to use a crossdomain.xml from

http://gis/crossdomain.xml

Normally this means that you have a layer in your map that is using a similar URL. You need to make sure that your map is only using URLs that contain the fully qualified URL like: http://maps.icrisat.org/etc/etc
0 Kudos
MohammedIsmail
New Contributor
hi

Thanks alot  Robert and dasa its working now

you can also check


Thanks
0 Kudos