MainContent and TitleContent required?
I created an MVC project from scratch as instructed in page 51.
I then modified Site.Master as instructed in page 55.
I get the following exception: "System.Web.HttpUnhandledException"
The innerException states: {"Cannot find ContentPlaceHolder 'TitleContent' in the master page '/Views/Shared/Site.Master', verify content control's ContentPlaceHolderID attribute in the content page."}
It seems that MVC projects require that Site.Master have two ContentPlaceHolders: TitleContent and MainContent.
Although this is not a beginner's book. I should be able to type the code in the book and not get errors.
Please help. I am stuck in page 55 trying to get Site.Master to work.
Thank you
Andres
Florida
Last edited by andresb; September 16th, 2009 at 03:52 PM..
|