Install Problems

Last post 12-20-2007, 11:43 AM by Telp. 5 replies.
Sort Posts: Previous Next
  •  12-20-2007, 6:16 AM 35914

    Install Problems


    Hi, 
     
    I'm trying to add cutechat as a feature of my website. So i downloaded the standalone pack and the integration pack and have been trying to get it integrated.
     
    I think i have everything down except a few functions in the Global.asax and initializing the MyChatProvider().
     
    I'm looking for help on this step:
     
    CuteChat.ChatProvider.Instance = new MyChatProvider();
    CuteChat.ChatSystem.Start(new CuteChat.AppSystem());

    Its probably something basic and dumb...
     
    Firstly im using VB 
    Im putting the code in the Global.asax
    And it is telling me i need to declare ChatProvider and doesnt seem to recognise MyChatProvider
    Maybe its to do with my translation i'm currently using
     
    ChatProvider.Instance = New MyChatProvider()
    ChatSystem.Start(New CuteChat.AppSystem())
     
    Any help would be greatly appreciated.
     
     
    T.
  •  12-20-2007, 10:06 AM 35920 in reply to 35914

    Re: Install Problems

    Telp,
     
    Please use the following code:
     
       Public Overrides Sub Init()
            MyBase.Init()
           
            If Not CuteChat.ChatSystem.HasStarted Then
                CuteChat.ChatProvider.Instance = New DNNChatProvider()
                CuteChat.ChatSystem.Start(New CuteChat.AppSystem())
            End If
        End Sub

    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-20-2007, 10:35 AM 35924 in reply to 35920

    Re: Install Problems

    Hey Adam,
     
    Thanks for the response...
     
    Your solution still says "Type DNNChatProvider is not provided", Where before it was "Type MyChatProvider is not provided"
     
    Could i have missed a step in installing my license and dll files? Or am I missing an import? Also I'm not using DotNetNuke or IBuySpyPortal.
     
    Thanks, your suggestions are much appreciated,
    T

  •  12-20-2007, 11:06 AM 35926 in reply to 35924

    Re: Install Problems

    Replace this line with your own provider name:
     
    CuteChat.ChatProvider.Instance = New DNNChatProvider()
     
    For example,  CuteChat.ChatProvider.Instance = New MyChatProvider()
     
     
    http://cutesoft.net/ASP.NET+Chat/Developer-Guide/scr/DeploymentIntegration.htm

    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-20-2007, 11:20 AM 35930 in reply to 35926

    Re: Install Problems


    Am i supposed to create a class called MyChatProvider? i imagined it was in one of the dll's
     
    Or is this something in the system?

    I have updated the global.asax properly now (I hope!!!!) and this is the only item i'm stumbling on.
     
    Sorry i'm relatively new to .net  and i don't have a full understanding of cutechat i was hoping i could get it up and running first
     
    Thanks again for your help,
    T
  •  12-20-2007, 11:43 AM 35933 in reply to 35930

    Re: Install Problems

    hey,
     
    I found a fix by using New CuteChat.SampleProvider() but i got a new error now.
     
    Its saying....
     

    The ConnectionString property has not been initialized.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [InvalidOperationException: The ConnectionString property has not been initialized.]
    System.Data.SqlClient.SqlConnection.PermissionDemand() +856947
    System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) +22
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
    System.Data.SqlClient.SqlConnection.Open() +111
    CuteChat.ChatProvider.CreateDataProvider(AppPortal portal) +102
    CuteChat.AppDataManager.CreateDataProvider() +46
    CuteChat.ChatDataManager.GetPortalInfo() +38
    CuteChat.ChatApi.GetConfig(String name) +72
    CuteChat.ChatWebUtility.get_LoginUrl() +12
    CuteChat.ChatAdminPage.OnInit(EventArgs e) +120
    System.Web.UI.Control.InitRecursive(Control namingContainer) +321
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692
     
    ... but i've done what it said in the developers guide with the global.asax i.e.
     
     
    Public Function GetConnectionString(ByVal user As CuteSoft.Chat.UserIdentity) As String Implements CuteSoft.Chat.IHttpApplicationConnectionStringProvider.GetConnectionString
     
            Return System.Configuration.ConfigurationSettings.AppSettings("DSN")

        End Function
     
    Any help with this would be appreciated,
    T.

View as RSS news feed in XML