Mercurial > pub > bltoolkit
diff Demo/Asp.Net/Web/Web.config @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Demo/Asp.Net/Web/Web.config Thu Mar 27 21:46:09 2014 +0400 @@ -0,0 +1,73 @@ +<?xml version="1.0"?> +<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> + <connectionStrings> + <add name="ProductDB" connectionString="server=.;database=MSPetShop4;Integrated Security=True;" providerName="System.Data.SqlClient"/> + <add name="OrderDB" connectionString="server=.;database=MSPetShop4Orders;Integrated Security=True;" providerName="System.Data.SqlClient"/> + <add name="InventoryDB" connectionString="server=.;database=MSPetShop4;Integrated Security=True;" providerName="System.Data.SqlClient"/> + <add name="ProfileDB" connectionString="server=.;database=MSPetShop4Profile;Integrated Security=True;" providerName="System.Data.SqlClient"/> + <add name="MembershipDB" connectionString="server=.;database=MSPetShop4Services;Integrated Security=True;" providerName="System.Data.SqlClient"/> + </connectionStrings> + <system.web> + <pages theme="PetShop" styleSheetTheme="PetShop" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> + <controls> + <add tagPrefix="blt" namespace="BLToolkit.Web.UI" assembly="BLToolkit.4"/> + </controls> + </pages> + <!-- + 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" targetFramework="4.0"> + <assemblies> + <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> + </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="ProfileDB" type="PetShop.BusinessLogic.ProfileProvider" applicationName=".NET Pet Shop 4.0"/> + <add name="WishListProvider" connectionStringName="ProfileDB" type="PetShop.BusinessLogic.ProfileProvider" applicationName=".NET Pet Shop 4.0"/> + <add name="AccountInfoProvider" connectionStringName="ProfileDB" type="PetShop.BusinessLogic.ProfileProvider" applicationName=".NET Pet Shop 4.0"/> + </providers> + <properties> + <add name="ShoppingCart" type="PetShop.BusinessLogic.Cart" allowAnonymous="true" provider="ShoppingCartProvider"/> + <add name="WishList" type="PetShop.BusinessLogic.Cart" allowAnonymous="true" provider="WishListProvider"/> + <add name="AccountInfo" type="PetShop.ObjectModel.Address" allowAnonymous="false" provider="AccountInfoProvider"/> + </properties> + </profile> + <!-- Membership Provider for SqlServer --> + <membership defaultProvider="SQLMembershipProvider"> + <providers> + <add name="SQLMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="MembershipDB" applicationName=".NET Pet Shop 4.0" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" 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>