Server Error in '/' 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 283:                            'pagine dinamiche                                             
Line 284:                            Dim _arrayUrl As String() = Split(_url, "/")
Line 285:                            Dim _parolaChiave As String = _arrayUrl(_arrayUrl.Length - 3)
Line 286:
Line 287:                            If _parolaChiave = "" Then

Source File: C:\inetpub\wwwroot\PhobosGroup2023\global.asax    Line: 285

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in C:\inetpub\wwwroot\PhobosGroup2023\global.asax:285
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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