Could Not Find Any Attribute 'Master' of Element 'Master'

One of the “joys” of working with beta bits is there are times when you realize the functionality of the product and its corresponding documentation doesn't match up (and in some instances that can cause you to chase your tail for long periods of time). I ran into it again tonight when building nested master pages in VS2005 (beta 1 refresh). According to the documentation, when you create a child master page, you reference the parent master page by doing something like this:

<%@ Master Language="C#" master="Parent.master"%>

However, the correct way to do it is like this (at least in the beta 1 refresh):

<%@ Master Language="C#" masterpagefile="Parent.master"%>

Of course, the cool thing is that you didn't need me to write this post for you to know about the problem. The IDE is smart enough to know that the first example was wrong and displays a little red squiggly under the master attribute and shows the error, which is the title of this post.

Print | posted on Tuesday, January 18, 2005 8:58 PM
Comments have been closed on this topic.