Problems with Web Messenger

Last post 02-13-2008, 10:02 AM by Adam. 8 replies.
Sort Posts: Previous Next
  •  02-05-2008, 4:30 AM 36787

    Problems with Web Messenger

    I'm unable to integrate Web messenger successfully with my asp.net 2.0 Membership database.  I downloaded the software and copied it to my site, run the sql script and created the chat provider. However, the system is working inconsistently in both FF and IE: The problem is that, sometimes, when I open Web messenger, it does not retrieve my account, avatar and contacts, instead it shows my username as "My Name", default avatar, and my contacts are not populated.  This problem is intermittent because at times I'm able to connect successfully. I noticed also that if I change my status from "Online" to something else, then my username, avatar and description display correctly, but my contacts are not loaded.
     
    I appreciate with help in resolving these bug. I need to be confident that this system is bug-free before I deploy it to my members. I'm listing the code for my chat provider below. Please let me know if there are errors.  There is very little documentation for this system so I'm not sure that the code below is correct
      
     
    public class MMSChatProvider : CuteChat.ChatProvider
    {
        public MMSChatProvider()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public override string GetConnectionString()
        {
            //return the connection string , for the CuteChat
            return ConfigurationManager.ConnectionStrings["MMSDB"].ConnectionString;
        }

        public override string FindUserLoginName(string nickName)
        {
            ////find the login username from the display name or null if the user is not found.
            if (Membership.GetUser(nickName, false) == null)
                return null;
            else
                return nickName;
        }
        public override AppChatIdentity GetLogonIdentity()
        {
            //need to find the information of current user. Return null if user is anonymous.
            string loginname = HttpContext.Current.User.Identity.Name;
            return new AppChatIdentity(loginname, false, ToUserId(loginname), HttpContext.Current.Request.UserHostAddress);
        }
        public override bool GetUserInfo(string loginName, ref string nickName, ref bool isAdmin)
        {
           //return false , if the loginName is invalid.
           //otherwise set the nickName and isAdmin , and return ture
            if (Membership.GetUser(loginName, false) == null)
                return false;
            else
            {
                nickName = loginName;
                isAdmin = ("ADMINISTRATOR"==loginName.ToUpper());
                return true;
            }
        }
        public override bool ValidateUser(string loginName, string password)
        {
            //check the username/password .
            //if valid , set the cookie.
            // This function is for CuteLiveSupport only.
            return false;
        }

    }
    Filed under:
  •  02-08-2008, 1:55 AM 36875 in reply to 36787

    Re: Problems with Web Messenger


    Hachim,
     
     
    >>I'm unable to integrate Web messenger successfully with my asp.net 2.0 Membership database. 
     
    Please download and reference the integration code of the following two projects. They both use asp.net 2.0 Membership database.

     

    Personal Web Site Starter Kit for Visual Web Developer is fully functional sample applications to help you learn ASP.NET 2.0 and accomplish common Web development scenarios.

    visit Cute Chat & Web Messenger for Personal Web Site Starter Kit download

    Installing Cute Chat & Web Messenger for Club Web Site Starter Kit

    Club Web Site Starter Kit for Visual Web Developer is fully functional sample applications to help you learn ASP.NET 2.0 and accomplish common Web development scenarios.

    visit Cute Chat & Web Messenger for Club Web Site Starter Kit download

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-09-2008, 2:03 AM 36897 in reply to 36875

    Re: Problems with Web Messenger

    Hi Adam,
     
    I used the same code as the integration samples, however the problem remains unabated.  Here is was I get when I open web messenger:
     
     
    It fails to retrieve my login name even though i'm logged in .  when I try to type a name and description, I get the following error:
     
     
    This problem is intermittent since often I'm able to login successfully.  Please let me know what the fix is.
     
    Thanks.
     
    Filed under:
  •  02-09-2008, 3:30 AM 36903 in reply to 36897

    Re: Problems with Web Messenger

    Hachim,
     
    Have you tried the standalone version on this server?
     
    If the standalone version also doesn't work, the problem is not the integration code.
     
    If the standalone version works, you have to check your integrartion code.
     
    Keep me posted
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-09-2008, 9:07 AM 36910 in reply to 36903

    Re: Problems with Web Messenger

    Yes, the standalone version has the same problem.
     
    In fact, I just noticed that the messenger on your site also has the same problem. I'm logged in to your site and when I open messenger, neither my username, description nor contacts are populated. 
     
    Also the popup windows's status bar displays "Transfering data from cutesoft.net...". It looks as if the client is having communications problem with the server and hangs in the middle of some script. 
     
    I hope this information was useful.  Please advise.
     
    Hachim

    Filed under:
  •  02-12-2008, 4:40 AM 36965 in reply to 36910

    Re: Problems with Web Messenger

    Hachim,
     
    Are you sure you can get this error reproduced in the following example?
     
     
    If so, it will be a very strange issue. Because we can't find a way to reproduce it in all kind of browsers.
     
    Can you post a screenshot showing this issue and tell me the browser name, version?
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-12-2008, 9:10 AM 36975 in reply to 36965

    Re: Problems with Web Messenger

    The problem happens periodically. I tested on different platforms and configurations (IE/FF, Vista/XP, caching on/off, firewall on/off) The messenger fails sporadically and I cannot pinpoint the source of the problem.  The only thing I can think of is maybe a race condition in some multithreaded code in the system.  Here are the snapshots in IE and FF. 
     
     
     
    Filed under:
  •  02-12-2008, 10:25 AM 36977 in reply to 36910

    Re: Problems with Web Messenger

    Hachim:
    Yes, the standalone version has the same problem.
     
    In fact, I just noticed that the messenger on your site also has the same problem. I'm logged in to your site and when I open messenger, neither my username, description nor contacts are populated.  
     
    Do not know if it helps, but I have also the same problem on the messenger on this site (link at top to the right). My credentials are not "transported" and when clicking on the "My name", and "My description" the java script error occurs. I use XP with IE7
  •  02-13-2008, 10:02 AM 37002 in reply to 36975

    Re: Problems with Web Messenger

    Hachim,
     
    This issue is resolved.
     
    We've uploaded a new build.
     
    Please download the control again.
     
    Keep me posted.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML