FlexViewer 2.4 strange error #2032

7645
17
10-06-2011 04:56 PM
ChrisBente
New Contributor
This error has been driving me crazy for days now. I've tried mining the web and the Esri forums for any information that would help me rectify/diagnose the error. Tried everything out there, still with no luck. It's not a cross domain issue. The server, map services, and I am all on the same domain. It's not a MIME types issue or a mixing of IP addresses with machine names issue. It occurs randomly at least once a day, doesn't matter which web browser is used (IE, FF) usually at the first instance the server has to "spin up" per user invoke and serve the data in the morning, and it seems to be affecting random map services (of which there are 8). Here is the actual error message:

County_Cities layer failed to load: Fault code: Server.Error.Request

Fault info: HTTP request error

Fault details: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://gis01/ArcGIS/rest/services/XXXXXX/County_Cities/MapServer?f=json"]. URL: http://gis01/ArcGIS/rest/services/XXXXXX/County_Cities/MapServer?f=json

Here are the server specs:
Running Windows Server 2003, Standard Edition, SP2
IIS Version 6
ASP.Net Version 2.0.50727

I've adjusted the "Periodically check and repair data connections for idle instances" inside Manager for all the operational layers, changing the defualt setting from 30 to 15 minutes, then inside the server, I changed the settings for the ArcGIS ServicesAppPool Properties, under the performance tab for idle timeouts to 30 minutes and enabled pinging every 30 minutes. That still did not solve the issue.

Here is a an example of the mapservice URL contained within my project's config.xml file:
<layer label="County - Cities" type="dynamic" alpha="0.5" visible="true"
url="http://gis01/ArcGIS/rest/services/XXXXXX/County_Cities/MapServer"/>

the application was buillt with Adobe Flash Builder 4.5 and the Flex 4.5 SDK. Have Flash Player 10.3
installed, my compiler arguments are as follows: -locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true

I've tried moving the operational layers into the pre-compiled Flex Viewer 2.4 just to test and see if it was something to do with the way I was compiling, but the same error occurs with the pre-compiled version as well, which is leading me to believe that it's something to do with the IIS or Server Configuration.

I am stumped. Has anyone else battled this error with any success? If so, please share your solution and chime in with further diagnostics for me to troubleshoot. Any and all help here is much appreciated.

Thanks.
Tags (2)
0 Kudos
17 Replies
MattShetzer
New Contributor
I'm having the exact issues as well since 2.4.  I have tried the IIS config above, but I still get this intermittently.  I have the same thing with 2 different servers running different services.

Has anyone found a resolution for this behavior?

Thank you,
Matt
0 Kudos
TomGiles
New Contributor
Just checking as you say you have two servers - IIS settings were applied to both?
0 Kudos
MattShetzer
New Contributor
IIS on both with windows authentication.  The error is only every now and then, and I haven't been able to figure what is causing it.  I never got it before 2.4. 

Thanks for the help.
Matt

Just checking as you say you have two servers - IIS settings were applied to both?
0 Kudos
MattShetzer
New Contributor
anyone else still having this problem?  It almost seems like a timeout problem.

Thanks in advance !
Matt

IIS on both with windows authentication.  The error is only every now and then, and I haven't been able to figure what is causing it.  I never got it before 2.4. 

Thanks for the help.
Matt
0 Kudos
JanieGoddard
Occasional Contributor III
I'm getting the #2032 error off and on AND on different web services also. My first fix was under the web service pooling tab to change "The Maximum time a client will wait to get a service:" from the default 60 seconds (1 minute) to 180 seconds (3 minutes). I noticed in the service statistics it was taking around 40 seconds for the server to create the instance of the service. That seemed to help some. I was still receiving the error once in awhile especially in the morning when the web services have been idle. So I took another person's suggestion and changed under the web service Processes tab to click on the "Periodically check and repair data connections for idle instances". I left the defaul minutes to 30 minutes. That stopped all of the #2032 errors. But now I bring up a flex viewer and the webservice gives no error on screen or the GIS Server log. But the web service simply doesn't show anything. I stop and start the service and the service becomes visible on the server it is housed on in an internal server with my data. However I'm not getting the external server web service copy of the service refreshed. So..... to fix that I change the web services Processes tab the "Recycle this Configuration every" from the default 24 hours to one hour "Starting at:" in 15 minutes from the time it is currently having troubles. That refreshed the web service on the external server. It is like there are old instances or processes hanging around out there with the blank web service. I decided I'm going to switch all my web services to Recycle every hour starting at 7:45 am to keep the external web services refreshed and ready to go at 8:00 AM.
Hope this helps someone!
Janie
0 Kudos
BarryTurcotte
New Contributor
All...

I just started getting this error yesterday morning after I changed the names of a few of my viewers after upgrading to 2.5.  The exact error reads is shown here:

[ATTACH=CONFIG]11625[/ATTACH]

I have read every forum I could find on the subject and tried virtually every suggestion, but nothing seems to change.  I am not a developer in the slightest, I am a GIS analyst with an environmental background so I only know enough to be dangerous to customize the viewers to my needs.  I know it has to be something simple that I'm overlooking but I can't figure it out.  I've checked the urls for mistakes, I've checked permissions to all the folders, I've checked my cross domain file and nothing is jumping out at me.  My url for the service works fine via browser in Server Manager.  And unlike others, it's not an occasional error message, it happens every time I open my viewer(s) and with every browser (IE, FireFox, etc.)  I can close the error message that pops up for all 10-15 operational layers in that service and my viewer works, but obviously it doesn't have any of my data.  I have several of Robert's custom widgets running, and I've checked code in those that use data from this service and everythings seems fine. 

Please Help!

-Barry
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
AshleyPeters
Occasional Contributor III
Barry,

I had a similar problem and just resolved it yesterday. Have you tried adding a Cache-control to your http headers on your server?

Ashley
0 Kudos