Server Error in '/' Application.

Cannot use a leading .. to exit above the top directory.

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.Web.HttpException: Cannot use a leading .. to exit above the top directory.

Source Error:


Line 47:         else
Line 48:         {
Line 49:             Response.Redirect("../index.aspx"); 
Line 50:         }
Line 51:     }    

Source File: c:\home\site\wwwroot\controls\view_info.ascx    Line: 49

Stack Trace:


[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
   System.Web.Util.UrlPath.ReduceVirtualPath(String path) +11870513
   System.Web.Util.UrlPath.Reduce(String path) +63
   System.Web.HttpResponse.ApplyAppPathModifier(String virtualPath) +222
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) +143
   ASP.view_info.show() in c:\home\site\wwwroot\controls\view_info.ascx:49
   ASP.view_info.Page_Load() in c:\home\site\wwwroot\controls\view_info.ascx:33
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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