Support forums

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

Loadbalancing

Last post 10-17-2008, 6:06 AM by teppyrock. 10 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?

  •  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?
  •  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-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

     


  •  10-09-2008, 10:31 PM 44757 in reply to 38581

    Re: Loadbalancing

    Hi all,
     
    the ChatApi.GetLobbyInfoArray is an obsoleted method because it's not compatible with the load balancing feature.
     
    but the Chat.aspx still use that function . We are very sorry about that , and will provide a quick update .
     
    this is for Chat.aspx "Unable to get portal instance because current application is not cutechat server" issue only.
     
    --
     
    If any one has difference issue , please contact me directly : terry @ cutesoft.net
     
    Regards , Terry .
  •  10-12-2008, 4:35 AM 44819 in reply to 44757

    Re: Loadbalancing

    Hi,
     
    Please download this Chat.aspx for CommunityServer
     
    Regards,
    Terry .
  •  10-17-2008, 6:06 AM 44957 in reply to 44757

    Re: Loadbalancing

    so, how about Grouplist.aspx ?

    I see it used :

    string GetForumChatterNames(object forumid)
        {
            string key="Forum:"+forumid;
       
            foreach(LobbyInfo info in ChatApi.GetLobbyInfoArray())
            {
                if(info.Lobby.Integration==key)
                    return info.JoinClient(",");
            }
            return "";
        }
        int GetForumChatterCount(object forumid)
        {
            string key="Forum:"+forumid;
            foreach(LobbyInfo info in ChatApi.GetLobbyInfoArray())
            {
                if(info.Lobby.Integration==key)
                    return info.ClientCount;
            }
            return 0;
        }

View as RSS news feed in XML