Support forums

Live Support, Chat and HTML Editor
    
Welcome to Support forums Sign in | Join | Help Messenger
in Search

Loadbalancing

Last post 09-30-2008, 4:36 AM by teppyrock. 7 replies.
Sort Posts: Previous Next
  •  04-02-2008, 3:14 PM 38581

    Loadbalancing

    Hi, I'm setting up cutechat with two load balanced NLB cluster nodes and a single database/web server in single process mode. I've followed the instructions in the developers manual and set up the CuteChat.NLB settings in <appsettings> and set MultipleServerMode to true on the client and the server but I'm getting the error
     
    Unable to get portal instance because current application is not cutechat server
     
    I have integrated cutechat with our membership database using a custom Global.asax, and all was working on a standalone server.
     
    Any ideas?

  •  04-02-2008, 11:02 PM 38589 in reply to 38581

    Re: Loadbalancing

    Did you check developer guide http://cutesoft.net/ASP.NET+Chat/Developer-Guide/, "Load balancing" section?

  •  05-05-2008, 4:40 AM 40035 in reply to 38581

    Re: Loadbalancing

    We've got the same problem, did you manage to find a solution?
  •  05-05-2008, 9:11 AM 40042 in reply to 40035

    Re: Loadbalancing

    The following sections describe how to deploy Cute Chat and Web messenger in a clustered environment.

    By default, Load balancing support is disabled in Cute Chat and Web messenger. To deploy Cute Chat and Web messenger in a clustered environment, you need to have a separate server which is running in single-process mode.

    This server will be used as the chat server which will handle all chat requests. All servers participate in load balancing will pass the chat requests to this single server.


    Deployment architecture

    Chat Server Setup.


    1. Deploy cute chat/messenger to the server which is running in single-process mode.
    2. Add the following entry to web.config file:
      <add key="CuteChat.NLB" value="mode=server;password=test123;" />

    Deploy chat to all servers participate in load balancing


    1. Deploy cute chat/messenger to all servers participate in load balancing.
    2. Add the following entry to web.config file:
      <add key="CuteChat.NLB" value="mode=client;password=test123;url=http://localhost/NLBServer/CuteSoft_Client/CuteChat/NLBService.ashx" />

      In the above setting, the mode parametre should be "client", the password should match the password of chat server.
      The URL setting should be the full path of NLBService.ashx file in the chat server.

  •  06-05-2008, 11:34 AM 41171 in reply to 40042

    Re: Loadbalancing

     

    Hello Karen.

    I read your answer to Mr Cipriani, my job-colleague,

    and I tryed to test UnicuteChat in an isolated environment described as follow:

    *****************************************************

    **** UnicuteChat Server Side installation and configuration ****

    *****************************************************

    - Server name “unicutechatsrv”

    - Windows 2003 Server, Enterprise Edition, Service Pack 2, English Language

    - IIS, version 6.0

    - Asp.net, version 2.0.50727

    - UniCuteChat-WebApplication, version 4.1, installed as follow:

     on a virtual dir named "UniCuteChat",

     with dedicated application pool named "UniCuteChatPool" wich has assigned only UniCuteChat-WebApplication,

     in a web site named "UniCuteChatWebSite" containing only "UniCuteChat" virtual dir.

                     

    - UniCuteChat-WebApplication, version 4.1, configured as follow (“web.config” file content):

    <?xml version="1.0"?>

    <configuration>

    <appSettings>

                                   <add key="ConnectionString" value="server=devserver;database=CuteChat4;uid=sa;pwd=cipr1an1" />

    <add key="OnlineTimeout" value="300" />

    <add key="CuteChat.NLB" value="mode=server;password=test123;" />

     </appSettings>

                    <system.web>

                                   <compilation defaultLanguage="c#" debug="true"/>

                                   <customErrors mode="Off"/>

                                   <authentication mode="Forms">

                                                   <forms name=".UserManagementASPXAUTH" loginUrl="~/Login.aspx"/>

                                   </authentication>

                                   <authorization>

                                                   <allow users="*"/>

                                   </authorization>

                                   <trace enabled="true"></trace>

                                   <sessionState mode="InProc" timeout="20"/>

                                   <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

                    </system.web>

    </configuration>

                 

    *****************************************************

    **** UnicuteChat Client Side installation and configuration ****

    *****************************************************

    - Windows XP Professional, version 2002, Service Pack 2, Italian Language

    - IIS, version 5.1

    - Asp.net, version 2.0.50727

    - UniCuteChat-WebApplication, version 4.1, installed as follow:

     on a virtual dir named "UniCuteChat" with a protection level “media pool”,

     in a web site containing other virtual dirs.

                     

    - UniCuteChat-WebApplication, version 4.1, configured as follow (web.config file content):

    <?xml version="1.0"?>

    <configuration>

                    <appSettings>

                                   <add key="CuteChat.NLB" value="mode=client;password=test123;url=http://unicutechatsrv/unicutechat/CuteSoft_Client/CuteChat/NLBService.ashx" />

                    </appSettings>

                    <system.web>

                                   <compilation defaultLanguage="c#" debug="true"/>

                                   <customErrors mode="Off"/>

                                   <authentication mode="Forms">

                                                   <forms name=".UserManagementASPXAUTH" loginUrl="~/Login.aspx"/>

                                   </authentication>

                                   <authorization>

                                                   <allow users="*"/>

                                   </authorization>

                                   <trace enabled="true"></trace>

                                   <sessionState mode="InProc" timeout="20"/>

                                   <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

                    </system.web>

    </configuration>

    ************************************

    **** UnicuteChat Load-Balancing Test ****

    ************************************

    In Internet Explore 7.0 of client machine we digit HTTP-URL:

    http://localhost/unicutechat/Chat.aspx

    obtaining error:

    general error message:

                    “Unable to get portal instance because current application is not cutechat server.”

     

    detailed exception-error message:

                    “System.Exception: Unable to get portal instance because current application is not cutechat server.”

     

    source-code error message in file:

    Source File:c:"Inetpub"wwwroot"UniCuteChat"chat.aspx”   

    Row Number: “55”

    Row Code: “foreach(LobbyInfo lobby in ChatApi.GetLobbyInfoArray())”

     

    *****************

    **** Questions ****

    *****************

    
    
    
    
    What do you think about the installation and configuration? Something has wrong?
    About load-balancing documentation, for server side installation, what does it mean “Deploy cute chat/messenger to the server which is running in single-process mode”? 
     
    Regards,
    Angelo
     
  •  06-05-2008, 5:41 PM 41178 in reply to 41171

    Re: Loadbalancing

    When you say CuteChat has been installed on an isolate server. When you use browser to access Cutechat on that server, does CuteChat work properly?
  •  06-13-2008, 4:03 AM 41384 in reply to 41178

    Re: Loadbalancing

    Yes.
     
    If I digit the following URL in browser:
     
    I can see chat home page.
     
    CuteChat work properly.





     
  •  09-30-2008, 4:36 AM 44403 in reply to 41384

    Re: Loadbalancing

    I'm get same your problem!
    so any solution from Cutesoft?
    my system : 3 web server (IIS) loadbalancing + 1 MSSQL DB server.
    I'm deploy using this manual : http://cutesoft.net/ASP.NET+Chat/Developer-Guide/scr/Load-Balancing.htm
    when i'm run NLBservice from any server i'm get error :

    Missing Header CuteChat.NLB=1
    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.Exception: Missing Header CuteChat.NLB=1

    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:


    [Exception: Missing Header CuteChat.NLB=1]
       CuteChat.ChatNLBServiceHandler.ProcessRequest(HttpContext context) +1025
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

     


View as RSS news feed in XML