config的配置
<?xml version="1.0" encoding="utf-8"?><configuration>
<configSections>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" allowDefinition="MachineToApplication" restartOnExternalChanges="true"/>
</configSections>
<appSettings/>
<connectionStrings>
<add name="SuppliesConnectionString" connectionString="Data Source=.;Initial Catalog=Supplies;Integrated Security=True" providerName="System.Data.SqlClient"/>
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<SubSonicService defaultProvider="Supplies">
<providers>
<clear/>
<add name="Supplies" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="SuppliesConnectionString" generatedNamespace="Supplies"/>
</providers>
</SubSonicService>
<system.web>
<!--成员资格提供-->
<membership defaultProvider="hqsMemberShipProvider">
<providers>
<clear/>
<add name="hqsMemberShipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="LocalSqlServer"
requiresQuestionAndAnswer="true"
enablePasswordRetrieval="true"
passwordFormat="Clear"
applicationName="/"
requiresUniqueEmail="false"
enablePasswordReset="true"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
<!--
设置 compilation debug="true" 将调试符号插入
已编译的页面中。但由于这会
影响性能,因此只在开发过程中将此值
设置为 true。
-->
<roleManager enabled="true" />
<compilation debug="true">
<assemblies>
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
</compilation>
<!--
通过 <authentication> 节可以配置 ASP.NET 使用的
安全身份验证模式,
以标识传入的用户。
-->
<authentication mode="Forms">
<forms name="Supplies" loginUrl="Login.aspx" defaultUrl="Default.aspx"
cookieless="AutoDetect" />
</authentication>
<!--<authorization>
<deny users="?"/>
</authorization>-->
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
<system.net>
<mailSettings>
<smtp from="hqsss123@tom.com">
</smtp>
</mailSettings>
</system.net>
<location path="Default.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="Register.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="PasswordRecovery.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>