Cannot convert from 'CuteChat.ChatPortal' to 'CuteChat.AppPortal' .

  •  04-21-2009, 10:54 AM

    Cannot convert from 'CuteChat.ChatPortal' to 'CuteChat.AppPortal' .

    hi
     
    i create my custom class for integrate with my existing application.
     
    class TaxTrustProvider: ChatProvider
    {}
    class TaxTrustDataManager : AppDataManager
    {
       ... my business logic is implemented here
       [functions]
    }
     
    now i want to create  ["TaxTrustDataManager"] into my web page to call my functions.
     
    but when i try to create object of  TaxTrustDataManager using following code it give me error.
     
    TaxTrustProvider Provider = new TaxTrustProvider();

            if (!CuteChat.ChatSystem.HasStarted)
            {
                CuteChat.ChatProvider.Instance = new TaxTrustProvider();
                CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
            }

            TaxTrustDataManager obj = new TaxTrustDataManager(Provider.CreateDataManagerInstance(CuteChat.ChatSystem.Instance.GetCurrentPortal()));

    1] cannot convert from 'CuteChat.ChatPortal' to 'CuteChat.AppPortal'   
     
    2] The best overloaded method match for 'CuteChat.ChatProvider.CreateDataManagerInstance(CuteChat.AppPortal)' has some invalid arguments.
     
    Regards
    gbpatel
     



View Complete Thread