0 Replies Latest reply on Nov 2, 2011 1:12 AM by Guru J

    Google Chrome does not display the actual error sent from the .Net Service

    Guru J

      Hi,

       

      We have developed a project with Adobe Flex 4.0 as front end (GUI), .Net 2010 for business logics and Sql Server as back end.

       

      We have all our business logics in .Net and has been invoked from Flex through WCF service. Whenever there is a error in
      our business layer or data access layer, we will throw error.

       

      The thrown error is captured and shown to the end user. This is working fine in all browsers except Google Chrome.
      All errors from WCF service is captured as security error (Error #2032) and the custom error message is lost (or suppressed)
      by Google Chrome.

       

      1. Does any one know what could be the issue in Chrome and how to rectify the same?
      2. Does any one have suggestion or solution for this?


      Here is the sample code in the Server side,

      -->

              try
              {
                  return AddUser(objUser);
              }
              catch (Exception ex)
              {
                  throw new FaultException("Error in User Creation");
              }

      <--

      Error Message, we got in the Chrome side,

      -->

      (mx.messaging.messages::ErrorMessage)#0
        body = ""
        clientId = "DirectHTTPChannel0"
        correlationId = "XXXXX..."
        destination = ""
        extendedData = (null)
        faultCode = "Server.Error.Request"
        faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://webservice/User.svc"
        faultString = "HTTP request error"
        headers = (Object)#1
          DSStatusCode = 500
        messageId = "XXXXX..."
        rootCause = (flash.events::IOErrorEvent)#2
          bubbles = false
          cancelable = false
          currentTarget = (flash.net::URLLoader)#3
            bytesLoaded = 0
            bytesTotal = 0
            data = ""
            dataFormat = "text"
          errorID = 2032
          eventPhase = 2
          target = (flash.net::URLLoader)#3
          text = "Error #2032"
          type = "ioError"
        timestamp = 0
        timeToLive = 0


      Note: You can see that body is emptied (suppressed)
      <--

      Regards,

      Guru