Server Error in '/' Application.

The file '/Conteudo/Paginas/cursos-de-ingles.ascx' does not exist.

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 '/Conteudo/Paginas/cursos-de-ingles.ascx' does not exist.

Source Error:


Line 14:         string template = "~/Conteudo/Paginas/";
Line 15:         string pagina = (Request.QueryString["p"] != null) ? Request.QueryString["p"] + ".ascx" : "home.ascx";
Line 16:         return Page.LoadControl(template + pagina);
Line 17:     }
Line 18: }

Source File: \\windows-pd-0001.fs.locaweb.com.br\wnfs-0002\testesphera\web\Default.aspx.cs    Line: 16

Stack Trace:


[HttpException (0x80004005): The file '/Conteudo/Paginas/cursos-de-ingles.ascx' does not exist.]
   System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) +10212669
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +484
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +107
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +63
   System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) +129
   System.Web.UI.TemplateControl.LoadControl(String virtualPath) +29
   _Default.CarregaPagina() in \\windows-pd-0001.fs.locaweb.com.br\wnfs-0002\testesphera\web\Default.aspx.cs:16
   _Default.Page_Load(Object sender, EventArgs e) in \\windows-pd-0001.fs.locaweb.com.br\wnfs-0002\testesphera\web\Default.aspx.cs:9
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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