zoukankan      html  css  js  c++  java
  • PetShop 4.0 Web.config

    web.config代码
    <?xml version="1.0"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <connectionStrings>
    <!-- SQL connection string for Profile database -->
    <add name="SQLProfileConnString" connectionString="server=AFS23;user id=mspetshop;password=pass@word1;database=MSPetShop4Profile;min pool size=4;max pool size=4;packet size=3072" providerName="System.Data.SqlClient"/>
    <!-- SQL connection string for Membership database -->
    <add name="SQLMembershipConnString" connectionString="server=AFS23;user id=mspetshop;password=pass@word1;database=MSPetShop4Services;min pool size=4;max pool size=4;packet size=3072" providerName="System.Data.SqlClient"/>
    <!-- SQL connection string for Inventory database lookup -->
    <add name="SQLConnString1" connectionString="server=AFS23;user id=mspetshop;password=pass@word1;database=MSPetShop4;min pool size=4;max pool size=4;packet size=3072" providerName="System.Data.SqlClient"/>
    <!-- SQL connection string for handling transactions on the Inventory database-->
    <add name="SQLConnString2" connectionString="server=AFS23;user id=mspetshop;password=pass@word1;database=MSPetShop4;min pool size=4;max pool size=4;packet size=1024" providerName="System.Data.SqlClient"/>
    <!-- SQL connection string for Orders database-->
    <add name="SQLConnString3" connectionString="server=AFS23;user id=mspetshop;password=pass@word1;database=MSPetShop4Orders;min pool size=4;max pool size=4;packet size=1024" providerName="System.Data.SqlClient"/>
    <!-- Oracle connection strings-->
    <add name="OraProfileConnString" connectionString="Data Source=localhost;user id=MSPETSHOPPROFILE;password=pass@word1;min pool size=4;max pool size=4" providerName="System.Data.OracleClient"/>
    <add name="OraMembershipConnString" connectionString="Data Source=localhost;user id=MSPETSHOPMEMBERSHIP;password=pass@word1;min pool size=4;max pool size=4" providerName="System.Data.OracleClient"/>
    <add name="OraConnString1" connectionString="Data Source=localhost;user id=MSPETSHOP;password=pass@word1;min pool size=4;max pool size=4" providerName="System.Data.OracleClient"></add>
    <add name="OraConnString2" connectionString="Data Source=localhost;user id=MSPETSHOP;password=pass@word1;min pool size=4;max pool size=4" providerName="System.Data.OracleClient"></add>
    <add name="OraConnString3" connectionString="Data Source=localhost;user id=MSPETSHOPORDERS;password=pass@word1;min pool size=4;max pool size=4" providerName="System.Data.OracleClient"></add>
    </connectionStrings>
    <appSettings>
    <!-- Pet Shop DAL configuration settings -->
    <!--设置数据库连接类型 value 此数据库联接类 -->
    <add key="WebDAL" value="PetShop.SQLServerDAL"/>
    <add key="OrdersDAL" value="PetShop.SQLServerDAL"/>
    <add key="ProfileDAL" value="PetShop.SQLProfileDAL"/>
    <!-- 允许数据缓存 -->
    <add key="EnableCaching" value="true"/>
    <!-- 数据缓存持续时间(分钟) ) -->
    <add key="CategoryCacheDuration" value="12"/>
    <add key="ProductCacheDuration" value="12"/>
    <add key="ItemCacheDuration" value="12"/>
    <!-- Cache dependency options. Possible values: PetShop.TableCacheDependency - SQL Server and keep empty for ORACLE -->
    <add key="CacheDependencyAssembly" value="PetShop.TableCacheDependency"/>
    <!-- CacheDatabaseName should match the name under caching section, when using TableCacheDependency -->
    <add key="CacheDatabaseName" value="MSPetShop4"/>
    <!-- *TableDependency lists table dependency for each instance separated by comma -->
    <add key="CategoryTableDependency" value="Category"/>
    <add key="ProductTableDependency" value="Product,Category"/>
    <add key="ItemTableDependency" value="Product,Category,Item"/>
    <!-- Order processing options (Asynch/Synch) -->
    <add key="OrderStrategyAssembly" value="PetShop.BLL"/>
    <add key="OrderStrategyClass" value="PetShop.BLL.OrderSynchronous"/>
    <!-- Asynchronous Order options -->
    <add key="OrderMessaging" value="PetShop.MSMQMessaging"/>
    <add key="OrderQueuePath" value="FormatName:DIRECT=OS:MachineName\Private$\PSOrders"/>
    <!-- Application Error Log -->
    <add key="Event Log Source" value=".NET Pet Shop 4.0"/>
    </appSettings>
    <system.web>
    <pages theme="PetShop" styleSheetTheme="PetShop"/>
    <!--
    Set compilation debug="true" to insert debugging
    symbols into the compiled page. Because this
    affects performance, set this value to true only
    during development.
    -->
    <compilation debug="true">
    <assemblies>
    <add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    </assemblies>
    </compilation>
    <!--
    The <authentication> section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.
    -->
    <authentication mode="Forms">
    <forms name="PetShopAuth" loginUrl="SignIn.aspx" protection="None" timeout="60"/>
    </authentication>
    <!--
    The <customErrors> section enables configuration
    of what to do if/when an unhandled error occurs
    during the execution of a request. Specifically,
    it enables developers to configure html error pages
    to be displayed in place of a error stack trace.
    -->
    <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
    <sessionState mode="Off"/>
    <anonymousIdentification enabled="true"/>
    <profile automaticSaveEnabled="false" defaultProvider="ShoppingCartProvider">
    <providers>
    <add name="ShoppingCartProvider" connectionStringName="SQLProfileConnString" type="PetShop.Profile.PetShopProfileProvider" applicationName=".NET Pet Shop 4.0"/>
    <add name="WishListProvider" connectionStringName="SQLProfileConnString" type="PetShop.Profile.PetShopProfileProvider" applicationName=".NET Pet Shop 4.0"/>
    <add name="AccountInfoProvider" connectionStringName="SQLProfileConnString" type="PetShop.Profile.PetShopProfileProvider" applicationName=".NET Pet Shop 4.0"/>
    </providers>
    <properties>
    <add name="ShoppingCart" type="PetShop.BLL.Cart" allowAnonymous="true" provider="ShoppingCartProvider"/>
    <add name="WishList" type="PetShop.BLL.Cart" allowAnonymous="true" provider="WishListProvider"/>
    <add name="AccountInfo" type="PetShop.Model.AddressInfo" allowAnonymous="false" provider="AccountInfoProvider"/>
    </properties>
    </profile>

    <!-- 针对SQL Server 数据库的成员资格提供程序配置 -->
    <membership defaultProvider="SQLMembershipProvider">
    <providers>
    <add name="SQLMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SQLMembershipConnString" applicationName=".NET Pet Shop 4.0" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFormat="Hashed"/>
    </providers>
    </membership>
    <!-- 针对Oracle 数据库的成员资格提供程序配置 -->
    <!--
    <membership defaultProvider="OracleMembershipProvider">
    <providers>
    <clear/>
    <add name="OracleMembershipProvider"
    type="PetShop.Membership.OracleMembershipProvider"
    connectionStringName="OraMembershipConnString"
    enablePasswordRetrieval="false"
    enablePasswordReset="false"
    requiresUniqueEmail="false"
    requiresQuestionAndAnswer="false"
    minRequiredPasswordLength="7"
    minRequiredNonalphanumericCharacters="1"
    applicationName=".NET Pet Shop 4.0"
    hashAlgorithmType="SHA1"
    passwordFormat="Hashed"/>
    </providers>
    </membership>
    -->
    <caching>
    <sqlCacheDependency enabled="true" pollTime="10000">
    <databases>
    <add name="MSPetShop4" connectionStringName="SQLConnString1" pollTime="10000"/>
    </databases>
    </sqlCacheDependency>
    </caching>
    </system.web>
    <location path="UserProfile.aspx">
    <system.web>
    <authorization>
    <deny users="?"/>
    </authorization>
    </system.web>
    </location>
    <location path="CheckOut.aspx">
    <system.web>
    <authorization>
    <deny users="?"/>
    </authorization>
    </system.web>
    </location>
    </configuration>
  • 相关阅读:
    软件测试(理论基础)
    Android NDK常见配置问题的解决方案
    Eclemma各种安装方式以及安装失败解决
    检测Buffer Overflow的几种方法
    转: 跟我一起写 Makefile
    流敏感、路径敏感、上下文敏感
    Symbolic Exectuion with Mixed ConcreteSymbolic Solving
    基于ajc的代码编织
    第一次个人编程作业
    第一次博客作业
  • 原文地址:https://www.cnblogs.com/netact/p/1794150.html
Copyright © 2011-2022 走看看