Select to view content in your preferred language

Proxy in v2.1

4800
5
11-01-2010 11:52 AM
MattShetzer
Deactivated User
I'm really struggling with the Proxy using SFV 2.1 and Windows Server 2008.  I've followed the instructions at: http://help.arcgis.com/en/webapi/flex/help/index.html#proxy.htm with no luck.

When I ping my site:
http://server.petro-fs.com:8887/Proxy/proxy.ashx?ping
I receive a 403 - Forbidden: Access is denied.

I'm calling the Proxy from my config.xml with this:
<httpproxy>http://server.petro-fs.com:8887/Proxy/proxy.ashx<httpproxy>

What am I missing?


Thanks !
Matt Shetzer
Tags (2)
0 Kudos
5 Replies
DasaPaddock
Esri Regular Contributor
Have you also added useproxy="true" on the layer(s) that you want to use the proxy?

I'd try using a tool like HttpFox to see what the requests and responses are when you run the Viewer.
0 Kudos
MattShetzer
Deactivated User
I am using the UseProxy command next to the layer I want to proxy.

When I run SFV I receive:

http response status: 200
Fault Code: Client.CouldNotDecode
Fault Info: Error #1085
Fault Details: null

When I remark out:
<httpproxy>http://server.petro-fs.com:8887/Proxy/proxy.ashx<httpproxy>

The error goes away.  I'm really stuck and don't know where to look to from here.

The site is at:
http://server.petro-fs.com:8887/dev/

Matt
0 Kudos
DasaPaddock
Esri Regular Contributor
That error means the xml is not well formed.

Try:

<httpproxy>http://server.petro-fs.com:8887/Proxy/proxy.ashx</httpproxy>
0 Kudos
MattShetzer
Deactivated User
Dasa,
Thank you so much.  I've been looking at this until I'm blurry eyed, and missed that /.

Thanks for all your help !!
Matt
0 Kudos
DasaPaddock
Esri Regular Contributor
One tip is to try and load http://server.petro-fs.com:8887/dev/config.xml directly in Firefox or IE. They are pretty good at showing where errors are in xml.
0 Kudos