Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmAppBase.SecurityMgr.GetAccessLevel-- Index out of range er
Message
From
14/05/2004 11:06:21
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MmAppBase.SecurityMgr.GetAccessLevel-- Index out of range er
Miscellaneous
Thread ID:
00904089
Message ID:
00904089
Views:
69
Hi,

I have a web form that does a postback every 25 seconds. As long as one user is hitting the webserver for this page I am fine. As soon as more that 1 user hits the page, and allows the page to postback every 25 seconds, I receive the error below at line 113.

Any thoughts??


Server Error in '/gmgOnLine' Application.
--------------------------------------------------------------------------------

Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

Source Error:


Line 111: // returned table will follow the accesslabel of lblSecure
Line 112:
Line 113: mmSecurityAccessLevel AccessLevel = mmAppBase.SecurityMgr.GetAccessLevel(Session["mmUserSecurity_UserPk"],this.lblSecure.ControlID);
Line 114: bool lEnable;
Line 115: switch(AccessLevel.ToString())


Source File: c:\inetpub\wwwroot\2004_gmg Web Application\DaySheet.aspx.cs Line: 113

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
OakLeaf.MM.Main.Business.mmBusinessObject.FillDataSet(DataSet ds, String command, String tableName, String databaseKey, CommandType cmdType, IDbDataParameter[] dataParams)
OakLeaf.MM.Main.Business.mmBusinessObject.FillDataSet(DataSet ds, String command, String tableName, String databaseKey, IDbDataParameter[] dataParams)
OakLeaf.MM.Main.Business.mmBusinessObject.FillDataSet(DataSet ds, String command, String tableName, IDbDataParameter[] dataParams)
OakLeaf.MM.Main.Business.mmBusinessObject.FillDataSet(DataSet ds, String command, IDbDataParameter[] dataParams)
OakLeaf.MM.Main.Security.mmRole.GetUserRoles(Object userPK)
OakLeaf.MM.Main.Security.mmSecurityManager.GetAccessLevel(Object userPK, Guid securityID, DataSet dsUserSecurity, DataSet dsRoleSecurity)
OakLeaf.MM.Main.Security.mmSecurityManager.GetAccessLevel(Object userPK, Guid securityID)
gmg.WebPatientSystem.DaySheet.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\2004_gmg Web Application\DaySheet.aspx.cs:113
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
OakLeaf.MM.Main.Web.UI.mmBusinessWebPage.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Next
Reply
Map
View

Click here to load this message in the networking platform