Expression > Forums Home > Expression Studio Forums > Expression Web and SuperPreview > showing parser error while deplying website on server (below are more details)
Ask a questionAsk a question
 

Answershowing parser error while deplying website on server (below are more details)

  • Thursday, November 05, 2009 5:04 PMAbhinavsingh Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    I have designed a website using a master page named WMDCMaster.master in Expression Web 3. It Is showing me the parser error while putting it on the server  (error: The 'masterpagefile' attribute is not supported by the 'page' directive. ). Moreover, it also requires web.config file which is not available to the root directiry in my website. It will be great if someone can get me the code required to create put in the web.config.

    I really appreciate your help in advance

    Error code:

    1)

    Server Error in '/' Application.


    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

     

    <!-- Web.Config Configuration File -->

     

    <configuration>

        <system.web>

            <customErrors mode="Off"/>

        </system.web>

    </configuration>


    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

     

    <!-- Web.Config Configuration File -->

     

    <configuration>

        <system.web>

            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

        </system.web>

    </configuration>

     

     

     2)

    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="C#" masterpagefile="WMDCMaster.master" title="Visit Us" %>
    
    Line 2:  <asp:Content id="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">
    
    Line 3:  
    


    Source File: c:\inetpub\wwwroot\Clients\WMDC\ver2\Home.aspx    Line: 1


    Version Information:  Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2407

     

     



    Please help me by sending some solution

    Thanks
    Abhinav

Answers

  • Thursday, November 05, 2009 5:17 PMKathyW2 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    "Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2407"

    Your hosting account is set for Asp.net 1, not 2.  It doesn't support master pages.

    • Marked As Answer byAbhinavsingh Friday, November 06, 2009 1:01 AM
    •  

All Replies