0
|
1 <?xml version="1.0"?>
|
|
2 <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
|
3 <connectionStrings>
|
|
4 <add name="ProductDB" connectionString="server=.;database=MSPetShop4;Integrated Security=True;" providerName="System.Data.SqlClient"/>
|
|
5 <add name="OrderDB" connectionString="server=.;database=MSPetShop4Orders;Integrated Security=True;" providerName="System.Data.SqlClient"/>
|
|
6 <add name="InventoryDB" connectionString="server=.;database=MSPetShop4;Integrated Security=True;" providerName="System.Data.SqlClient"/>
|
|
7 <add name="ProfileDB" connectionString="server=.;database=MSPetShop4Profile;Integrated Security=True;" providerName="System.Data.SqlClient"/>
|
|
8 <add name="MembershipDB" connectionString="server=.;database=MSPetShop4Services;Integrated Security=True;" providerName="System.Data.SqlClient"/>
|
|
9 </connectionStrings>
|
|
10 <system.web>
|
|
11 <pages theme="PetShop" styleSheetTheme="PetShop" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
|
12 <controls>
|
|
13 <add tagPrefix="blt" namespace="BLToolkit.Web.UI" assembly="BLToolkit.4"/>
|
|
14 </controls>
|
|
15 </pages>
|
|
16 <!--
|
|
17 Set compilation debug="true" to insert debugging
|
|
18 symbols into the compiled page. Because this
|
|
19 affects performance, set this value to true only
|
|
20 during development.
|
|
21 -->
|
|
22 <compilation debug="true" targetFramework="4.0">
|
|
23 <assemblies>
|
|
24 <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
|
25 </assemblies>
|
|
26 </compilation>
|
|
27 <!--
|
|
28 The <authentication> section enables configuration
|
|
29 of the security authentication mode used by
|
|
30 ASP.NET to identify an incoming user.
|
|
31 -->
|
|
32 <authentication mode="Forms">
|
|
33 <forms name="PetShopAuth" loginUrl="SignIn.aspx" protection="None" timeout="60"/>
|
|
34 </authentication>
|
|
35 <!--
|
|
36 The <customErrors> section enables configuration
|
|
37 of what to do if/when an unhandled error occurs
|
|
38 during the execution of a request. Specifically,
|
|
39 it enables developers to configure html error pages
|
|
40 to be displayed in place of a error stack trace.
|
|
41 -->
|
|
42 <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
|
|
43 <sessionState mode="Off"/>
|
|
44 <anonymousIdentification enabled="true"/>
|
|
45 <profile automaticSaveEnabled="false" defaultProvider="ShoppingCartProvider">
|
|
46 <providers>
|
|
47 <add name="ShoppingCartProvider" connectionStringName="ProfileDB" type="PetShop.BusinessLogic.ProfileProvider" applicationName=".NET Pet Shop 4.0"/>
|
|
48 <add name="WishListProvider" connectionStringName="ProfileDB" type="PetShop.BusinessLogic.ProfileProvider" applicationName=".NET Pet Shop 4.0"/>
|
|
49 <add name="AccountInfoProvider" connectionStringName="ProfileDB" type="PetShop.BusinessLogic.ProfileProvider" applicationName=".NET Pet Shop 4.0"/>
|
|
50 </providers>
|
|
51 <properties>
|
|
52 <add name="ShoppingCart" type="PetShop.BusinessLogic.Cart" allowAnonymous="true" provider="ShoppingCartProvider"/>
|
|
53 <add name="WishList" type="PetShop.BusinessLogic.Cart" allowAnonymous="true" provider="WishListProvider"/>
|
|
54 <add name="AccountInfo" type="PetShop.ObjectModel.Address" allowAnonymous="false" provider="AccountInfoProvider"/>
|
|
55 </properties>
|
|
56 </profile>
|
|
57 <!-- Membership Provider for SqlServer -->
|
|
58 <membership defaultProvider="SQLMembershipProvider">
|
|
59 <providers>
|
|
60 <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"/>
|
|
61 </providers>
|
|
62 </membership>
|
|
63 <caching>
|
|
64 <sqlCacheDependency enabled="true" pollTime="10000">
|
|
65 <databases>
|
|
66 <add name="MSPetShop4" connectionStringName="SQLConnString1" pollTime="10000"/>
|
|
67 </databases>
|
|
68 </sqlCacheDependency>
|
|
69 </caching>
|
|
70 </system.web>
|
|
71 <location path="UserProfile.aspx"><system.web><authorization><deny users="?"/></authorization></system.web></location>
|
|
72 <location path="CheckOut.aspx"><system.web><authorization><deny users="?"/></authorization></system.web></location>
|
|
73 </configuration>
|