Server Error in '/' Application.

The file '/templates/ctrltemp.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 '/templates/ctrltemp.ascx' does not exist.

Source Error:


Line 34: 
Line 35:         strTemplate = clsCategory.PageTemplate(intPageID)
Line 36:         phLoader.Controls.Add(LoadControl("templates/ctrltemp" & strTemplate & ".ascx"))
Line 37:         ' lnkBack.NavigateUrl = "content.aspx?pid=" & Request.Params("pid") & "&cid=" & Request.QueryString("cid")
Line 38: 

Source File: h:\root\home\smartwebpros-001\www\site1\PrintVersion.aspx.vb    Line: 36

Stack Trace:


[HttpException (0x80004005): The file '/templates/ctrltemp.ascx' does not exist.]
   System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) +10231381
   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.UI.TemplateControl.LoadControl(VirtualPath virtualPath) +107
   System.Web.UI.TemplateControl.LoadControl(String virtualPath) +29
   PrintVersion.Page_Load(Object sender, EventArgs e) in h:\root\home\smartwebpros-001\www\site1\PrintVersion.aspx.vb:36
   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.4700.0