473,748 Members | 6,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.U serControlParse r.CheckUserCont rolFileExtensio n(String
fileName) at
System.Web.UI.U serControlParse r.GetCompiledUs erControlType(S tring
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.T emplateControl. LoadControl(Str ing virtualPath) at
HRWeb.BasePage. LoadModule(Stri ng virtualPath) at
HRWeb.DesktopDe fault.Page_Init (Object sender, EventArgs e)

Thanks
Andy
Nov 19 '05 #1
1 1709
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*****@iastat e.edu> wrote in message
news:#H******** ******@TK2MSFTN GP14.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.U serControlParse r.CheckUserCont rolFileExtensio n(String
fileName) at
System.Web.UI.U serControlParse r.GetCompiledUs erControlType(S tring
virtualPath, String inputFile, HttpContext context) at
System.Web.UI.T emplateControl. LoadControl(Str ing virtualPath) at
HRWeb.BasePage. LoadModule(Stri ng virtualPath) at
HRWeb.DesktopDe fault.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
1936
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 ; saveFileDialog1.RestoreDirectory = true ; DialogResult result2 = saveFileDialog1.ShowDialog(); This displays only txt files. If the user selects an existing file all goes well.
1
2041
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 inside a form tag with runat=server."
2
7222
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 in aspx page , but the the update button in ascx is not firing .. .. but it is working fine when i call ascx like this manually. '<callcontrol:callcontrol id=callcontrol runat="server"/> <%@ Register TagPrefix="callcontrol"...
5
3050
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 properties/methods from the other ascx file?
3
2731
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
2787
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 move one of my files into it - now my links don't work. I have a setup:
2
1631
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 find any word about this... My question is How does it work? What's benefit of this? Was that some kind of templet? Thank you in advance
2
3354
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. string tdStyle; public string TdStyle {
2
3013
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" %> .... ...... <uc:myControl ID="myControl1" runat="server" />
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.