Server Error in '/' Application.

The file '/controls/news-show/gallery/default.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 '/controls/news-show/gallery/default.ascx' does not exist.

Source Error:


Line 307:<%If p IsNot Nothing Then %>
Line 308:<%For I As Integer = 0 To g.Rows.Count - 1 %>
Line 309:    <%=Loader.LoadNewsSubControl("gallery", g.Rows(I)(dbnTemplateName), New NewsGalleryData With {.Name = g.Rows(I)(dbnName), .Photos = p.Select(dbnNewsGalleryID & Equal & g.Rows(I)(dbnID))})  %>
Line 310:<%Next %>
Line 311:<%End If %>

Source File: D:\sites\dostor\Print.aspx    Line: 309

Stack Trace:


[HttpException (0x80004005): The file '/controls/news-show/gallery/default.ascx' does not exist.]
   System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) +4654114
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +519
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +142
   System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) +138
   Loader.LoadControl(String ControlFullPath, Object Data, ViewData View, Int32 CacheSeconds, Int32 CacheSecondsDiffer, String AddCacheDiffer) +500
   Loader.LoadControl(String BaseDir, String ControlName, Object Data, ViewData View, Int32 CacheSeconds, Int32 CacheSecondsDiffer, String AddCacheDiffer) +391
   Loader.LoadNewsSubControl(String SubFolder, String ControlName, Object Data, ViewData View) +111
   ASP.print_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\sites\dostor\Print.aspx:309
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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