IIS 7.5 and Proxy page problem

1797
10
01-11-2012 01:58 PM
MaziyarBoustani
New Contributor
I am using the IIS 7.5 and going use the proxy for editing features, but the problem I have I can't find the find the proxy directory in the default web site in order to create a web application.
I used the link below but it is for IIS 5 and 6, but I am using IIS 7.5.
How can I find the proxy directory?
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm
0 Kudos
10 Replies
AndyGup
Esri Regular Contributor
Mboustani, the default location on your web server should be c:\inetpub\wwwroot. This is the directory to use when you follow the directions specified in Step 1 of the link you posted.

Was there something specific about IIS 7.5 that isn't making any sense?

-Andy
Esri Developer Network
0 Kudos
MaziyarBoustani
New Contributor
I downloaded two proxy files (proxy.config and proxy.ashx) and made a Proxy folder in the C:\inetpub\wwwroot directory.
The second step says: "Unzip and save then contents to your Web server." I don't know is it same as first step I did?
And then when I go to the IIS manager, default web site, I can see the proxy folder I added but when I right click, there is no properties option to choose.
0 Kudos
AndyGup
Esri Regular Contributor
Ah, I think I understand now. You should always use IIS Manager to create new web directories. That way the directory will have the correct permissions assigned to it. Here are my suggestions:

1) First, delete the proxy directory that you already created. It probably doesn't have the right permissions and attributes.
2) In IIS Manager, right click "Default Web Site" > Add Application. Give it a alias/name (e.g. proxy) and in the "Physical Path" field create your new directory folder.
3) Download and copy the contents from here and paste them into the new directory.
4) In your mapping app, set the proxy directory as follows:  esri.config.defaults.io.proxyUrl = "/proxy/proxy.ashx";
5) Test your app using Firefox Firebug, or Fiddler.
6) (Edited) Forgot to mention that you may need adjust the settings in proxy.config so that you can access your own ArcGIS Server.

I hope that helps,

-Andy
Esri Developer Network
0 Kudos
MaziyarBoustani
New Contributor
Thank you Andy for your help and I tried the steps.
I use the this sample and just changed the proxy directory and feature service to mine, know I could select features and edit them like change the location of vertex, but can't be saved and when I refresh the page features are all the same as before.
How can I save the edited features?
0 Kudos
AndyGup
Esri Regular Contributor
Have you taken a look at the REST request/response from the editing session in Firebug or Fiddler? Did you see any errors?

-Andy
Esri Developer Network
0 Kudos
MaziyarBoustani
New Contributor
Should I use the " applyEdits " in my code to save edited features?

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/featurelayer.htm#apply...
0 Kudos
CarlosIsaac_Cabrera
Occasional Contributor II
Should I use the " applyEdits " in my code to save edited features?

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/featurelayer.htm#apply...


I'm in the same boat here.  I have deployed the test editing application and I can't edit at all.  It won't drop a point.  I get the progress bar but nothing happens.
0 Kudos
derekswingley1
Frequent Contributor
This comes up from time to time and it's usually best to contact support to sort out these kind of issues because there are so many components outside the JS API involved. Here's a link to a thread from earlier today with a similar problem:  http://forums.arcgis.com/threads/49497-Editor-Widget-not-saving-newly-created-features
0 Kudos
CarlosIsaac_Cabrera
Occasional Contributor II
This comes up from time to time and it's usually best to contact support to sort out these kind of issues because there are so many components outside the JS API involved. Here's a link to a thread from earlier today with a similar problem:  http://forums.arcgis.com/threads/49497-Editor-Widget-not-saving-newly-created-features


Well i added the sample server 3 to the proxy list and the esri sample points work.  My sde points don't.  😞
0 Kudos