Custom chatprovider

Last post 02-26-2008, 10:33 AM by kaspario. 2 replies.
Sort Posts: Previous Next
  •  02-14-2008, 4:28 PM 37061

    Custom chatprovider

    Hi,
     
    I've created a custom class (in a .NET class library) that inherits ChatProvider and put the resulting dll in the /bin folder of my CuteChat application.
     
    I've also added the following lines in the global.asax.cs file in the Application_Start function:
     
    CuteChat.ChatProvider.Instance=new CADChatProvider();
    CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
     
    Of course, CADChatProvider is the class that inherits ChatProvider. I've also added a reference to my dll at the beginning of the file:
     
    using CADChat;
     
    Now, I wonder what is missing. I've even tried restarting IIS just to make sure Application_Start would be executed but, basically, my dll doesn't seem to be taken into account. I could write
     
    CuteChat.ChatProvider.Instance=new ICantGetThisThingToWork();
    CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
     
    in Application_Start and it'd be just the same. No error, no nothing, just like this thing is not executed at all... Anyway, everytime I go to a Channel, I'm always a guest... What have I done, not done or done wrong???
     
    Thanks in advance.
  •  02-18-2008, 11:56 AM 37120 in reply to 37061

    Re: Custom chatprovider

    kaspario,
     
    >>following lines in the global.asax.cs
     
    Have you recompile your project after modification?


    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

  •  02-26-2008, 10:33 AM 37363 in reply to 37120

    Re: Custom chatprovider

    Ok, thanks. I've solved my problem. I'm not sure that's the way I was supposed to do it but I simply removed the original global.asax to replace it by my own and it started using my provider... go figure... Before I came to this solution, I even tried renaming a bunch of things in global.asax (even the namespace) and I couldn't break anything... It was almost like  the chat system was not even using the file but I knew it wasn't the case because renaming the global.asax file had an effect.
     
    Anyway, I'm slowly getting where I want to be. Thanks.
View as RSS news feed in XML