Advertisement
Guest User

Untitled

a guest
May 10th, 2017
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.11 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3.    Note: As an alternative to hand editing this file you can use the
  4.    web admin tool to configure settings for your application. Use
  5.    the Website->Asp.Net Configuration option in Visual Studio.
  6.    A full list of settings and comments can be found in
  7.    machine.config.comments usually located in
  8.     \Windows\Microsoft.Net\Framework\v2.x\Config    
  9. -->
  10. <configuration>
  11.   <appSettings/>
  12.   <connectionStrings>
  13.     <add name="LoginTestDBCS" connectionString="Data Source=FOSSILPC;Initial Catalog=LoginTestDB;Integrated Security=True"
  14.      providerName="System.Data.SqlClient" />
  15.   </connectionStrings>
  16.   <system.web>
  17.     <!--
  18.            Set compilation debug="true" to insert debugging
  19.            symbols into the compiled page. Because this
  20.            affects performance, set this value to true only
  21.            during development.
  22.        -->
  23.     <roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
  24.       <providers>
  25.         <add connectionStringName="LoginTestDBCS"
  26.             name="CustomizedRoleProvider"
  27.             type="System.Web.Security.SqlRoleProvider" />
  28.       </providers>
  29.     </roleManager>
  30.  
  31.     <membership defaultProvider="CustomizedMembershipProvider">
  32.       <providers>
  33.         <add connectionStringName="LoginTestDBCS"
  34.             name="CustomizedMembershipProvider"
  35.             applicationName="WebSite1"
  36.             minRequiredPasswordLength="5"
  37.             maxInvalidPasswordAttempts="5"  
  38.             passwordAttemptWindow="5"
  39.             minRequiredNonalphanumericCharacters="0"
  40.             type="System.Web.Security.SqlMembershipProvider" />
  41.       </providers>
  42.     </membership>
  43.  
  44.    
  45.  
  46.     <compilation debug="true"/>
  47.    
  48.     <!--
  49.            The <authentication> section enables configuration
  50.            of the security authentication mode used by
  51.            ASP.NET to identify an incoming user.
  52.        -->
  53.     <authentication mode="Forms">
  54.       <forms name=".ASPXAUTH" loginUrl="UserLogin.aspx"
  55.         defaultUrl="default.aspx" protection="All" timeout="30" path="/"
  56.         requireSSL="false" slidingExpiration="true"
  57.         cookieless="UseDeviceProfile" domain=""
  58.         enableCrossAppRedirects="false">
  59.         <credentials passwordFormat="SHA1" />
  60.       </forms>
  61.     </authentication>
  62.  
  63.     <!--
  64.            The <customErrors> section enables configuration
  65.            of what to do if/when an unhandled error occurs
  66.            during the execution of a request. Specifically,
  67.            it enables developers to configure html error pages
  68.            to be displayed in place of a error stack trace.
  69.  
  70.        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  71.            <error statusCode="403" redirect="NoAccess.htm" />
  72.            <error statusCode="404" redirect="FileNotFound.htm" />
  73.        </customErrors>
  74.        -->
  75.   </system.web>
  76.   <system.net>
  77.     <mailSettings>
  78.       <smtp from="you@yourisp.co.za">
  79.         <network host="smtp.saix.net" password="" userName="" />
  80.       </smtp>
  81.     </mailSettings>
  82.   </system.net>
  83. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement