must have a .ascx file extension

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
 
P

Peter Rilling

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top