Re: Unable to Integrate

  •  05-12-2005, 4:50 PM

    Re: Unable to Integrate

    Terry,

    Here are the details of my exception, and a piece of the code that raises the error. Please help me solve the problem.

    Thanks,
    -Conrad


    *****************************
    Code from ChatLinkModule.ascx.cs
    *****************************
      /// <summary>
      /// Populates the controls, sets the links, etc.
      /// </summary>
      private void bindData()
      {
       CuteSoft.Chat.Chat_Lobby[] lobbies = null;
       try
       {
        // Setup the dropdownlist of all rooms for ESOC users
        lobbies = ChatWebUtility.Api.GetLobbies();  //CuteSoft.Chat.ChatApi.Current.GetLobbies();
       }
       catch(Exception ex)
       {
        string error = ex.ToString();
        throw ex;
       }

       .......

    *****************************
    Caught Exception
    *****************************
    ex
    {"'&#x12;', hexadecimal value 0x12, is an invalid character. Line 1, position 2." }
        [System.Xml.XmlException]: {System.Xml.XmlException}
        System.Object: {System.Xml.XmlException}
        _className: "System.Xml.XmlException"
        _COMPlusExceptionCode: -532459699
        _exceptionMethod: {System.Reflection.RuntimeMethodInfo}
        _exceptionMethodString: null
        _helpURL: null
        _HResult: -2146232000
        _innerException: { }
        _message: "System error."
        _remoteStackIndex: 0
        _remoteStackTraceString: null
        _source: "System.Xml"
        _stackTrace: {System.Array}
        _stackTraceString: "   at System.Xml.XmlScanner.ScanContent()\r\n   at System.Xml.XmlTextReader.ParseRoot()\r\n   at System.Xml.XmlTextReader.Read()\r\n   at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()\r\n   at System.Xml.XmlValidatingReader.Read()\r\n   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)\r\n   at System.Xml.XmlDocument.Load(XmlReader reader)\r\n   at System.Xml.XmlDocument.Load(String filename)\r\n   at n.a(UserIdentity A_0)\r\n   at CuteSoft.Chat.Impl.ServiceLayerChatApiDecorator.BeforeInvoke()\r\n   at CuteSoft.Chat.DynamicAssembly.ServiceLayerChatApiDecoratorProxy.GetConfig_InterceptedCall(String configname)\r\n   at CuteSoft.Chat.DynamicAssembly.WebLayerChatApiDecoratorProxy.GetConfig_InterceptedCall(String configname)\r\n   at CuteSoft.Chat.ChatWebUtility.GetUserAdapter()\r\n   at CuteSoft.Chat.ChatWebUtility.get_CurrentIdentity()\r\n   at CuteSoft.Chat.Impl.WebLayerChatApiDecorator.BeforeInvoke()\r\n   at CuteSoft.Chat.DynamicAss
    embly.WebLayerChatApiDecoratorProxy.GetLobbies_InterceptedCall()\r\n   at Mfs.EsocCeis.Presentation.Web.Chat.ChatLinkModule.bindData() in c:\\inetpub\\wwwroot\\esocdb\\chat\\chatlinkmodule.ascx.cs:line 76"
        _xcode: -532459699
        _xptrs: 0
        HelpLink: null
        HResult: -2146232000
        InnerException: { }
        Message: "'&#x12;', hexadecimal value 0x12, is an invalid character. Line 1, position 2."
        Source: "System.Xml"
        StackTrace: "   at System.Xml.XmlScanner.ScanContent()\r\n   at System.Xml.XmlTextReader.ParseRoot()\r\n   at System.Xml.XmlTextReader.Read()\r\n   at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()\r\n   at System.Xml.XmlValidatingReader.Read()\r\n   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)\r\n   at System.Xml.XmlDocument.Load(XmlReader reader)\r\n   at System.Xml.XmlDocument.Load(String filename)\r\n   at n.a(UserIdentity A_0)\r\n   at CuteSoft.Chat.Impl.ServiceLayerChatApiDecorator.BeforeInvoke()\r\n   at CuteSoft.Chat.DynamicAssembly.ServiceLayerChatApiDecoratorProxy.GetConfig_InterceptedCall(String configname)\r\n   at CuteSoft.Chat.DynamicAssembly.WebLayerChatApiDecoratorProxy.GetConfig_InterceptedCall(String configname)\r\n   at CuteSoft.Chat.ChatWebUtility.GetUserAdapter()\r\n   at CuteSoft.Chat.ChatWebUtility.get_CurrentIdentity()\r\n   at CuteSoft.Chat.Impl.WebLayerChatApiDecorator.BeforeInvoke()\r\n   at CuteSoft.Chat.DynamicAssembly.W
    ebLayerChatApiDecoratorProxy.GetLobbies_InterceptedCall()\r\n   at Mfs.EsocCeis.Presentation.Web.Chat.ChatLinkModule.bindData() in c:\\inetpub\\wwwroot\\esocdb\\chat\\chatlinkmodule.ascx.cs:line 76"
        TargetSite: {System.Reflection.RuntimeMethodInfo}

View Complete Thread