473,320 Members | 1,879 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.

MasterType directive is broke?

I have the following directive in my master page (the actual file name is
Layout.master):
<%@ MasterType VirtualPath="MasterPage.master" %>
When I run the website, I get this error: "Parser Error Message: The file
'/EternityRecords/MasterPage.master' does not exist."
When i use Layout.master (the filename itself) as the virtual path, it tells
me that circular references aren't allowed. If neither one of these work,
then how does it? I can't find it in any help anywhere...

Nov 16 '07 #1
1 2077
the mastertype directive is for pages hosting the master page control,
not the master page control itself (it knows its type). this directive
generates a property for the page class like:

MasterType Master
{
get {return (MasterType) base.Master;}
}

-- bruce (sqlwork.com)

Andy B wrote:
I have the following directive in my master page (the actual file name is
Layout.master):
<%@ MasterType VirtualPath="MasterPage.master" %>
When I run the website, I get this error: "Parser Error Message: The file
'/EternityRecords/MasterPage.master' does not exist."
When i use Layout.master (the filename itself) as the virtual path, it tells
me that circular references aren't allowed. If neither one of these work,
then how does it? I can't find it in any help anywhere...
Nov 16 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jbeerni | last post by:
In .NET, you can mark methods and accessors as obsolete by using the directive. I've found some interesting behavior with the directive when used in a class which is referenced as a return type...
2
by: Mantorok Redgormor | last post by:
what is the purpose of the #line directive? how is it suppose to be used? I didn't see it mentioned in the faq and I can't make any sense of it from the standard. -- nethlek
5
by: Jim Heavey | last post by:
Is the Page directive only go on ".aspx" pages? I think the answer is yes, but I am not positive. I am trying to figure out why a called class can not be found and I was wondering if I should...
2
by: andrea | last post by:
Is there a reason for which using the MasterType directive to use the typed struct of a master page conflict with the @Page Theme directive? Thanks Andrea
21
by: Alok | last post by:
While posting a comment on http://www.reddit.com I got an error page with the following curious statement on it. "reddit broke (sorry)" "looks like we shouldn't have stopped using lisp..." ...
1
by: mark4asp | last post by:
I moved a page to another web-site and now it's broke! I had 5 pages in their own web-site. These pages have now been moved to another web-site. Everything is fine except that one of the pages,...
2
by: ^MisterJingo^ | last post by:
Hi all, are there any performance considerations to take into account when referencing variables in the master page by using "MasterType VirtualPath"? I'm trying to add a crumb trail to a site,...
5
by: Francois Grieu | last post by:
One of the C compiler that I use <OT>(Keil's CX51)</OTbarks at #define a(b) b int main(void){return a( #if 0 #endif 0);} More generally, this compiler seems confused by any preprocessing...
2
by: aleemakhtar1 | last post by:
wat is use of pragma directive in embedded sys ??
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.