"master" attribute not recognized

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default "master" attribute not recognized

    Hello,

    I'm trying to define a default master page in web.config
    for my web application lihe this:


    <appSettings/>
    <system.web>

    <!--
    Set the default master page
    -->

    <pages master="Templates/MasterAdvertising.master"/>

    <!--
    Set compilation debug="true" to insert debugging symbols
    into the compiled page.
    Because this affects performance, set this value to true
    only during development.
    -->
    <compilation debug="true"/>
    <!--
    The <authentication> section enables configuration of the
    security authentication
    mode used by ASP.NET to identify an incoming user.
    -->
    <authentication mode="Windows"/>
    <!--
    The <customErrors> section enables configuration of what
    to do if/when an unhandled
    error occurs during the execution of a request.
    Specifically, it enables developers
    to configure html error pages to be displayed in place of
    a error stack trace.
    -->
    <customErrors mode="RemoteOnly"
    defaultRedirect="GenericErrorPage.htm">
    <!--
    <error statusCode="403" redirect="NoAccess.htm"/>
    <error statusCode="404" redirect="FileNotFound.htm"/>
    -->
    </customErrors>
    </system.web>
    </configuration>


    At the compilation i get this error

    D:\projects\cal\online\SRC\CalOnline2005UI\Templat es\MasterHeader.master:
    ASP.NET runtime error: Unrecognized attribute 'master'.
    (D:\projects\cal\online\SRC\CalOnline2005UI\web.co nfig line
    17)D:\projects\cal\online\SRC\CalOnline2005UI\Temp lates\MasterHeader.master


    Anybody knows how can be fixed?

    Thanks,

    Nidi
    nidii Guest

  2. Similar Questions and Discussions

    1. #39052 [NEW]: pdo::query with "show slave/master status"
      From: xing at mac dot com Operating system: Linux PHP version: 5.1.6 PHP Bug Type: PDO related Bug description: pdo::query...
    2. #39052 [Opn->Fbk]: pdo::query with "show slave/master status"
      ID: 39052 Updated by: tony2001@php.net Reported By: xing at mac dot com -Status: Open +Status: ...
    3. InDesign "ghostly" objects from master
      When you create a document with more then one master page (for example: "A-master", "B-master"...) InDesign CS copy right master page over the left...
    4. "stereotyping" (was: Strong Typing (Managing metadata about attribute types)
      On Fri, 21 Nov 2003 02:35:05 +0900, Sean O'Dell wrote: Forgive me for being boggled, Sean. That's typically the third thing that I do (after...
    5. "stereotyping" (was: Strong Typing (Managing metadata about attribute types)
      On Thu, 20 Nov 2003 05:17:10 +0900, Sean O'Dell wrote: would irb(main):002:0> require 'socket' => true irb(main):003:0> Socket.ancestors...
  3. #2

    Default Re: "master" attribute not recognized

    "nidii" <nidii@hotmail.com> wrote in message
    news:42ba4f40.0411220217.74ce21ba@posting.google.c om...
    > Hello,
    >
    > I'm trying to define a default master page in web.config
    > for my web application lihe this:
    >
    >
    > <appSettings/>
    > <system.web>
    >
    > <!--
    > Set the default master page
    > -->
    >
    > <pages master="Templates/MasterAdvertising.master"/>
    >
    > <!--
    > Set compilation debug="true" to insert debugging symbols
    > into the compiled page.
    > Because this affects performance, set this value to true
    > only during development.
    > -->
    > <compilation debug="true"/>
    > <!--
    > The <authentication> section enables configuration of the
    > security authentication
    > mode used by ASP.NET to identify an incoming user.
    > -->
    > <authentication mode="Windows"/>
    > <!--
    > The <customErrors> section enables configuration of what
    > to do if/when an unhandled
    > error occurs during the execution of a request.
    > Specifically, it enables developers
    > to configure html error pages to be displayed in place of
    > a error stack trace.
    > -->
    > <customErrors mode="RemoteOnly"
    > defaultRedirect="GenericErrorPage.htm">
    > <!--
    > <error statusCode="403" redirect="NoAccess.htm"/>
    > <error statusCode="404" redirect="FileNotFound.htm"/>
    > -->
    > </customErrors>
    > </system.web>
    > </configuration>
    >
    >
    > At the compilation i get this error
    >
    > D:\projects\cal\online\SRC\CalOnline2005UI\Templat es\MasterHeader.master:
    > ASP.NET runtime error: Unrecognized attribute 'master'.
    > (D:\projects\cal\online\SRC\CalOnline2005UI\web.co nfig line
    > 17)D:\projects\cal\online\SRC\CalOnline2005UI\Temp lates\MasterHeader.master
    >
    >
    > Anybody knows how can be fixed?
    Are you sure you're running the correct version of ASP.NET? "master" is an
    ASP.NET 2.0 feature.

    John Saunders


    John Saunders Guest

  4. #3

    Default Re: "master" attribute not recognized



    Yea, right...

    I am trying this in asp.net 2, endeed... :)

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Nidi Iacobsohn Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139