System.Exception: ChatProvider not initialized

Last post 06-09-2011, 10:52 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  04-17-2009, 7:08 AM 51199

    System.Exception: ChatProvider not initialized


    Friends,
     
    We have tested the live chat application satisfactorily on our intranet server.
    Then we acquired a licence, and copied all the files and database to our live url.
    The invoke the LiveSupport button on the site we get a system exception error
    "System.Exception: ChatProvider not initialized".
     
    My two colleagues who had worked on the intranet deployment are on leave
    till the weekend, and I have the onus of getting the application working
    somehow today.
     
    Can anyone help, guide or provide some pointers please.
     
    Thanks
    Harish
    (Developer, id8labs)
     
  •  04-20-2009, 5:02 AM 51254 in reply to 51199

    Re: System.Exception: ChatProvider not initialized

    Hi id8labs,

    Do you forget this setp

     Initialize an instance of provider when the application starts:

    CuteChat.ChatProvider.Instance = new MyChatProvider();
    CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
     
     
    Regards,
     
    Ken
     
  •  06-09-2011, 6:51 AM 67871 in reply to 51254

    Re: System.Exception: ChatProvider not initialized

    Hi,
    I get the same error while integrating the Cute Live Support. I am using the free edition of this  software.
     
    Initialize an instance of provider when the application starts:

    CuteChat.ChatProvider.Instance = new MyChatProvider();
    CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
     
     I dont see this step mentioned anywhere in the documents. How do I add this step?
     
    Thanks
     
  •  06-09-2011, 10:52 PM 67890 in reply to 67871

    Re: System.Exception: ChatProvider not initialized

    Hi bindia,
     
    Please refer to http://cutesoft.net/live-support/Developer-Guide/scr/DeploymentIntegration.htm step 4 "b section".
     
    In our example, we add it in method "Init" of Global.asax.
     
    public override void Init()
    {
        base.Init();

        lock(typeof(CuteChat.ChatSystem))
        {
            if(!CuteChat.ChatSystem.HasStarted)
            {
                CuteChat.ChatProvider.Instance=new ExampleProvider();
                CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
            }
        }
    }
     
     
    Regards,
     
    ken
View as RSS news feed in XML