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 18:         {
Line 19:             if (!Page.User.Identity.IsAuthenticated)
Line 20:                 Response.Redirect("../profilo/login.aspx");
Line 21:             //else if (!Page.User.IsInRole("anim") && !Page.User.IsInRole("user"))
Line 22:             //    Response.Redirect("../profilo/login.aspx");

Source File: d:\inetpub\vhosts\ilcentroassistenza.com\BaseAuth.master.cs    Line: 20

Stack Trace:


[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
   System.Web.Util.UrlPath.ReduceVirtualPath(String path) +9983348
   System.Web.Util.UrlPath.Reduce(String path) +53
   System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +228
   System.Web.HttpResponse.ApplyAppPathModifier(String virtualPath) +210
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) +111
   System.Web.HttpResponse.Redirect(String url) +14
   MasterPage.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\ilcentroassistenza.com\BaseAuth.master.cs:20
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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