The authentication section controls the type of authentication used within your Web application,as contained in the attribute mode. You'll enter the value "None" if anyone may access yourapplication. If authentication is required, you'll use "Windows", "Forms" or "Passport" to definethe type of authentication. For example:<authentication mode="Windows" />
To allow or deny access to your web application to certain users or roles, use <allow> or <deny>child tags.<authorization> <allow roles="Administrators,Users" /> <deny users="*" /> </authorization> It's important to understand that ASP.NET's authorization module iterates through the sections,applying the first rule that corresponds to the current user. In this example, users carrying therole Administrators or Users will be allowed access, while all others (indicated by the *wildcard) will encounter the second rule and will subsequently be denied access.
Here, you can configure the compiler settings for ASP.NET. You can use loads of attributeshere, of which the most common are debug and defaultLanguage. Set debug to "true" only if youwant the browser to display debugging information. Since turning on this option reducesperformance, you'd normally want to set it to "false". The defaultLanguage attribute tellsASP.NET which language compiler to use, since you could use either Visual Basic .NET or C#for instance. It has value vb by default.
To provide your end users with custom, user-friendly error messages, you can set the modeattribute of this section to On. If you set it to RemoteOnly, custom errors will be shown only toremote clients, while local host users will see the ugly but useful ASP.NET errors -- clearly, thisis helpful when debugging. Setting the mode attribute to Off will show ASP.NET errors to allusers.If you supply a relative (for instance, /error404.html) or absolute address(http://yourdomain.com/error404.html) in the defaultRedirect attribute, the application will beautomatically redirected to this address in case of an error. Note that the relative address is