fleijdeigdjkf
New Member
I have a Flex application which makes calls to an asp application to get the XML data. Once in a while on the first load of the application I seem to get the following error:\[quote\] (mx.messaging.messages::ErrorMessage)#0 body = "" clientId = "DirectHTTPChannel0" correlationId = "7C71D23C-B5B3-A4E5-4008-DE44175CB72F" destination = "" extendedData = http://stackoverflow.com/questions/12622589/(null) faultCode = "Server.Error.Request" faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://live.blabla.co.za/ui/../MyPage.aspx?forcerefresh=1348053750767" faultString = "HTTP request error" headers = (Object)#1 DSStatusCode = 0 messageId = "51DA5C9E-F1D2-03D9-840E-DE4610528C0B" rootCause = (flash.events::IOErrorEvent)#2 bubbles = false cancelable = false currentTarget = (flash.net::URLLoader)#3 bytesLoaded = 0 bytesTotal = 0 datahttp://stackoverflow.com/questions/12622589/= "" dataFormat = "text" errorID = 2032 eventPhase = 2 target = (flash.net::URLLoader)#3 text = "Error #2032" type = "ioError" timestamp = 0 timeToLive = 0\[/quote\]my flex code looks something like this:\[code\]<s:HTTPService id="GetBoards" resultFormat="e4x" url="../MyPage.aspx?forcerefresh={timestamp}" useProxy="false" method="POST" fault="Alert.show(event.message + 'GetFirstReportLinkFieldList: There has been an a problem with the connection.\nPlease check your internet connnection and try again.','Connection Error')" result="DoMethod()" showBusyCursor="true" > <s:request xmlns=""> <AtrributeID>{id}</AttributeID> </s:request> </s:HTTPService>\[/code\]and my csharp code looks like this:\[code\]protected void Page_Load(object sender, EventArgs e){ int id = Convert.ToInt32(Request.Form["AtrributeID"]); Response.CacheControl = "no-cache"; Response.AddHeader("Pragma", "no-cache"); Response.Expires = -1; Response.ContentType = "text/xml"; Response.Write(GetList(id));} private string GetList(int id){ ..... return xml;\[/code\]}If I refresh then everything seems to work fine from then on. How can I handle this error? I do not want the user to have to refresh. Please help. Thank you.