Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Community Server Problem

Last post 09-06-2006, 1:16 AM by Pfors. 21 replies.
Page 1 of 2 (22 items)   1 2 Next >
Sort Posts: Previous Next
  •  08-30-2006, 12:48 PM 22202

    Community Server Problem

    When I replace the Global.asax file and use my site I get this error in the Event Logs:

    S.Web Stopped CS.Web Stopped

    _shutDownMessage=Change in GLOBAL.ASAX
    Change in GLOBAL.ASAX

    _shutDownStack= at System.Environment.GetStackTrace(Exception e)
    at System.Environment.GetStackTrace(Exception e)
    at System.Environment.get_StackTrace()
    at System.Web.HttpRuntime.ShutdownAppDomain()
    at System.Web.HttpApplicationFactory.OnAppFileChange(Object sender, FileChangeEvent e)
    at System.Web.DirectoryMonitor.OnFileChange(FileAction action, String fileName)
    at System.Web.DirMonCompletion.OnFileChange(FileAction action, String fileName)

    This stops all the jobs from running.  It is only after I replace the Global.asax file with the original from CS that my site comes back to life.  Any idears about what is going on?  As it is now, I cannot use the chat on my site at all.

    Thanks!

  •  08-30-2006, 1:00 PM 22203 in reply to 22202

    Re: Community Server Problem

    ibanez991,
     
    Which version of Community Server are you using?
     
    Which version of .NET framework?
     
     

    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

    Filed under:
  •  08-30-2006, 1:11 PM 22206 in reply to 22203

    Re: Community Server Problem

    Version: 2.1.60809.935 with .net 1
  •  08-30-2006, 1:29 PM 22209 in reply to 22206

    Re: Community Server Problem

    ibanez991,
     
    Are you using the DLL and files under Framework 1.x Web?
    Can you post your original Global.asax file?
     
     

    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

  •  08-30-2006, 1:38 PM 22210 in reply to 22209

    Re: Community Server Problem

    Yes for the 1.x files.  Here is my global.asax file.

    <%@ Application Language="C#" %>
    <%@ Import Namespace="CuteSoft.Chat" %>
    <%@ Implements Interface="CuteSoft.Chat.IHttpApplicationConnectionStringProvider" %>
    <%@ Implements Interface="CuteSoft.Chat.IHttpApplicationUserAdapter" %>
    <%@ Implements Interface="CuteSoft.Chat.IHttpApplicationDataProvider" %>
    <%@ Implements Interface="CuteSoft.Chat.IHttpApplicationSupportLogin" %>
    <script runat=server Language=C#>

        static public string AppConnectionString
        {
            get
            {
                string connectionstring=System.Configuration.ConfigurationSettings.AppSettings["SiteSqlServer"];
                if(connectionstring==null||connectionstring.Trim()=="")
                    throw(new Exception("Missing appSetting : SiteSqlServer"));
                return connectionstring.Trim();
            }
        }
       
        //CuteChat Integration !!!!
           
        #region IHttpApplicationConnectionStringProvider Members

        public string GetConnectionString(CuteSoft.Chat.UserIdentity user)
        {
            return AppConnectionString;
        }

        #endregion


        #region IHttpApplicationUserAdapter Members

        public string GetUserUniqueName()
        {
            //CommunityServer use 'asp.net - form - authentication'
            if (Context.User.Identity.IsAuthenticated)
                return Context.User.Identity.Name; //this is the CommunityServer.Components.User.Username
           
            //of course use this...
            //CommunityServer.Components.User user=CommunityServer.Users.GetUser(false)
            //if(user.IsAnonymous)
           
            return null;
        }

        public CuteSoft.Chat.UserIdentity GetUserIdentity()
        {
            string uniquename = GetUserUniqueName();
            if (uniquename == null)
            {
                return CuteSoft.Chat.UserIdentity.CreateNull();
            }

            CuteSoft.Chat.UserIdentity identity = new CuteSoft.Chat.UserIdentity(uniquename, null, Request.UserHostAddress);

            return identity;
        }

        #endregion

        #region IHttpApplicationDataProvider Members

        public string GetUserDisplayName(string useruniquename)
        {
            return CommunityServer.Users.FindUserByUsername(useruniquename).DisplayName;
        }
        public string[] ListUserUniqueName()
        {
            CommunityServer.UserQuery query = new CommunityServer.UserQuery();
            CommunityServer.Components.UserSet userset = CommunityServer.Users.GetUsers(query, true);

            ArrayList names = new ArrayList();
            foreach (CommunityServer.Components.User user in userset.Users)
            {
                if (user.IsAnonymous) continue;
               
                names.Add(user.Username);
            }
            return (string[])names.ToArray(typeof(string));
        }
        public bool IsAdministrator(string useruniquename)
        {
            return CommunityServer.Users.FindUserByUsername(useruniquename).IsAdministrator;
        }
        public string[] SearchUserUniqueNameByDisplayName(string userDisplaName)
        {
            CommunityServer.UserQuery query = new CommunityServer.UserQuery();
            query.SearchText = userDisplaName;
            query.IncludeHiddenUsers = true;
            query.SearchUsername = true;//there's no SearchDisplayName ?
            CommunityServer.Components.UserSet userset = CommunityServer.Users.GetUsers(query, true);

            ArrayList names = new ArrayList();
            foreach (CommunityServer.Components.User user in userset.Users)
            {
                if (user.IsAnonymous) continue;
               
                names.Add(user.Username);
            }
            return (string[])names.ToArray(typeof(string));
        }


        public bool IsLobbyAdmin(string useruniquename, CuteSoft.Chat.CuteChatLobby lobby)
        {
            if (lobby.Integration == null) return false;
           
            CommunityServer.Components.User user=CommunityServer.Users.FindUserByUsername(useruniquename);
            if(user==null)
                return false;
           
            if (lobby.Integration.StartsWith("Forum:"))
            {
                int forumid = int.Parse(lobby.Integration.Substring(6));
                CommunityServer.Discussions.Components.Forum forum = CommunityServer.Discussions.Components.Forums.GetForum(forumid);
                if (forum == null)
                {
                    return false;
                }
                return CommunityServer.Components.Permissions.ValidatePermissions(forum
                    , CommunityServer.Components.Permission.Administer
                    , user);
            }
            if (lobby.Integration.StartsWith("Blog:"))
            {
                int blogid = int.Parse(lobby.Integration.Substring(5));
                CommunityServer.Blogs.Components.Weblog blog = CommunityServer.Blogs.Components.Weblogs.GetWeblog(blogid);
                if (blog == null)
                {
                    return false;
                }
                return CommunityServer.Components.Permissions.ValidatePermissions(blog
                    , CommunityServer.Components.Permission.Administer
                    , user);
            }
            return false;
        }

        #endregion

        #region IHttpApplicationSupportLogin Members

        public void SupportInit()
        {
            //no auto login.
        }

        public bool SupportLogin(string username, string password)
        {
            if (username == null) return false;
            username = username.Trim();
            if (username == "") return false;
            if (password == null) return false;

            //IMPORTANT: if the user is not the operator , do not return true;
            //use the CuteChat API to check it
            if (CuteSoft.Chat.ChatApi.FindOperator(username) == null)
                return false;

            //check whether the user is exists
            CommunityServer.Components.User user = CommunityServer.Users.FindUserByUsername(username);
           
            if (user == null)
                return false;

            //use CommunityServer API to validate the user
           
            user = new CommunityServer.Components.User();
            user.Username = username;
            user.Password = password;

            CommunityServer.Components.LoginUserStatus status = CommunityServer.Users.ValidUser(user);
           
            if(status!=CommunityServer.Components.LoginUserStatus.Success)
            {
                return false;
            }
           
            //FORM-Authentication ,
            System.Web.Security.FormsAuthentication.SetAuthCookie(user.Username, false, "/");

            return true;

        }

        #endregion

    </script>

  •  08-30-2006, 1:43 PM 22211 in reply to 22210

    Re: Community Server Problem

    ibanez991,
     
    This Global.asax looks good to me. Is that possible for you to put your site online and send the UR, FTP access to me?
     
     
     

    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

  •  08-30-2006, 1:58 PM 22212 in reply to 22211

    Re: Community Server Problem

    site is online at http://www.bikergateway.com

    I'll PM you with the ftp login and admin info.

  •  08-30-2006, 2:14 PM 22214 in reply to 22212

    Re: Community Server Problem

  •  08-30-2006, 2:31 PM 22215 in reply to 22214

    Re: Community Server Problem

  •  08-30-2006, 5:43 PM 22222 in reply to 22215

    Re: Community Server Problem

    Still doing it.
  •  08-30-2006, 8:42 PM 22230 in reply to 22222

    Re: Community Server Problem

    ibanez991,
     
    Why did you put your original Global.asax back?
     
    This afternoon your site is working with CuteChat 3.0.
     
     

    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

  •  08-31-2006, 8:16 AM 22243 in reply to 22230

    Re: Community Server Problem

    It's not working.  Check out my site.  I put the global.asax file back.  Now there are no jobs running and it's throwing this error.  I put the global file back that we were using yesterday.

    CS.Web Stopped CS.Web Stopped

    _shutDownMessage=Change in GLOBAL.ASAX

    _shutDownStack= at System.Environment.GetStackTrace(Exception e)
    at System.Environment.GetStackTrace(Exception e)
    at System.Environment.get_StackTrace()
    at System.Web.HttpRuntime.ShutdownAppDomain()
    at System.Web.HttpApplicationFactory.OnAppFileChange(Object sender, FileChangeEvent e)
    at System.Web.DirectoryMonitor.OnFileChange(FileAction action, String fileName)
    at System.Web.DirMonCompletion.OnFileChange(FileAction action, String fileName)


  •  08-31-2006, 10:17 AM 22246 in reply to 22243

    Re: Community Server Problem

    ibanez991,
     
    Where did you get those messages?
     
    "Exceptions Report"? It's normal to get this when updating GLOBAL.ASAX file.
     
     

    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

  •  08-31-2006, 10:29 AM 22248 in reply to 22246

    Re: Community Server Problem

    I'll give you that, but why does it kill all the jobs?  That can't happen or the site won't work.  IE. no email is sent, etc.

    Also, usually the site will start back up, CS.Web Started but with the global.asax file from cutechat installed it never starts up.  I'm very confused at why this is happening!

    If install the cutechat global.asax file, go to chat then (logged in as admin) go the the control panel you will see that there are no jobs running, and in the events log that error will be shown.

  •  08-31-2006, 10:51 AM 22249 in reply to 22248

    Re: Community Server Problem

    ibanez991,
     
    I've uploaded a new site to your server. Please check your site again.
     
     
     

    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

Page 1 of 2 (22 items)   1 2 Next >
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.