AnsweredAssumed Answered

GeoDesic Buffers sample code does not work in my local server

Question asked by s.umair on Mar 18, 2017
Latest reply on Mar 19, 2017 by s.umair

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/v1.0/summary/4.5_week.csv 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.csv 403 (Forbidden)

 

 

 

Could you please help me out. I would be thankful in advance.

Outcomes