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 90:         pathItems = QueryPath.PathItems;
Line 91: 
Line 92: logoLink.NavigateUrl =  pathItems[0].Url;
Line 93: logoLink2.NavigateUrl =  pathItems[0].Url;
Line 94: 

Source File: d:\web\canis-minor.dk\www\Default.aspx.cs    Line: 92

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   _Default.Page_PreInit(Object sender, EventArgs e) in d:\web\canis-minor.dk\www\Default.aspx.cs:92
   System.Web.UI.Page.OnPreInit(EventArgs e) +11717784
   System.Web.UI.Page.PerformPreInit() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +330


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