473,699 Members | 2,812 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 1705
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
1934
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
2040
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
7218
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
3047
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
2728
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
2785
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
1628
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
3351
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
3011
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
8686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9173
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8911
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
7748
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
6533
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
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3057
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
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.