Server Error in '/' 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 1195:            {

Line 1196:                sqlfield_text = sqlfield_text + _Items[i].Text + ",";

Line 1197:                sqlvalues = sqlvalues + "'" + _Items[i].Value + "'" + ",";

Line 1198:            }

Line 1199:        }

Source File: C:\webroot\69park5\sexWeb\code\B_comm.cs    Line: 1197

Stack Trace:




[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index]

   System.Collections.ArrayList.get_Item(Int32 index) +14284731

   System.Web.UI.WebControls.ListItemCollection.get_Item(Int32 index) +19

   B_comm.createSqlAppend(ListItemCollection _Items, String _strtableName) in C:\webroot\69park5\sexWeb\code\B_comm.cs:1197

   msSql.post(Int32& retval, String& errMsg) in C:\webroot\69park5\sexWeb\code\msSql.cs:223

   msSql.writeVisit(String runLocation, HttpRequest _Request, String visit_userid, String visit_user_name, String _pageURL, String js_ip, String author_userid, String _clientID, String _clientInfo) in C:\webroot\69park5\sexWeb\code\msSql.cs:456

   xp03131.Global.Application_BeginRequest(Object sender, EventArgs e) in C:\webroot\69park5\sexWeb\Global.asax.cs:129

   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +137

   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +172

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9037.0