Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   |   Class Browser   
  |   Font Size...      

profiles_vb\Web.config

<?xml version="1.0"?>
<configuration> 
    <connectionStrings>
    <!--
    This connection is inherited from the ASP.NET Quickstart Web.config file
    Uncomment this section to edit the sample locally

    <add name="ASPNETDB" connectionString="Server=(local)\SQLExpress;Integrated Security=SSPI;Database=aspnetdb"/>

    -->
    </connectionStrings>
    <system.web> 
        
        <profile enabled="true" defaultProvider="QuickStartProfileSqlProvider" inherits="UserDefinedProfileClass">
            <providers>
                <add name="QuickStartProfileSqlProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ASPNETDB" applicationName="ProfileQuickStart"/>
            </providers>
            <properties>
                <add name="Name"/>
                <add name="PreferredBackgroundColor" type="System.Drawing.Color" allowAnonymous="true" serializeAs="Binary"/>
                <group name="AutomobilePreferences">
                    <add name="CarModels" type="System.Collections.ArrayList"/>
                    <add name="PricePoint" type="int" defaultValue="18500"/>
                </group>
            </properties>
        </profile>
        
        <anonymousIdentification 
            enabled="true" 
            cookieName=".ASPXANONYMOUS" 
            cookieTimeout="43200" 
            cookiePath="/" 
            cookieRequireSSL="false" 
            cookieSlidingExpiration="true" 
            cookieProtection="All" 
            cookieless="UseCookies"/>
        
        <pages theme="Default"/>
        
        <authentication mode="Forms">
            <forms name=".ASPXAUTH" 
                               loginUrl="HomePage.aspx" 
                               defaultUrl="secured/ProfileProperties.aspx" 
                               protection="All" 
                               timeout="30" path="/" 
                               requireSSL="false" 
                               slidingExpiration="true" 
                               cookieless="UseCookies" 
                               enableCrossAppRedirects="false"/>
        </authentication>
        
        <membership defaultProvider="QuickStartMembershipSqlProvider" userIsOnlineTimeWindow="15">
            <providers>
                <add name="QuickStartMembershipSqlProvider" 
                    type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                    connectionStringName="ASPNETDB" 
                    enablePasswordRetrieval="false" 
                    enablePasswordReset="true" 
                    requiresQuestionAndAnswer="false" 
                    applicationName="ProfileQuickStart" 
                    requiresUniqueEmail="false" 
                    passwordFormat="Hashed"/>
            </providers>
        </membership>
        <compilation>
            <assemblies>
                <add assembly="Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            </assemblies>
        </compilation>
    </system.web>
    <location path="secured">
        <system.web>
            <authorization>
                <deny users="?"/>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
</configuration>