Re: ChatProvider not initialized

  •  05-26-2010, 3:14 AM

    Re: ChatProvider not initialized

    northerncs:
     
    When I go to the directory in question the samples appear to work.  I only have a basic knoledge of SOAP and XML posts.
     
    When you go to the above page do you get an error?
     
    Hi northerncs,
     
    I change your Global.asax, like below.
     
     public override bool ValidateUser(string loginName, string pwd)
     {
      string nickName=null;
      string password=null;
      bool isAdmin=false;
      bool exists=GetUserInfo(loginName,ref nickName,ref password,ref isAdmin);
      if(!exists)return false;
      if(password!=pwd)return false;

      System.Web.Security.FormsAuthentication.SetAuthCookie(loginName,false,"/");

      return true;
     }
     
    Change to
     
    public override bool ValidateUser(string loginName, string pwd)
     {
            if (HttpContext.Current.User.Identity.IsAuthenticated)
            {
                return true;
            }
            else { return false; }
     }
     
    ---------------------------------------------------------------------------------------
    Now, please create a test account to test it. and make sure the account is administrator.
     
    Regards,
     
    ken
View Complete Thread