473,320 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1692
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BillZondlo | last post by:
HI, I'm using saveFileDialog to get or make a file to save my stirngs to. saveFileDialog1.Filter = "txt files (*.txt)|*.txt" ; //display dialog saveFileDialog1.FilterIndex = 2 ;...
1
by: Onur Bozkurt | last post by:
I have a dropdownlist in an .ascx file. When using the dropdown it is workin 3 or 4 times and suddenly it gives an error like "Control 'DropDown1_ddlUrunler' of type 'DropDownList' must be placed...
2
by: sanju | last post by:
hi there i am trying to fire an button event in ascx file which interacts with database ,my problem is " i am calling ascx file wiht a button click dynamically when user needs to update database...
5
by: djscratchnsniffing | last post by:
i know you can access an ascx's properties/methods from an aspx file. Let's say you have an aspx file with two code-behind files(ascx files). Can you access one of the ascx file's...
3
by: Sabri AKIN | last post by:
Hi, I want to send ascx file's html code as email.this ascx file is summary of customer sale.and at last iwant to send email to customer.how can i get and past ascx file's html code to mail body.
6
by: tshad | last post by:
I have an ascx file I am using to include my logos and heading information for all my pages. It was working fine up until now. I decided to set up an admin folder inside of my main folder and...
2
by: Henry Sun | last post by:
Hi all, New to ASP.NET and this Newsgroup. recently I saw some major websites use ascx page as their index page (e.g. index.ascx?ProductId=blah). I did a little bit rearch but I still couldn't...
2
by: DC | last post by:
Hi, I want to keep all my layout information in the .ascx file of a UserControl. If I require layout related data in codebehind, I would usually use properties defined in the codebehind, e.g. ...
2
by: mpl | last post by:
Hi, i have an ascx file named mytestcontrol.ascx. it has reference to another ascx control as below. <%@ Register Src="myControl.ascx" TagName="myControl" TagPrefix="uc" %> .... .........
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.