6 Replies Latest reply on May 14, 2012 7:57 AM by crackernutter

    Proxy page error using editor widgit?

      I am getting an error when I try to use the default editor widgit, and I think it might have to do with the proxy page...
      I'm working on a dev server, and I essentially copied the code from this Esri sample and modified the links to my feature service and geometry service. 
      When testing, I was at first getting a console error (I'm using firebug) of
      "esri.config/defaults.io.proxyUrl is not set"
        So I followed the instructions to create a proxy for .NET server (I'm using IIS 7 so had to fill in the gaps since the documentation is for IIS 5 & 6).  The only snafu I ran into was when I was configuring/adding the proxy application is IIS, the test settings would fail using  "Application User (pass through authentication)".  So I clicked the "connect as" button and connected using a specific user, the ArcGISSOC account, and the "Test Settings" worked.  I modified the proxy.config file to include
      <serverUrl url="http://win-2rninrlf7l8/ArcGIS/rest/services/WebMap/FeatureServer/ "matchAll="true"></serverUrl> 
      and added
      esri.config.defaults.io.proxyUrl = "/proxy/proxy.ashx";
      to my page (the 2 proxy files are in C:\inetpub\wwwroot\proxy).
      My page loads fine, but when I click on the default editor template and then click on the map to add a point, I get the following console error via Firebug:
      "Error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.8 Line: 14"]"
        If I replace the proxy URL in my code to some junk, I get the same error, so I'm thinking it has something to do with how I've configured my proxy page.  I've tried various combinations of proxyURL URI's but everything seems to return that error, except if I try to use the absolute path
      esri.config.defaults.io.proxyUrl = "C:/inetpub/wwwroot/proxy/proxy.ashx";
      in which case I get this error:
      Error: Permission denied for <file://> to create wrapper for object of class UnnamedClass

      Any assistance resolving this issue would be of great help.