<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  <configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
  </configSections>
  <log4net>
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <file value="Logs/Application.log" />
      <appendToFile value="true" />
      <immediateFlush value="true" />
      <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
      <rollingStyle value="Size" />
      <maximumFileSize value="10MB" />
      <maxSizeRollBackups value="5" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%newline[%date{dd MMM yyyy HH:mm:ss.fff}](%thread) %-5level: %message (%location)%newline" />
      </layout>
    </appender>
    <root>
      <level value="DEBUG" />
      <appender-ref ref="RollingFileAppender" />
    </root>
  </log4net>
 	<appSettings>
    	<add key="TempUploadPath" value="E:\Program Files X86\Crutch IT\APCWebsite\Website\UploadTemp\" />
	<add key="UploadPath" value="E:\Program Files X86\Crutch IT\APCWebsite\Website\Uploads\" />
    	<add key="PastelPath" value="E:\Program Files X86\Crutch IT\APCWebsite\Website\PastelExports\" />
    	<add key="FinanceAdmin" value="fatima" />
    	<add key="FinanceManager" value="maya" />
	<add key="ED" value="anriette" />
	  <add key="newyorkfed.FXWS" value="http://www.newyorkfed.org/markets/fxrates/WebService/v1_0/FXWS.cfc" />
	</appSettings>

	<connectionStrings>
		<add name="APC_Data" connectionString="server=localhost\SQLExpress2012;database=APC;uid=sa;pwd=Apc00001" providerName="System.Data.SqlClient" />
    		<add name="APC_Finance" connectionString="server=localhost\SQLExpress2012;database=APC 2012-2017;uid=sa;pwd=Apc00001" providerName="System.Data.SqlClient" />

	</connectionStrings>
  <system.net>
    <mailSettings>
      <smtp>
        <network host="localhost" userName="finance" password="password" />
      </smtp>      
    </mailSettings>
  </system.net>
	<system.web>
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
	<httpRuntime maxRequestLength="2000000" executionTimeout="36000" />
	<pages validateRequest="false" enableEventValidation="false" />
		<compilation debug="false">
			<assemblies>
				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
				<add assembly="DevExpress.Web.ASPxDataControls.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4" />
				<add assembly="DevExpress.Web.ASPxNavBar.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4" />
				<add assembly="DevExpress.Web.ASPxClasses.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4" />
				<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
				<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
				<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
				<add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="DevExpress.Web.ASPxTabControl.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4" />
				<add assembly="DevExpress.Web.ASPxGrid.v6.3, Version=6.3.1.0, Culture=neutral, PublicKeyToken=79868B8147B5EAE4" />
				<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
				<add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies></compilation>

		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Forms">
			<forms loginUrl="Login.aspx" protection="All" defaultUrl="TaskList.aspx" cookieless="UseCookies" />
		</authentication>
		<!--            
            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="Off" />
		<roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
   <providers>
    <add connectionStringName="APC_Data" name="CustomizedRoleProvider" type="System.Web.Security.SqlRoleProvider" />
   </providers>
  </roleManager>
		<membership defaultProvider="CustomizedMembershipProvider">
			<providers>
				<add name="CustomizedMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="APC_Data" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" />
			</providers>
		</membership>
    <httpModules>
      <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" />
    </httpModules>
	<sessionState mode="InProc" cookieless="false" timeout="120" />
	</system.web>
 <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <publisherPolicy apply="no" />
    </assemblyBinding>
  </runtime>
    <system.webServer>
<security>
	<requestFiltering>
         <requestLimits maxAllowedContentLength="1073741824" />
      		</requestFiltering>
	</security>
        <defaultDocument>
            <files>
                <add value="Login.aspx" />
            </files>
        </defaultDocument>
    </system.webServer>

</configuration>
