<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appSettings>
    <!-- ##########################交易发送地址配置#############################-->
      <!--######(以下配置为PM环境：入网测试环境用，生产环境配置见文档说明)#######-->
      <!-- 签名证书路径 PM_700000000000001_acp.pfx-->
      <add key="sdk.signCert.path" value="D:\\certs\\700000000000001_acp.pfx" />
      <!-- 签名证书密码 -->
      <add key="sdk.signCert.pwd" value="000000" />
      <!-- 签名证书类型 -->
      <add key="sdk.signCert.type" value="PKCS12" />
      <!-- 加密证书路径 -->
      <add key="sdk.encryptCert.path" value="D:\\certs\\encrypt.cer" />
      <!-- 验签证书目录 -->
      <add key="sdk.validateCert.dir" value="D:\\certs\\" />
      <!-- 前台交易地址 -->
      <add key="sdk.frontTransUrl" value="https://101.231.204.80:5000/gateway/api/frontTransReq.do" />
      <!-- 后台交易地址 -->
      <add key="sdk.backTransUrl" value="https://101.231.204.80:5000/gateway/api/backTransReq.do" />
      <!-- 交易状态查询地址 -->
      <add key="sdk.singleQueryUrl" value="https://101.231.204.80:5000/gateway/api/queryTrans.do" />
      <!-- 文件传输类交易地址 -->
      <add key="sdk.fileTransUrl" value="https://101.231.204.80:9080/" />
      <!-- 批量交易地址 -->
      <add key="sdk.batTransUrl" value="https://101.231.204.80:5000/gateway/api/batchTrans.do" />
      <!-- 有卡交易地址 -->
      <add key="sdk.cardRequestUrl" value="https://101.231.204.80:5000/gateway/api/cardTransReq.do" />
      <!-- app交易地址 手机控件支付使用该地址-->
      <add key="sdk.appRequestUrl" value="https://101.231.204.80:5000/gateway/api/appTransReq.do" />
    <add key="kesion" value="kesion" />
    <add key="aspnet:MaxHttpCollectionKeys" value="5000" />
  </appSettings>
  <system.web>
    <customErrors mode="Off" />
    <!--
     考试系统 word导入题库不成功，请将下面设置为true，并输入服务器的账号和密码 
    <identity impersonate="true" userName="administrator" password="654321" />
    -->
    <machineKey validation="SHA1" validationKey="78EA3850338FBADCE59D8DDF58C9E4518E7510149C46142D7AAD7F1AD49D95D4" decryptionKey="5FC88DFC24AE12BC" />
    <httpRuntime maxRequestLength="1024000" useFullyQualifiedRedirectUrl="true" executionTimeout="6000" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" requestValidationMode="2.0" />
    <!--全局定义页特定配置设置，如配置文件范围内的页和控件的 ASP.NET 指令。-->
    <pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode="Never" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
      <controls>
        <add tagPrefix="KS" namespace="Kesion.Controls" assembly="Kesion.APPCode" />
        <add tagPrefix="KS" src="~/control/Page.ascx" tagName="Page" />
        <add tagPrefix="KS" src="~/control/SpecialControl.ascx" tagName="SpecialControl" />
      </controls>
    </pages>
    <httpModules>
      <add type="Kesion.APPCode.HttpModule" name="HttpModule" />
    </httpModules>
    <httpHandlers>
      <add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true" />
    </httpHandlers>
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN" uiCulture="zh-CN" />
    <!-- 
            设置 compilation debug="true" 将调试符号插入
            已编译的页面中。但由于这会 
            影响性能，因此只在开发过程中将此值 
            设置为 true。
        -->
    <compilation debug="true" defaultLanguage="c#" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
      <buildProviders>
        <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
      </buildProviders>
    </compilation>
  </system.web>
  <system.webServer>
    <defaultDocument>
      <files>
       <clear />
        <add value="index.aspx" />
                <add value="index.htm" />
                <add value="index.html" />   
      </files>
    </defaultDocument>

    <handlers>
            <add name="html" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
      <add name="rewrite" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
    </handlers>
   
  </system.webServer>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="VerifySoap" />
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://www.kesion.com/websystem/Verify.asmx"
        binding="basicHttpBinding" bindingConfiguration="VerifySoap"
        contract="KesionService.VerifySoap" name="VerifySoap" />
    </client>
  </system.serviceModel>
</configuration>