must have a .ascx file extension

  • Thread starter Thread starter Andy G
  • Start date Start date
A

Andy G

I hate to post just a general error like this but one of my clients that
coded this system is getting an error when loading a page. I know that you
can't point out the specific problem so forget about what is behind this
error.

Just wondering is someone can read into this error and point me the right
way.

Error Loading 'DesktopModules/HRSReports/HRSReports.ascx '
Message: User control source files must have a .ascx file extension.
Source: System.Web
StackTrace: at
System.Web.UI.UserControlParser.CheckUserControlFileExtension(String
fileName) at
System.Web.UI.UserControlParser.GetCompiledUserControlType(String
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.TemplateControl.LoadControl(String virtualPath) at
HRWeb.BasePage.LoadModule(String virtualPath) at
HRWeb.DesktopDefault.Page_Init(Object sender, EventArgs e)

Thanks
Andy
 
Looks like they might be dynamically loading a user control using the
LoadControl method. This is a control that was not placed in the HTML but
is loaded and added to the control collection at runtime. You can load any
control you want, but they may have chosen a special extension for those
control to identify them as being dynamic. I would check to see if they are
in fact loading controls dynamically and to determine what the actual
extension of the controls are.
 
Back
Top