Index was outside the bounds of the array - stress test


Author
Message
ChanKK
ChanKK
StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi
I have code as below 

 public virtual void Write(string userName, DateTime dated, string objectName, string action, string hostName)
        {
            using (ActivityLogsBO logger = new ActivityLogsBO())
            {
                //logger.DataSourceKey = this._dataSource;

                logger.Write(userName, dated, objectName, action, hostName);
            }
        }

//--AcitivityBO.cs
public void Write(string userName, DateTime logDate, string objectName, string action, string hostName)
        {
            this.NewRow();
            this.Username = userName;
            this.DateTime = logDate;
            this.ObjectName = objectName;
            this.Action = action;
            this.HostName = hostName;
            SaveUndoResult result = this.Save();

            if (result != SaveUndoResult.Success)
            {
                throw new ApplicationException("Failed to activity log error:" + userName + action);
            }
        }



When I run stress test to it about 30 vusers, it will hit error as below



Exception information: 
    Exception type: DataLayerSavingException 
    Exception message: Index was outside the bounds of the array. 
 
Request information: 
    Request URL: http://kkchan-pc/flexhr_6244/Security/Forms/UserLogin.aspx 
    Request path: /flexhr_6244/Security/Forms/UserLogin.aspx 
    User host address: 192.168.2.100 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\FlexHR_6244AppPool 
 
Thread information: 
    Thread ID: 21 
    Thread account name: IIS APPPOOL\FlexHR_6244AppPool 
    Is impersonating: False 
    Stack trace:    at MicroFour.StrataFrame.Data.DataLayer.UpdateDataTable(DataTable TableToUpdate, Boolean Transactional, String TransactionKey)
   at MicroFour.StrataFrame.Data.DataLayer.Save(DataTable TableToSave, Boolean Transactional, String TransactionKey)
   at MicroFour.StrataFrame.Business.BusinessLayer.Save(Boolean Transactional, String TransactionKey)
   at MicroFour.StrataFrame.Business.BusinessLayer.Save()
   at Vfs.Security.Common.ActiveUserController.Register(String SessionId, ISecurityUserEx CurrentUser)
   at Vfs.Security.Common.Extensions.LoggedInUserEx.SetLoggedOnUser(SFSUsersBO UserInfo, String ClientIP)
   at Vfs.Security.Common.SFSecurityBasics.SetLoggedOnUser(SFSUsersBO Users, String ClientIP)
   at Vfs.Security.UI.Web.LoginController.AttempLogin(String userName, String password, String domainName) in D:\FlexHR\Branches\6.2.0\Security\UI\Web\Controllers\LoginController.cs:line 659
   at Vfs.Security.UI.Web.Controls.LoginContainer.AuthenticateLogin() in D:\FlexHR\Branches\6.2.0\Security\UI\Web\Controls\LoginContainer.cs:line 243
   at Vfs.Security.UI.Web.Controls.LoginContainer.LoginButton_Click(Object sender, EventArgs e) in D:\FlexHR\Branches\6.2.0\Security\UI\Web\Controls\LoginContainer.cs:line 236
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at DevExpress.Web.ASPxEditors.ASPxButton.OnClick(EventArgs e)
   at DevExpress.Web.ASPxEditors.ASPxButton.RaisePostBackEvent(String eventArgument)
   at DevExpress.Web.ASPxClasses.ASPxWebControl.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



Any ideas? Please advice.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search