Select to view content in your preferred language

Unable to Load Proxy page

804
1
02-15-2012 11:56 AM
VIKRANTKRISHNA
Regular Contributor
I am using a token based service and I am passing request using the function below.

esri.request({
            url: "https://wsbv7/WebGIS/tokens",
            content: {
              request: "getToken",
              username: user,
              password: password
            },
            handleAs: "text",
            load: init,
            error: tokenRequestFailed
       },{useProxy:false});

no matter what I put for useProxy:true or useProxy:false or completely remove this parameter, I can see the request going through proxy.ashx in firebug and its giving me error "Unable to Load Proxy page"

Any idea?
0 Kudos
1 Reply
AndyGup
Esri Regular Contributor
@vikrant retry your request, then check the web server log files for the full error message. If you have the ability, also try opening a web browser on the web server and running the same application using the localhost domain name; e.g. http://localhost/myapp.html. For security reasons, many production web servers are configured to not return the full error message to a remote client. However, if you run it locally you may be able to see the error.

-Andy
Esri Developer Network
0 Kudos