Server Error in '/' Application.

The file "~/template/_Login.cshtml" could not be rendered, because it does not exist or is not a valid page.

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: The file "~/template/_Login.cshtml" could not be rendered, because it does not exist or is not a valid page.

Source Error:

Line 20: if (AppSession.Current.User == null) Line 21: { Line 22: @RenderPage( "~/template/" + Doc.Current.Data["te_path"], new object[] { new { Layout = "~/Template/_Layout.cshtml" } }) Line 23: } Line 24: else

Source File: F:\wwwroot\Giorgetti2021\Sito\Errors\Error403.cshtml    Line: 22

Stack Trace:

[HttpException (0x80004005): The file "~/template/_Login.cshtml" could not be rendered, because it does not exist or is not a valid page.] System.Web.WebPages.WebPageBase.CreatePageFromVirtualPath(String virtualPath, HttpContextBase httpContext, Func`2 virtualPathExists, DisplayModeProvider displayModeProvider, IDisplayMode displayMode) +318 System.Web.WebPages.<>c__DisplayClass40_0.<RenderPageCore>b__0(TextWriter writer) +252 Websolute.BOM.FrontEnd.Core.WebPageBase.Write(HelperResult result) +187 ASP._Page_Errors_Error403_cshtml.Execute() in F:\wwwroot\Giorgetti2021\Sito\Errors\Error403.cshtml:22 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252 System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99 System.Web.WebPages.WebPage.ExecutePageHierarchy() +185 ASP._Page__PageStart_cshtml.Execute() in F:\wwwroot\Giorgetti2021\Sito\_PageStart.cshtml:12 System.Web.WebPages.StartPage.ExecutePageHierarchy() +67 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107 System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142 


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