dragonprogs
07-04-2005, 02:54 AM
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:
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.ProcessMainDir ective(IDictionary mainDirective)
at System.Web.UI.PageParser.ProcessMainDirective(IDic tionary mainDirective)
at System.Web.UI.TemplateParser.ProcessDirective(Stri ng directiveName, IDictionary directive)
at System.Web.UI.TemplateControlParser.ProcessDirecti ve(String directiveName, IDictionary directive)
at System.Web.UI.TemplateParser.ParseStringInternal(S tring 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.GetParserCacheItemThr oughCompilation()
at System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean fCreateIfNotFound)
at System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath()
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
at System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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.-->
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:
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.ProcessMainDir ective(IDictionary mainDirective)
at System.Web.UI.PageParser.ProcessMainDirective(IDic tionary mainDirective)
at System.Web.UI.TemplateParser.ProcessDirective(Stri ng directiveName, IDictionary directive)
at System.Web.UI.TemplateControlParser.ProcessDirecti ve(String directiveName, IDictionary directive)
at System.Web.UI.TemplateParser.ParseStringInternal(S tring 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.GetParserCacheItemThr oughCompilation()
at System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean fCreateIfNotFound)
at System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath()
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
at System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep 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.-->