asp.net2.0中Web.config文件标准配置简要说明(上)
asp.net2.0中Web.config文件标准配置简要说明
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="stuclubSqlServer" connectionString="server= (local);uid=;pwd=;Trusted_Connection=yes;database=" />
<add name="storageSqlServer" connectionString="server=(local);uid=;pwd=;Trusted_Connection=yes;database=" />
<add name="LocalSqlServer" connectionString="server=(local);uid=;pwd=;Trusted_Connection=yes;database=" />
</connectionStrings>
<system.web>
<compilation debug="true" batch="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Runtime.Serialization.Formatters.Soap, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<machineKey validationKey="3FF1E929BC0534950B0920A7B59FA698BD02DFE8" decryptionKey="280450BB36319B474C996B506A95AEDF9B51211B1D2B7A77" decryption="3DES" validation="SHA1"/>
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="~/user/login.aspx"
defaultUrl="default.aspx" protection="All"
timeout="60" path="/" requireSSL="false"
slidingExpiration="true" cookieless="UseDeviceProfile"
domain ="" enableCrossAppRedirects="false">
<credentials passwordFormat="SHA1"/>
</forms>
<passport redirectUrl="internal"/>
</authentication>
<anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS" cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="None" domain=""/>
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
<membership userIsOnlineTimeWindow="60">
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" applicationName="stuclub"
type="Stuclub.Users.DataProviders.SqlMembershipProvider, Stuclub.CommonLib" connectionStringName="LocalSqlServer"
enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false"
minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"
requiresUniqueEmail="true" passwordFormat="Clear" />
</providers>
<configuration>