Hi,
I am new to use ArcGis Api for javascript, I am using JS Api 3.20.
I have been trying for 3 days but it does not work.
I have taken code from the following link
Geometry Engine - Geodesic buffers | ArcGIS API for JavaScript 3.20
I paste this in My Html file create in VS website for .Net , and setup a local server for my page using IIS server
I also downloaded proxy from GitHub resource-proxy/DotNet at master · Esri/resource-proxy · GitHub
setup it in same application in IIS
Downloaded excel file added in my application from https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.csv
but still I am getting the following error in console using developer mode when set Proxy URL to this
config.defaults.io.proxyUrl = "/192.168.8.188/Proxy/proxy.ashx";
GET http://192.168.8.188:1555/192.168.8.188/Proxy/proxy.ashx?http://earthquake.usgs.gov/earthquakes/feed... 404 (Not Found)
and when I set proxy url to this
config.defaults.io.proxyUrl = "/Proxy/";
then the following error occurs in console
GET http://192.168.8.188:1555/Proxy/?http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.c... 403 (Forbidden)
Could you please help me out. I would be thankful in advance.
Engr,
Have you tested your proxy? http://192.168.8.188:1555/Proxy/?ping
I tried it Now, so it was throwing error of host not found
Engr,
So that tells you that your proxy is not setup correctly then.
Have tested your web server on that machine to see if you have it setup correctly and serving HTML file correctly?
Hi
Edit the file C:\inetpub\wwwroot\proxy\proxy.config and insert the follow statement
<?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*"
mustMatch="true">
<serverUrls>
<serverUrl url="http://services.arcgisonline.com"
matchAll="true"/>
<serverUrl url="http://earthquake.usgs.gov"
matchAll="true" />
</serverUrls>
</ProxyConfig>
5. Edit the file index.html as follow statement
config.defaults.io.proxyUrl = "/proxy/proxy.ashx";
6. Test the example using the url http://localhost/Geodesic/index.html
I hope this can help you.
Thanks that worked,
I would like to show my own locations added to local csv file rather than usgs server,
How to do this could you please help me?