Proxy page for editing

792
5
Jump to solution
07-17-2012 02:51 AM
davidmaddison
New Contributor II
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.


esri.config.defaults.io.proxyUrl = "http://myserver/proxy/proxy.ashx";


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


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/applyEdi... status:500"


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

http://localhost/proxy/proxy.ashx?http://myserver/ArcGIS/rest/services/Point/FeatureServer/0
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.
0 Kudos
1 Solution

Accepted Solutions
davidmaddison
New Contributor II
for info

this is now working thanks to ESRI consultant  it was a setting in iis
i ran  aspnet_regiis -i      This will register ASP.NET 2.0 as the default version with IIS.
then restarted iis

all working

View solution in original post

0 Kudos
5 Replies
derekswingley1
Frequent Contributor
Are you able to make an edit via the REST API directly?

These issues are not easy to troubleshoot via the user forum. If you're able, I recommend opening a ticket with support.
0 Kudos
davidmaddison
New Contributor II
Hi how do i open a ticket with support?
0 Kudos
davidmaddison
New Contributor II
I should have asked how do i  make an edit via the REST API directly?

What i have done is create an editing  application in arcgis server and it worked using the same data(end points) so i knoe it was set up correctly.
But i work with javascript and dojo so i would like to set up web editing with proxy page.
0 Kudos
davidmaddison
New Contributor II
for info

this is now working thanks to ESRI consultant  it was a setting in iis
i ran  aspnet_regiis -i      This will register ASP.NET 2.0 as the default version with IIS.
then restarted iis

all working
0 Kudos
HemingZhu
Occasional Contributor III
for info

this is now working thanks to ESRI consultant  it was a setting in iis
i ran  aspnet_regiis -i      This will register ASP.NET 2.0 as the default version with IIS.
then restarted iis

all working


In the development stage, I usually put prox page in my application folder(like same folder as index.htm etc). It is much easier to debug and role out proxy related issues...
0 Kudos