Parser Error Message: The directive 'master' is unknown.

May 7, 2012 at 3:08 PM

First off; Hello!

I am new to the site, but being that I just got hired on as an aspiring ASP.NET coding guy, I figured I'd immerse myself with this tutorial. I am impressed with the depth that this seems to go into, but I am unable to get past copying over the site.master file.


What I'm doing, as I assume everyone else is doing:

Clicking 'Site.Master' and replacing the data from there with the data from MasterPage-Template included in the download, and I keep receiving:

"Parser Error Message: The directive 'master' is unknown."

My boss popped over and suggested I change 'master' to 'Master' but to no avail. I'm assuming this is something stupid, but I haven't been in the programming routine for about 5 years so forgive me if my question is stupid.

I, for one, am thinking that this is some sort of configuration error on the Visual Studio side. Oh, I'm using Visual Studio 2010 by the way.

Here is the full error:

Server Error in '/' Application.
Parser Error
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 directive 'master' is unknown.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.Master.cs" Inherits="TailspinSpyworks.SiteMaster" %>
Line 2:  
Line 3:  

Source File: /default.aspx    Line: 1 

Thanks for any help! I hope it's something silly.



May 8, 2012 at 4:10 PM

Hey James; well some of us are lucky enough in landing a job. Congrats... Yup! changing to small cap wouldn't resolve the problem. Try and make sure that your Site.master file is present at the target directory. I don't think its finding it that's why you are getting that error. I would highly recommend for all newbies to watch the vids made by Joe Stamger about the project and to copy the whole folder content to your VS2010 project folder and open the project as is first. Be sure to check and see if the commerce.mdf is not "Blocked", if so then unblock it. Good luck.