So I was looking into this more and found that if I debug the proxy.ashx (using visual studio) and run it on localhost (http://localhost:3274/appname/proxy.ashx) I am able to use the proxy to navigate to the applyedits rest endpoint. However, if I try to use the proxy from where the app sits on my server i get the error and cannot get to the applyEdits rest endpoint.
Summing it up...
This works...
http://localhost:3274/appname/proxy.ashx?http://servername:6080/arcgis/rest/services/foldername/serv...
This does not work and I get the error.
http://servername/websites/appname/proxy.ashx?http://servername:6080/arcgis/rest/services/foldername...
The proxy.ashx and proxy.config are saved in the same folder as the html page for the app. Kind of at a loss as to what to check next. As I mentioned in my first post, this only occurred after upgrading to server 10.1 so I think it might have to do with adding the port number (servername: 6080) to the service rest endpoint url.
<?xml version="1.0" encoding="utf-8" ?> <ProxyConfig mustMatch="true"> <serverUrls> <serverUrl url="http://serverName:6080/instance/rest/services/" matchAll="true"></serverUrl> </serverUrls> </ProxyConfig>
esri.config.defaults.io.proxyUrl = "proxy.ashx"; //Setting to use proxy file esri.config.defaults.io.alwaysUseProxy = false;