I am trying to write a simple authentication. I'm also trying to make this quick and learn about the forms authentication via web.config.

So i have my authentication working if I hard code my 'user name' and 'password' into C# code and do a simple conditional.

However, I get en error message 'Unrecognized element 'authentication'.

Line 2:     &lt;system.web&gt;
Line 3:         &lt;customErrors mode="off"&gt;
Line 4:             &lt;authentication mode="Forms"&gt;
Line 5:                 &lt;forms name=".C#FEWD" 
Line 6:                     loginUrl="/schools/admin/login/index.aspx" 


My web.config file looks like this:

&lt;configuration&gt;
    &lt;system.web&gt;
        &lt;customErrors mode="off"&gt;
            &lt;authentication mode="Forms"&gt;
                &lt;forms name=".C#FEWD" 
                    loginUrl="/schools/admin/login/index.aspx" 
                    protection="All" 
                    timeout="60"&gt;
                    &lt;credentials passwordFormat="Clear"&gt;
                        &lt;user name="schools" password="magic" /&gt;
                    &lt;/credentials&gt;
                &lt;/forms&gt;
            &lt;/authentication&gt;
        &lt;authorization&gt;
            &lt;deny users="?" /&gt;
        &lt;/authorization&gt;
        &lt;/customErrors&gt;
    &lt;/system.web&gt;
&lt;/configuration&gt;



Question: .ibooks format on the iphone?
Answer: It can't be done, because only the iPad can read the .ibooks format.  To let Apple know you want this expanded, tell them at

http://www.apple.com/feedback