Error Integration CuteChat in ASP.NET

  •  10-02-2010, 9:10 AM

    Error Integration CuteChat in ASP.NET

    Hi,
    I am trying to integrate CuteChat into an ASP.NET website, which uses a custom Authentication mechanism. I have created a class in global.asax and override some of the methods.
    Then in a page I have added this:
    1. if (CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator)  
    2. {  
    3.         //Add a new URL to a place holder.  

     but the only method which is run in global.asax is this:
    1. public override AppChatIdentity GetLogonIdentity()  
    2.         {  
    3.             if (UserInfo.Current == null)  
    4.             {  
    5.                 return null;  
    6.             }  
    7.             return new AppChatIdentity(UserInfo.Current.UserName, false, UserInfo.Current.UserAccountID.ToString(), HttpContext.Current.Request.UserHostAddress);  
    8.         } 
     which makes the if statement to evaluate to false and hence the URL does not show up.
     
    Can anyone help me with this one?
    Thanks.
     
    P.S: I am using the version of CuteChat which I downloaded from this web site.
View Complete Thread