Master Pages Don't Work

B

Brandon

I don't know if this is the right newsgroup for this question . . . if not,
please let me know.

I'm a newbie to asp.net (C#) and I'm trying to create a very simple page
dependent on a master page. But when I try to preview the .aspx page in the
browser, I get the following 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 file '/MasterPage.master' does not exist.

Source Error:

Line 1: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4"
Title="Untitled Page" %>
Line 2: <asp:Content ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Line 3: test</asp:Content>

Source File: /aspnet/vwd/default4.aspx Line: 1
 
S

Scott Allen

On Fri, 11 Nov 2005 09:56:40 -0600, "Brandon"

You do have a MasterPage.master file in the top level directory,
right?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top