Error Unable To Load Proxy.ashx
Early Adopter Program ArcGIS Ideas Esri Support Services ArcGIS Blogs ArcGIS Code Sharing Product Life Cycles Manage Cases Request Case Start Chat Back to results Print Share Is This Content Helpful? Search on GeoNet Submit to ArcGIS Ideas Error: Query Request Error: Unable to load http://yourserver/PublicNotification/proxy/proxy.ashx?http://yourserver/ArcGIS/rest/services/Utilities... Error Message This article assumes the client successfully deployed the Land Use Public Notification (ArcGIS 10.2) for Local Government. After loading the web application in a web browser, and selecting any parcel in the map, a pop-up with pre-selected information displays. After clicking on the detail option to provide values for buffer distance, and proceeding to download the result in pdf or CSV format, instead of downloading the result, the following error is returned:"Query Request Error: Unable to load http:// yourserver/PublicNotification/proxy/proxy.ashx?http://yourserver/ArcGIS/rest/services/Utilities/Geometry/GeometryServer/buffer status: 500" Cause The proxy page uploaded with the Land Use Public Notification local government template is outdated or nonfunctional. Solution or Workaround Replace the proxy page by following the steps below:Go to Sample Proxy Page to download and test a sample proxy page. Choose the DotNet option for IIS. Follow the instructions on the page to install and test the proxy. It is important to note that the DotNet application requires a .NET 4.0 application pool or later. In Windows Explorer, copy the DotNet folder toC:\InetPub\wwwroot\PublicNotificationGo to IIS and convert it to an application.Go toC:\InetPub\wwwroot\PublicNotification\dotnet\proxyOpen proxy.config in a text editor. If not already done, edit the serverUrl tag tohttp://yourserver/arcgis/rest/Go toC:\InetPub\wwwroot\PublicNotification\js\config.jsEdit all URL addresses to all services. Use the external address, http://yourserver.com/arcgis/rest/. Verify it is the same address
Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Geographic Information Systems Questions Tags Users Badges Unanswered Ask Question _ Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and http://support.esri.com/technical-article/000012012 rise to the top ArcGis Server Java script API error code 500 while using proxy.ashx on one particular server up vote 1 down vote favorite I am looking for help with using proxy.ashx in Javascript API on one particular server at a client site. We have a GP service that the proxy is used to access (when request is more than 2048 characters). I have configured proxy and it works fine on one http://gis.stackexchange.com/questions/82995/arcgis-server-java-script-api-error-code-500-while-using-proxy-ashx-on-one-parti of our server in house. Javascript API application can send request using proxy.ashx. In another environment at our client site we get Error 500 -Unable to access the web page. But without the proxy we can access the page. Here are some test case scenarios we tested. We have the Javascript application on H01 server and GP Service on H02 server. So we send request from H01 to H02. Both the machines are in the same domain. Following tests works fine http://H02/rest/services/MyGPService/GPServer http://H02/iisstart.htm http://H02/rest/services/MyMapServices/MyMapService http://H01/MyApp/proxy.ashx?http:www.google.com Following tests don't http://H01/MyApp/proxy.ashx?http://H2/rest/services/MyGPService/GPServer http://H01/MyApp/proxy.ashx?http://H2/iisstart.htm http://H01/MyApp/proxy.ashx?http://H2/rest/services/MyMapServices/MyMapService The "H02" server where AGS is installed is managed by their IT department and we don't have much access to it. In the tests above, I cannot access any URL from "H02" server using proxy, even the root iisstart.htm. They all give Error 500, the page cannot be accessed. It looks to me like permission or settings on "H02" server that is causing this issue. All the above tests works fine on our internal server. arcgis-javascript-api java scripting api proxy share|improve this question edited Jan 14 '14 at 21:03 PolyGeo♦ 39.2k1357144 asked Jan 14 '14 at 20:56 Cyril Cherian 63 Are you seeing any warnings in your console or anything? Sometimes you can see a specific warning or security issue there.
Sign in Pricing Blog Support Search GitHub This repository Watch 55 Star https://github.com/Esri/resource-proxy/blob/master/DotNet/proxy.ashx 157 Fork 173 Esri/resource-proxy Code Issues 60 Pull requests 11 Projects 0 Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags attachments-5.6 master Nothing http://www.faqssys.info/configurable-map-viewer-cmv-print-widget-proxy-issue/ to show v1.1.0 v1.0 v0.9 Nothing to show Find file Copy path resource-proxy/DotNet/proxy.ashx de8d05e Oct 13, 2016 bsvensson remove unneeded asp:treeview 15 contributors error unable Users who have contributed to this file bsvensson jgravois afili guo7711 MikeTschudi phpmaps esoekianto markdeaton cheetah90 gruas jwoyame kellyhutchins mikemsq Bobdina pogione Raw Blame History 1165 lines (1015 sloc) 45.7 KB <%@ WebHandler Language="C#" Class="proxy" %> /* * DotNet proxy client. * * Version 1.1.1-beta * See https://github.com/Esri/resource-proxy error unable to for more information. * */ #define TRACE using System; using System.IO; using System.Web; using System.Xml.Serialization; using System.Web.Caching; using System.Collections.Concurrent; using System.Diagnostics; using System.Text.RegularExpressions; using System.Net; public class proxy : IHttpHandler { private static String version = "1.1.1-beta"; class RateMeter { double _rate; //internal rate is stored in requests per second int _countCap; double _count = 0; DateTime _lastUpdate = DateTime.Now; public RateMeter(int rate_limit, int rate_limit_period) { _rate = (double) rate_limit / rate_limit_period / 60; _countCap = rate_limit; } //called when rate-limited endpoint is invoked public bool click() { TimeSpan ts = DateTime.Now - _lastUpdate; _lastUpdate = DateTime.Now; //assuming uniform distribution of requests over time, //reducing the counter according to # of seconds passed //since last invocation _count = Math.Max(0, _count - ts.TotalSeconds * _rate); if (_count <= _countCap) { //good to proceed _count++; return true; } return false; } public bool canBeCleaned
with how I may have the proxy configured. I'm not sure exactly what to ask so I'll start with describing the symptom. When I am zoomed to a full extent and have few features being rendered the print widget generates a pdf just fine. When I'm zoomed in and many features are rendered the print widget generates an error. Is this a result of the url length and the proxy coming in to play? The error is: "POST http://myurl/myfolder/proxy/proxy.ashx?http://myurl2/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute 500 (Internal Server Error) " When I copy and paste the url in my browser the export web map task opens fine, through the proxy. I have