ChatSystem not installed

Last post 10-02-2009, 12:11 PM by Adam. 8 replies.
Sort Posts: Previous Next
  •  09-08-2009, 3:25 PM 55448

    ChatSystem not installed

    I am trying to run the Messenger system in embed mode. When I drag the control onto a form, I get the following error:
     
    Stack Trace:

    [Exception: ChatSystem not installed]
    CuteChat.ChatSystem.get_Instance() +57
    CuteChat.ChatApi.GetCurrentPortalProperty(String propname) +122
    CuteChat.ChatApi.get_Strings() +39
    CuteChat.ResourceContext.LoadResources(CultureInfo ci) +12
    CuteChat.ChatCtrlBase.Render(HtmlTextWriter writer) +53
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
    System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
    System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
    System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
    System.Web.UI.Page.Render(HtmlTextWriter writer) +29
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
    What am I doing wrong? What do you need to know to help me?
     
    Thanks
  •  09-08-2009, 9:48 PM 55452 in reply to 55448

    Re: ChatSystem not installed

    This is the message I got when there was no database setup. You may just need to update the connection string correctly.
     
    Here's what mine looks like:

    <add key="ConnectionString" value="server=BRAINIAC\SQLEXPRESS;database=CutechatStandalone;Trusted_Connection=True;"/>

  •  09-09-2009, 10:13 AM 55482 in reply to 55448

    Re: ChatSystem not installed

    Have you created an application for testing? Is Global.asax under the root of this application?

    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

  •  09-09-2009, 2:12 PM 55490 in reply to 55482

    Re: ChatSystem not installed

    I re-wrote the global.asax and no longer get the ChatSystem not installed error.
     
    However, when I run a test page, with the embedded messenger chat control in it, I receive the following Java Script errors and nothing displays except the ad that says add Chat to your site.
     
     
    Below is the code in my Global.asax
     
    <%@ Application Language="VB" %>
    <%@ Import Namespace="CuteChat" %>

    <script runat="server">

        Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
            If Not Roles.RoleExists("Administrators") Then
                Roles.CreateRole("Administrators")
            End If

            ChatProvider.Instance = New SampleProvider()
            ChatSystem.Start(New AppSystem())
        End Sub
        
        Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
            ' Code that runs on application shutdown
        End Sub
            
        Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
            ' Code that runs when an unhandled error occurs
        End Sub

        Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
            ' Code that runs when a new session is started
        End Sub

        Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
            ' Code that runs when a session ends.
            ' Note: The Session_End event is raised only when the sessionstate mode
            ' is set to InProc in the Web.config file. If session mode is set to StateServer
            ' or SQLServer, the event is not raised.
        End Sub
        Public Overloads Function GetConnectionString() As String
            Return System.Configuration.ConfigurationManager.AppSettings("ConnectionString")
        End Function


        Public Overloads Function GetUserInfo(ByVal loginName As String, ByRef nickName As String, ByRef isAdmin As Boolean) As Boolean
            ' return false , if the loginName is invalid.
            ' otherwise set the nickName and isAdmin , and return ture

            Dim user As System.Web.Security.MembershipUser = System.Web.Security.Membership.GetUser(nickName, False)
            If user IsNot Nothing AndAlso user.IsApproved Then
                nickName = user.UserName
                isAdmin = Roles.IsUserInRole(user.UserName, "Admin")
                Return (True)
            End If
            Return (False)

        End Function


        Public Overloads Function FindUserLoginName(ByVal nickName As String) As String
            'find the login username from the display name or null if the user is not found.
            Dim user As System.Web.Security.MembershipUser = System.Web.Security.Membership.GetUser(nickName, False)
            If user IsNot Nothing AndAlso user.IsApproved Then
                Return (user.UserName)
            End If
            Return (Nothing)
        End Function

        Public Overloads Function GetLogonIdentity() As AppChatIdentity
            Dim context As HttpContext = HttpContext.Current
            If context IsNot Nothing Then
                If context.User.Identity.IsAuthenticated Then
                    
                    Dim loginName As String = context.User.Identity.Name
                    Dim cachekey As String = "NickName:" & loginName
                    Dim userid As String = GetUserID(loginName)
                    Dim nickName As String = Nothing
                    Dim isAdmin As Boolean = Roles.IsUserInRole("Admin")

                    Dim exists As Boolean = GetUserInfo(loginName, nickName, isAdmin)
                    If Not exists Then
                        Return (Nothing)
                    End If

                    Return (New AppChatIdentity(nickName, False, userid, context.Request.UserHostAddress))
                End If
            End If
            Return (Nothing)
        End Function

        Public Function GetUserID(ByVal loginName As String) As String
            Dim MyUser As MembershipUser = Membership.GetUser(loginName)
            Return MyUser.ProviderUserKey.ToString
            
        End Function

        Public Overloads Function ValidateUser(ByVal loginName As String, ByVal password As String) As Boolean
            ' check the username/password . if valid , set the cookie.


            If Not System.Web.Security.Membership.ValidateUser(loginName, password) Then
                Return (False)
            End If

            System.Web.Security.FormsAuthentication.SetAuthCookie(loginName, False, HttpRuntime.AppDomainAppVirtualPath)
            Return (True)


        End Function
        Public Function GetUserName() As String
            Dim CurrentContext As HttpContext = HttpContext.Current
            If CurrentContext.Request.IsAuthenticated Then
                Dim MyUser As MembershipUser = CurrentContext.User
                Return MyUser.UserName
            Else
                Return Nothing
            End If
        End Function
    </script>
     
  •  09-10-2009, 11:01 AM 55536 in reply to 55490

    Re: ChatSystem not installed

    I am surprised that 20 hours later there is not a response from the CuteChat Support.
     
    I cannot get the messenger program to work and do now know where to look next. 
     
    Are you able to help me?
  •  09-10-2009, 12:05 PM 55544 in reply to 55490

    Re: ChatSystem not installed

    How did you embed the messenger into your page?
     
    Have you included IntegrationUtility.js.aspx into your page?
     
    After adding the above script into your page, all you need to do is calling Chat_OpenMessengerDialog function.
     
    Example:
    <a href='###' onClick='Chat_OpenMessengerDialog()' >Messenger</a>

    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

  •  09-10-2009, 1:04 PM 55545 in reply to 55544

    Re: ChatSystem not installed

    Here is my code for the page which resides in the root level of the project
     
    <%@ Register src="CuteSoft_Client/CuteChat/EmbedMessenger.ascx" tagname="EmbedMessenger" tagprefix="uc1" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <a href='###' onClick='Chat_OpenMessengerDialog()' >Messenger</a>

        <uc1:EmbedMessenger ID="EmbedMessenger1" runat="server" />
        

    </asp:Content>
     
    The embedded messenger shows nothing.
     
    When I click the link to open a Chat Windows is get the following JS error:
     Chat_OpenMessengerDialog is not defined
     
    I don't get it, what am I doing wrong?
     
  •  10-01-2009, 2:29 PM 56023 in reply to 55545

    Re: ChatSystem not installed

    I am having the same problem.  The documentation on this is horrible and I'm not sure this tool was designed to work within a different application.  I've messed with this for WAY too long now and I'm no further than when I started.  What a pain.
  •  10-02-2009, 12:11 PM 56059 in reply to 56023

    Re: ChatSystem not installed

    bcampea:
    I am having the same problem.  The documentation on this is horrible and I'm not sure this tool was designed to work within a different application.  I've messed with this for WAY too long now and I'm no further than when I started.  What a pain.
     
    If you get "ChatSystem not installed"  error, it means you have problems in your integration code. So I suggest you install the standalone first. Once it works, then work on integrating.
     
    When working on the integration, you need to make sure CuteChat.ChatSystem.Start when application starts.
     
     CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
     
    For example:
     

    public class Global : System.Web.HttpApplication
     {
      private System.ComponentModel.IContainer components = null;

      static Global()
      {
       CuteChat.ChatProvider.Instance=new SamplePortal.Components.SampleProvider();
       CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
      }
    ...
            }


    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