GetUserInfo Error Question

Last post 01-13-2009, 11:41 AM by MarcD. 3 replies.
Sort Posts: Previous Next
  •  09-23-2008, 8:30 PM 44226

    GetUserInfo Error Question

    We've recently integrated Cute Chat with our current member database.  Everything seems to work fine under normal circumstances, but we've noticed one error that seems to be tied back to the global.asax file that I haven't been able to quite clear up (I'm new to C# and .NET 2.0 as well).  It's an obscure error, but it generates the same error message in a loop filling up the Errors folder.
     
    Apparently the error occurs when:
     
    1. A user is in a chat room and then logs out of the main site from a different page while leaving the chat page open.
    2. Another user logs in from the same computer with the chat room still open and refreshes the chat room page.
     
    The chat room will then show both users temporarily which causes the error below to repeat in a cycle as a NullReferenceException.txt in the errors folder, but it doesn't seem to affect anything in the chat room or on the website (this is rare, but it happens).
     
    System.NullReferenceException: Object reference not set to an instance of an object.
       at ASP.AcApp.AspNetChatProvider.GetUserInfo(String loginName, String& nickName, Boolean& isAdmin)
       at CuteChat.ChatProvider.IsAdministrator(String userid)
       at CuteChat.AppDataManager.IsAdministratorId(String userid)
       at CuteChat.ChatLobbyChannel.IsModerator(ChatIdentity identity)
       at CuteChat.ChatPlaceUser.GetItemInfo(ChatConnection conn, String formsg, String& type, String[]& args)
       at CuteChat.ChatPlaceItem.RenderItemInfo(ChatConnection conn, String msgid)
       at CuteChat.ChatPlaceUser.OnRemoveForConnection(ChatConnection conn, String reason)
       at CuteChat.ChatPlaceItem.e(String A_0)
       at CuteChat.ChatManager.RemovePlaceItem(ChatPlaceItem item, String reason)
       at CuteChat.ChatManager.ClosePlaceConnection(ChatConnection conn, String reason)
       at CuteChat.ChatManager.Maintain()
       at CuteChat.ChatPortal.Maintain()
     
    Thank you in advance for any insight anyone might have.
     
    - Marc
  •  09-25-2008, 6:57 AM 44285 in reply to 44226

    Re: GetUserInfo Error Question

    In your custom AcApp class, put all code within a Try...Catch block.
  •  01-12-2009, 11:58 AM 47660 in reply to 44285

    Re: GetUserInfo Error Question

    Sorry for the delayed reply... been redirected for a while.
     
    We put the try...catch on and the error above is, I'm assuming, being caught, but the one error that is generating every few minutes now is

    System.Data.SqlClient.SqlException: String or binary data would be truncated.
    The statement has been terminated.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at CuteChat.SqlServerDataProvider.LogMessage(ChatPlace place, ChatIdentity sender, ChatIdentity target, Boolean whisper, String text, String html)
       at CuteChat.ChatDataManager.e.Process(IChatDataProvider provider)
       at CuteChat.ChatDataManager.Maintain()

     I saw a couple of posts related to this error and was wondering if we need to download the control again.    We have the 10-30-2008 version unless the package has been updated and the date has not changed. 

    Any thoughts anyone?

  •  01-13-2009, 11:41 AM 47694 in reply to 47660

    Re: GetUserInfo Error Question

    Looks like updating to version 5 fixed it. :)  Got thrown off by the file date listed on the download page.
View as RSS news feed in XML