<?xml version="1.0"?>
<configuration>

  <!-- By creating a custom file for application settings and specifying it here, you can have a 
         non-version-controlled appSettings *.config file for your development and testing purposes, 
         and the application web.config file can then be version controlled.
          
         The only constraint is that your custom file follow the naming convention specified in the 
         'file' attribute below.  If the runtime cannot find the specified file, it will simply ignore it.
          
         For more information, see: 
         http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfAppSettingsElement.asp
    -->
  <appSettings>

    <!-- Telerik settings -->
    <add key="Telerik.Skin" value="Vista" />

  </appSettings>
  <system.transactions>
    <!-- 
        a value of blank in the distributedTransactionManagerName takes the 
        local DTC server, we could also have a remote DTC server to perform
        our transaction if required by specifying the remote DTC server name
        here
      -->
    <defaultSettings distributedTransactionManagerName="" timeout="00:10:00"/>
  </system.transactions>

  <system.web>

    <pages enableViewState="true" enableViewStateMac="false" validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
    </pages>


    <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to enable ASPX 
            debugging. Otherwise, setting this value to false will improve runtime 
            performance of this application. -->
    <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.0" />

    <!-- CUSTOM ERROR MESSAGES Set customErrors mode="On" or "RemoteOnly" to enable 
            custom error messages, "Off" to disable. Add 
            <error>
            tags for each of the errors you want to handle. -->
    <customErrors mode="RemoteOnly" defaultRedirect="inactive.aspx"/>

    <!-- APPLICATION-LEVEL TRACE LOGGING Application-level tracing enables trace 
            log output for every page within an application. Set trace enabled="true" to 
            enable application trace logging. If pageOutput="true", the trace information 
            will be displayed at the bottom of each page. Otherwise, you can view the 
            application trace log by browsing the "trace.axd" page from your web 
            application root. -->
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>

    <httpRuntime maxRequestLength="102400" executionTimeout="360000" requestValidationMode="2.0" />

    <!-- SESSION STATE SETTINGS By default ASP.NET uses cookies to identify which 
            requests belong to a particular session. If cookies are not available, a 
            session can be tracked by adding a session identifier to the URL. To disable 
            cookies, set sessionState cookieless="true". -->
    <sessionState mode="InProc" cookieless="false" timeout="40" sqlConnectionString="data source=epdm;user id=sa; password=;" stateConnectionString="tcpip=127.0.0.1:42424"/>

    <!-- PREVENT SOURCE CODE DOWNLOAD This section sets the types of files that 
            will not be downloaded. As well as entering a httphandler for a file type, you 
            must also associate that file type with the xspisapi.dll in the App Mappings 
            property of the web site, or the file can be downloaded. It is recommended that 
            you use this section to prevent your sources being downloaded. -->
    <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

    <httpHandlers>
      <!-- Telerik Http handlers-->
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>

    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    </httpModules>
  </system.web>

  <connectionStrings>
    <add name="NorthwindConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Northwind.mdf;Integrated Security=True;User Instance=True"/>
  </connectionStrings>
</configuration>

