<?xml version="1.0"?>
<!-- 注意: 除了手动编辑此文件以外，您还可以使用 Web 管理工具来 
     配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“ASP.NET 配置”
     选项。
     设置和注释的完整列表在
     machine.config.comments 中，该文件通常位于 \Windows\Microsoft.NET\Framework\v2.0.xxxxx\Config 中
 -->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
	<configSections>
		<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/>
	</configSections>
	<RewriterConfig>
		<Rules>
			<!-- Rules for Blog Content Displayer -->
			<RewriterRule>
				<LookFor>http://demo.lbmall.cn/</LookFor>
				<SendTo>~/default.aspx</SendTo>
			</RewriterRule>
			<RewriterRule>
				<LookFor>http://(.*).lbmall.cn/</LookFor>
				<SendTo>~/Shop.aspx?names=$1</SendTo>
			</RewriterRule>
			<RewriterRule>
				<LookFor>~/(.*)/</LookFor>
				<SendTo>~/TopTab.aspx?type=$1</SendTo>
			</RewriterRule>
		</Rules>
	</RewriterConfig>
	<appSettings/>
	<connectionStrings>
    <add name="constr" connectionString="data source=8BCA065535224D4\SQL2008;uid=sa;pwd=56770;database=LBMall;pooling=true" />
	</connectionStrings>
	<system.web>
		<!-- 
            设置 compilation debug="true" 将调试符号插入已编译的页面中。
            但由于这会影响性能，因此只在开发过程中将此值设置为 true。
        -->
		<httpModules>
			<add name="MyHttpModule" type="BlockIP.MyHttpModule,BlockIP"></add>
			<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter"/>
		</httpModules>
		<httpHandlers>
			<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
			<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True"/>
			<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
			<add verb="*" path="*/" type="URLRewriter.RewriterFactoryHandler, URLRewriter"/>
		</httpHandlers>
		<compilation debug="true" targetFramework="4.0">
   <assemblies>
    <add assembly="Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
   </assemblies>
  </compilation>
		<!--
            通过 <authentication> 节可以配置 ASP.NET 使用的
            安全身份验证模式，以标识传入的用户。 
        -->
		<authentication mode="Windows"/>
		<!--
            如果在执行请求的过程中出现未处理的错误，则通过 <customErrors> 节
            可以配置相应的处理步骤。具体说来，开发人员通过该节可以
            配置要显示的 html 错误页以代替错误堆栈跟踪。
        -->
		<customErrors mode="Off"/>
		<!-- 
		<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
			
            <error statusCode="403" redirect="NoAccess.htm" />   
            <error statusCode="404" redirect="FileNotFound.htm" />
        -->
		<!--
            完全限定客户端重定向的 URL
            有些移动设备要求对客户端重定向的 URL 进行完全限定。
        -->
		<httpRuntime useFullyQualifiedRedirectUrl="true"/>
		<!--
          指定无 Cookie 的数据字典类型
          这将使字典内容出现在本地请求 url 查询字符串中。
          这是在无 Cookie 的设备上进行 Forms 身份验证所必需的。
        -->
		<mobileControls cookielessDataDictionaryType="System.Web.Mobile.CookielessData"/>
		<deviceFilters>
			<filter name="isJPhone" compare="Type" argument="J-Phone"/>
			<filter name="isHTML32" compare="PreferredRenderingType" argument="html32"/>
			<filter name="isWML11" compare="PreferredRenderingType" argument="wml11"/>
			<filter name="isCHTML10" compare="PreferredRenderingType" argument="chtml10"/>
			<filter name="isGoAmerica" compare="Browser" argument="Go.Web"/>
			<filter name="isMME" compare="Browser" argument="Microsoft Mobile Explorer"/>
			<filter name="isMyPalm" compare="Browser" argument="MyPalm"/>
			<filter name="isPocketIE" compare="Browser" argument="Pocket IE"/>
			<filter name="isUP3x" compare="Type" argument="Phone.com 3.x Browser"/>
			<filter name="isUP4x" compare="Type" argument="Phone.com 4.x Browser"/>
			<filter name="isEricssonR380" compare="Type" argument="Ericsson R380"/>
			<filter name="isNokia7110" compare="Type" argument="Nokia 7110"/>
			<filter name="prefersGIF" compare="PreferredImageMIME" argument="image/gif"/>
			<filter name="prefersWBMP" compare="PreferredImageMIME" argument="image/vnd.wap.wbmp"/>
			<filter name="supportsColor" compare="IsColor" argument="true"/>
			<filter name="supportsCookies" compare="Cookies" argument="true"/>
			<filter name="supportsJavaScript" compare="Javascript" argument="true"/>
			<filter name="supportsVoiceCalls" compare="CanInitiateVoiceCall" argument="true"/>
		</deviceFilters>
		<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
</configuration>
