Error #2032

4399
7
05-13-2011 07:47 AM
MarkSmith1
Occasional Contributor
Hello,

I've customized a Flex Viewer so that I can pass it parameters on the URL to query a mapservice layer with a particular feature id and then zoom the map to the found feature. A few end users are getting the following error message with they launch the viewer with these URL parameters:

RPC Fault faultstring="Error #2032" faultcode="null" faultDetail="null"

I traced the browser activity with Fiddler and noticed that when the viewer sends a query request to the map service the response is a request for client credentials. When I (and many of my colleagues) run the viewer we don't encounter this problem and the response is successful.

The URL looks like this:

/ArcGIS/rest/services/MyServiceName/MapServer/0/query?f=amf&returnGeometry=true&where=ID%3D5818&spatialRel=esriSpatialRelIntersects

I'm using ArcGIS Server 10. I'm currently asking the effected users to try a version of the viewer that I have changed the requested format from AMF to JSON. I'm waiting to hear what the results are.

Any ideas about what is going on?

Thanks

Mark
Tags (2)
0 Kudos
7 Replies
RobertMyers
New Contributor
Are those users members of the ArcGIS Server users group, agsuser in order to access the map service?
0 Kudos
MarkSmith1
Occasional Contributor
No they're not. Do I have to add every user who is going to access the service to agsuser? It's not a protected service so it would be nearly impossible for me to anticipate who is going to access it.

I switched the format of the response to JSON instead of AMF and now it's working without a hitch for those folks who were having issues.
0 Kudos
NicolasDistefano
New Contributor
[...]

I switched the format of the response to JSON instead of AMF and now it's working without a hitch for those folks who were having issues.


Thank you!

All I did was add this line of code before the execute() methods on my querytasks and it worked: queryT.useAMF = false;
0 Kudos
MarkSmith1
Occasional Contributor
Yup, that's exactly what I did too.

Can anyone shine some light on why AMF can be problematic for some users?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mark,

  Are you running SP1 or SP2 for ArcGIS 10 Server? It seems like I remember there being a AMF issue that was addressed.
0 Kudos
MarkSmith1
Occasional Contributor
SP1. I'll download and install SP2 ASAP. Thanks.
0 Kudos
JohnZhang
New Contributor III
If the "Error #2032" only happens on some machines (when loading the app) but the app works on other machines, then please try to replace the index.swf from a new download of flexviewer.

We had seen this issue with some customers. Hope this helps.
0 Kudos