GetUserInfo Error Question

  •  09-23-2008, 8:30 PM

    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
View Complete Thread