<configuration>

    <!-- application specific settings -->
    <appSettings>
        <!-- <add key="ConnectionString" value="server=localhost;Trusted_Connection=true;database=Portal" /> -->
       <add key="ConnectionString" value="Server=VINOMATCH\SQLEXPRESS;initial catalog=BenjaminRabier_Portal;persist security info=True;user id=Gedeon;password=canard;workstation id=PIERRE-HOME;packet size=4096" />
        <add key="CommerceConnectionString" value="Server=VINOMATCH\SQLEXPRESS;initial catalog=CheminsDeFrance_commerce;persist security info=True;user id=XPAdmin;password=agustinus;workstation id=PIERRE-HOME;packet size=4096" />
		<!--     -->
        <add key="SmtpServer" value="xpdreamteam.com" />
		<!-- Administrator email who sends lost password    -->
        <add key="AdminOfLostPasswords" value="pierre@xpdreamteam.com" />
		<!-- Can be html or txt  and password replace should be "@@password@@" -->
        <add key="LostPasswordSendType" value="html" />
        <add key="LostPasswordSendSource" value="~/Admin/TemplateAdminMails/SendNotification.html" />
		<!-- Administrator email who sends and receives Payments Notifications    -->
        <add key="AdminOfPaymentNotifications" value="pierre@xpdreamteam.com" />
        <add key="PaymentNotificationsSendType" value="html" />
        <add key="PaymentNotificationsSource" value="~/Admin/TemplateAdminMails/IPN.html" />
        <!-- 
        <add key="PaymentNotificationsURL" value="https://www.xpdreamteam.com/CommerceModules/PaymentProcessing/IPN.aspx" />
        -->
        <add key="PaymentNotificationsURL" value="https://www.xpdreamteam.com/CommerceModules/PaymentProcessing/IPN.aspx" />
		<!-- Administrator email who sends and receives New customer registrations    -->
        <add key="AdminOfNewCustomerRegistrations" value="pierre@xpdreamteam.com" />
        <add key="NewCustomerRegistrationSendType" value="html" />
        <add key="NewCustomerRegistrationSource" value="~/Admin/TemplateAdminMails/newCustomerReg.html" />
    </appSettings>
		
		<location path="CommerceModules/Checkout.aspx">
			<system.web>
				<authorization>
					<deny users="?" />
				</authorization>
			</system.web>
		</location>

    <system.web>
    <pages validateRequest="false"/>
    <!--  DYNAMIC DEBUG COMPILATION
          Set compilation debug="true" to enable ASPX debugging.  Otherwise, setting this value to
          false will improve runtime performance of this application. 
          Set compilation debug="true" to insert debugging symbols (.pdb information)
          into the compiled page. Because this creates a larger file that executes
          more slowly, you should set this value to true only when debugging and to
          false at all other times. For more information, refer to the documentation about
          debugging ASP .NET files.
    -->
    <compilation defaultLanguage="c#" debug="true" />
    <!--  CUSTOM ERROR MESSAGES
          Set customError mode values to control the display of user-friendly 
          error messages to users instead of error details (including a stack trace):

          "On" Always display custom (friendly) messages  
          "Off" Always display detailed ASP.NET error information.
          "RemoteOnly" Display custom (friendly) messages only to users not running 
          on the local Web server. This setting is recommended for security purposes, so 
          that you do not display application detail information to remote clients.
    -->
    <customErrors mode="RemoteOnly"> 
		<error statusCode="404" redirect="admin/PageNotFound.aspx" />
    </customErrors>

        <!--IBuySpy Portal supports either Forms authentication (Internet)
            or Windows authentication (for intranets).  Forms Authentication is
            the default.  To change to Windows authentication, comment the 
            <authentication mode="Forms"> section below, and uncomment the 
            <authentication mode="Windows"> section. -->
            
        <authentication mode="Forms">
            <forms name=".ASPXAUTH" loginUrl="login.aspx" protection="All" timeout="60" />
        </authentication>

        <!--<authentication mode="Windows" />
        <authorization>
            <deny users="?" />
        </authorization>-->
        
         <!-- <httpRuntime useFullyQualifiedRedirectUrl="true" /> -->
        
        <!-- Adapter configuration for mobile controls used in the portal -->
        <mobileControls>
            <device name="PortalHtmlDeviceAdapters" inheritsFrom="HtmlDeviceAdapters">
                <control name="Xpdt.Portal.MobileControls.TabbedPanel, Portal" adapter="Xpdt.Portal.MobileControls.HtmlTabbedPanelAdapter,Portal" />
                <control name="Xpdt.Portal.MobileControls.LinkCommand, Portal" adapter="Xpdt.Portal.MobileControls.HtmlLinkCommandAdapter,Portal" />
            </device>
            <device name="PortalChtmlDeviceAdapters" inheritsFrom="ChtmlDeviceAdapters">
                <control name="Xpdt.Portal.MobileControls.TabbedPanel, Portal" adapter="Xpdt.Portal.MobileControls.ChtmlTabbedPanelAdapter,Portal" />
            </device>
            <device name="PortalWmlDeviceAdapters" inheritsFrom="WmlDeviceAdapters">
                <control name="Xpdt.Portal.MobileControls.TabbedPanel, Portal" adapter="Xpdt.Portal.MobileControls.WmlTabbedPanelAdapter,Portal" />
            </device>
        </mobileControls>
        
        <!-- Mobile device filters used for customizing portal -->
        <deviceFilters>
            <filter name="isJScript" compare="javascript" argument="true" />
            <filter name="isPocketIE" compare="browser" argument="Pocket IE" />
            <filter name="isHTML32" compare="preferredRenderingType" argument="html32" />
        </deviceFilters>
    </system.web>

</configuration>
