Tuesday, March 13, 2012

The MasterPageFile attribute is not supported by the page directive.

While just copying and pasting the standard master page example from the microsoft website: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/masterpages.asp

I'm constantly receiving the following error, what am I doing wrong here?

-------

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The 'MasterPageFile' attribute is not supported by the 'page' directive.

Source Error:

Line 1: <%@dotnet.itags.org. Page MasterPageFile="~/Simple.master" %>
Line 2: <asp:Content
Line 3: ID="Content1"

-------
Thanks!Are you using the .NET 2.0 Framework? It's still in beta and not released to the "masses" just yet, that's why I ask.
well damn :( it's a asp.net v2.0 feature :(
Yea I have a MSDN member ship and have been using 2.0 for a few months now. It is simply wonderful. There are a ton of changes that will make developing pages a lot faster. Productivity is much improved!
I really can't WAIT, just the masterpagefile thingy rocks!

0 comments:

Post a Comment