AnsweredAssumed Answered

Proxy page for editing

Question asked by david477 on Jul 17, 2012
Latest reply on Jul 20, 2012 by hzhu
Hi i have downloaded one of the sample ESRI editing examples and added my own maps(rest end points) and they are diplaying as they should. I have downloaded the proxy.ashx and proxy.config. I have set my html page to point at the proxy and config as below. My proxy pages are in C:\Inetpub\wwwroot\proxy i have done as advised in another thread and created the proxy folder to an application. = "http://myserver/proxy/proxy.ashx";

<serverUrl url="http://myserver/arcgis/rest/services/"

i have tried IP address and name both dont work.

when i run application and try to edit with firebug on i get following error

"Unable to load http://myserver/proxy/proxy.ashx?http://myserver/ArcGIS/rest/services/Point/FeatureServer/0/applyEdits status:500"

so in my browser on the server that hosts arcserver i try to test proxy page with

i get this

Server Error in '/proxy' Application.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'Generic' does not exist in the class or namespace 'System.Collections' (are you missing an assembly reference?)

Source Error:

using System.IO;
using System.Web;
using System.Collections.Generic;
using System.Collections;
using System.Text;

i have researched System.Collections.Generic and i just cant find what is wrong this was in the downloaded file from esri so i have tried with it removed and does not work.

Has anyone had this error i have looked on forum and people have had problems with proxy page set up but not the same problem as mine any help would be greatfull.