Master Pages

Discussion in 'ASP.NET 2.0' started by dragonprogs, Jul 4, 2005.

  1. Forsome reason when I try to use a master page from VWD 2005 Express When I upload it to my web page I get an 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 'MasterPageFile' attribute is not supported by the 'page' directive.

    Source Error:






    Code:
    Line 1:  <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
    Line 2:  <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    Line 3:      Master Is working</asp:Content>
    Source File: E:\web\dragonprogs\htdocs\MaserTest.aspx Line: 1





    Version Information:Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

    Any ides why this is happening? or how to fix it.<!--
    [HttpException]: The 'MasterPageFile' attribute is not supported by the 'page' directive.
    at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective)
    at System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary mainDirective)
    at System.Web.UI.PageParser.ProcessMainDirective(IDictionary mainDirective)
    at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive)
    at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive)
    at System.Web.UI.TemplateParser.ParseStringInternal(String text)
    at System.Web.UI.TemplateParser.ParseString(String text, String virtualPath, String basePhysicalDir)
    [HttpParseException]: Parser Error: The 'MasterPageFile' attribute is not supported by the 'page' directive.
    at System.Web.UI.TemplateParser.ParseString(String text, String virtualPath, String basePhysicalDir)
    at System.Web.UI.TemplateParser.ParseFile(String filename, String virtualPath)
    at System.Web.UI.TemplateParser.Parse()
    at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()
    at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound)
    at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()
    at System.Web.UI.TemplateParser.GetParserCacheItem()
    at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context)
    at System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context)
    at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context)
    at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path)
    at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
    at System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    --><!--
    This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
     
  2. You aren't uploading it to your 2.0 hosting space. You need to sign up for a 2.0 beta account and upload it there. .NET 1.1 does not support master pages.
     

Share This Page