468,107 Members | 1,390 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

must have a .ascx file extension

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.CheckUserControlFi leExtension(String
fileName) at
System.Web.UI.UserControlParser.GetCompiledUserCon trolType(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
Nov 19 '05 #1
1 1575
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.

"Andy G" <aj*****@iastate.edu> wrote in message
news:#H**************@TK2MSFTNGP14.phx.gbl...
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.CheckUserControlFi leExtension(String
fileName) at
System.Web.UI.UserControlParser.GetCompiledUserCon trolType(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

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by BillZondlo | last post: by
1 post views Thread by Onur Bozkurt | last post: by
5 posts views Thread by djscratchnsniffing | last post: by
3 posts views Thread by Sabri AKIN | last post: by
6 posts views Thread by tshad | last post: by
2 posts views Thread by Henry Sun | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.