Server Error in '/bsfa/website' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 47:     Protected Sub Page_Load(ByVal Sender As Object, ByVal e As EventArgs)
Line 48:         strArray = userName.Split(";")
Line 49:         Session("username") = Trim(strArray(2))
Line 50:         ' *** Admin ***     
Line 51:         If Not Page.User.Identity.IsAuthenticated Then

Source File: E:\kunden\homepages\41\d101758519\bsfa\website\MyDetails.aspx    Line: 49

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices) +0
   System.Array.GetValue(Int32 index) +59
   Microsoft.VisualBasic.CompilerServices.Container.GetArrayValue(Object[] Indices) +145
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.InternalLateIndexGet(Object Instance, Object[] Arguments, String[] ArgumentNames, Boolean ReportErrors, ResolutionFailure& Failure) +132
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateIndexGet(Object Instance, Object[] Arguments, String[] ArgumentNames) +22
   ASP.mydetails_aspx.Page_Load(Object Sender, EventArgs e) in E:\kunden\homepages\41\d101758519\bsfa\website\MyDetails.aspx:49
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433