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: can I use a disk larger than 320 GB with RPi?
Answer: Basically instead of fdisk -l, you should use parted -l (install parted if you do not have it installed) to see the actual data partition and then mount the actual data partition (/dev/sdb2, etc) directly.

I wrote a short tutorial on how to do this:

http://www.zayblog.com/computer-and-it/2013/07/22/mounting-gpt-partitions-on-raspberry-pi/

I was able to mount 2 8TB partitions directly, without wiping the data/reformat the drive.