forbidden error while accessing the Chat Admin link?

Last post 12-27-2007, 2:05 AM by rajucse. 2 replies.
Sort Posts: Previous Next
  •  12-18-2007, 7:57 AM 35865

    forbidden error while accessing the Chat Admin link?

     
     
        I am integrated the cute chat with my own data base. Messenger is working fine. But i am unable to manage the settings of the messneger by using Admin Credentials. When i Click on Chat Admin link it is giving for bidden error.
     
    in the fallowing Code 
     <%if (CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator)
    {%>
     <Asp:HyperLink runat=server NavigateUrl="~/CuteSoft_Client/CuteChat/Admin/" ID="Hyperlink1" NAME="Hyperlink1">Chat Admin</Asp:HyperLink>
    <%} %>
     
    Here CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator is returning False. May be becuse of that one it is giving this error.
     
    What i have to do to return True. Please help me how to solve it.
     
    Thanks,
    Raj
  •  12-18-2007, 8:03 AM 35866 in reply to 35865

    Re: forbidden error while accessing the Chat Admin link?

    Raj,
     
    If you are using version 4.0, the correct code should be:
     
    <%if (CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator)
    {%>
     <Asp:HyperLink runat=server NavigateUrl="~/CuteSoft_Client/CuteChat/ChatAdmin/" ID="Hyperlink1" NAME="Hyperlink1">Chat Admin</Asp:HyperLink>
    <%} %>
     

    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

  •  12-27-2007, 2:05 AM 36044 in reply to 35866

    Re: forbidden error while accessing the Chat Admin link?

     I think it is 4.0 version.
     
     
    It is working fine if I use only your database. CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator is returning true.
     
    I am using my own users table and connecting to my database. I run all your scripts  in my database. For validating the user i am using my own users table.
     But in this case if i logged in as admin the CuteChat.ChatWebUtility.CurrentIdentityIsAdministrator  is returning false.
    Plese tell me where (In which table ) and based on what values it is determining whether the user is Admin or not.
    So that i can change accodingly.
     
    Thank you,
    Raj
     
View as RSS news feed in XML