<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
	<connectionStrings>
		<!--<add name="MasterConnectionString" connectionString="Data Source=LocalHost;AttachDbFilename=StudentMultipleIntellegance.mdf;Integrated Security=false;User Id=Hussein; password=normedo66; Connect Timeout=100" providerName="System.Data.OleDBClient"/>-->
    <add name="MasterConnectionString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\StudentData.accdb;"/>
  </connectionStrings>
	<system.web>
		<compilation strict="false" explicit="true" targetFramework="4.0" debug="true">
			<assemblies>
				<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
		<!--<authentication mode="Forms">
			<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
		</authentication>-->
		<membership>
			<providers>
				<clear/>
				<add name="AspNetOleDBMembershipProvider" type="System.Web.Security.OleDBMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
			</providers>
		</membership>
		<profile>
			<providers>
				<clear/>
				<add name="AspNetOleDBProfileProvider" type="System.Web.Profile.OleDBProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
			</providers>
		</profile>
		<roleManager enabled="false">
			<providers>
				<clear/>
				<add name="AspNetOleDBRoleProvider" type="System.Web.Security.OleDBRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
				<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
			</providers>
		</roleManager>
	</system.web>
	<system.webServer>
		<modules runAllManagedModulesForAllRequests="true"/>
		<directoryBrowse enabled="false"/>
		<defaultDocument>
			<files>
				<clear/>
				<add value="index.php"/>
				<add value="Default.htm"/>
				<add value="Default.asp"/>
				<add value="index.htm"/>
				<add value="index.html"/>
				<add value="iisstart.htm"/>
				<add value="default.aspx"/>
			</files>
		</defaultDocument>
		<httpErrors errorMode="DetailedLocalOnly" existingResponse="Auto"/>
	</system.webServer>
	<!--<location path="Register.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

  <system.web>
    <authorization>
      <deny users="?"/>
    </authorization>
  </system.web>-->
 
    <system.web>
		<!-- 
        Session configuration 
        - Timeout value needs to match Forms Auth timeout** 
    -->
		<sessionState timeout="45"/>
		<!-- 
        The <authentication> section enables configuration 
        of the security authentication mode used by 
        ASP.NET to identify an incoming user. 
    -->
		<authentication mode="Forms">
			<forms loginUrl="register.aspx" protection="All" path="/" requireSSL="false" timeout="45" name=".ASPXAUTH" slidingExpiration="true" defaultUrl="register.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false"/>
		</authentication>
	</system.web>
	<!--<system.web>
		<customErrors mode="Off"/>
	</system.web>-->
  <system.web>
    <customErrors mode="Off" defaultRedirect="DefaultRedirectErrorPage.aspx"/>
  </system.web>
</configuration>
