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 553:                    <%Else
Line 554:                                   ' Response.Redirect(dominioEsteso & "/404.aspx")
Line 555:								    Response.Redirect("../404.aspx")
Line 556:                                End If ' fine query principale
Line 557:                                Pdbread.Close()

Source File: C:\SERVER\WWW\www_polaris_it\dettaglio.aspx    Line: 555

Stack Trace:


[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
   System.Web.Util.UrlPath.ReduceVirtualPath(String path) +11868385
   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.dettaglio_aspx.__RenderbodyContent(HtmlTextWriter __w, Control parameterContainer) in C:\SERVER\WWW\www_polaris_it\dettaglio.aspx:555
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   ASP.template_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\SERVER\WWW\www_polaris_it\template.master:357
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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