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 63:             Dim gelenUri As String() = Page.Request.Url.AbsolutePath.ToString().Split("/")
Line 64:             If gelenUri.Length > 2 Then
Line 65:                 hid = gelenUri(3)
Line 66:                 Dim strQuery As String = "select * from blog where url='" & hid.ToString() & "'"
Line 67:                 Using connection As New SqlConnection(strConnString)

Source File: C:\Inetpub\vhosts\surungenpazari.com\httpdocs\Blog\blog.aspx.vb    Line: 65

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   blog.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\surungenpazari.com\httpdocs\Blog\blog.aspx.vb:65
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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