Web.config.bak 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <!--activerecord的配置-->
  5. <section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord"/>
  6. </configSections>
  7. <connectionStrings>
  8. <!--正式-->
  9. <add name="ConnString" connectionString="waSaLjFS1MAZf++J/2SZWqMPAJa/7ot9L/cXoI9nWm5Og1G60v7Nyq7xGWdSS/Blpcsb2S9Ir/IJKmzNE6vLTn2WKTMYWEcs9RXoI3Op9n1c5WrAvKzA9Sudl+Y3mHvdwBojvbFoOk+YnRRNJkFQtFrdihg3nDNdME2mXdid9R0cehNfXQEmJQ=="/>
  10. <add name="ConnString2" connectionString="waSaLjFS1MAAoSe9+gKWJQ1CDnZ6dnO1QM0VzexKlXubMo4FCxLb4bGGAU51LHdcMfZxFkJQRZYr0VE6xFGB7Kpc8NKm8oz5p/9017hMVXqnAFPNyQ0zlOCGtSn5SrZEwFoWi1DEWddm1Qa251ScTdaiUfKARB9gsjoXWWM6JnnBGsHvhHU7EMZtm4NsIlz6ARKPn6RYCp2Zza8Ht7FTpX+ivahgu7qH"/>
  11. </connectionStrings>
  12. <appSettings>
  13. <add key="vs:EnableBrowserLink" value="false"/>
  14. <add key="upPath" value="D:\fireant\ecomerp\document\ws"/>
  15. <add key="curPath" value="D:\fireant\ecomerp\document\ws"/>
  16. <add key="copyPath" value="D:\fireant\ecomerp\document\copy"/>
  17. <add key="dPath" value="D:\fireant\ecomerp\document"/>
  18. </appSettings>
  19. <!--activerecord的配置-->
  20. <activerecord>
  21. <config>
  22. <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver"/>
  23. <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect"/>
  24. <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
  25. <add key="hibernate.connection.connection_string" value="ConnectionString = ${ConnString}"/>
  26. </config>
  27. </activerecord>
  28. <location>
  29. <system.web>
  30. <compilation targetFramework="4.5" debug="true"/>
  31. <!--
  32. <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
  33. -->
  34. <!--
  35. The <authentication> section enables configuration
  36. of the security authentication mode used by
  37. ASP.NET to identify an incoming user.
  38. -->
  39. <authentication mode="Windows"/>
  40. <!--
  41. The <customErrors> section enables configuration
  42. of what to do if/when an unhandled error occurs
  43. during the execution of a request. Specifically,
  44. it enables developers to configure html error pages
  45. to be displayed in place of a error stack trace.
  46. -->
  47. <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.htm">
  48. <error statusCode="403" redirect="NoAccess.htm"/>
  49. <error statusCode="404" redirect="FileNotFound.htm"/>
  50. </customErrors>
  51. <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
  52. <controls>
  53. <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  54. <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  55. <add tagPrefix="web" namespace="WebUI.WebControls" assembly="WebUI"/>
  56. </controls>
  57. </pages>
  58. <httpHandlers>
  59. <remove verb="*" path="*.asmx"/>
  60. <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  61. <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  62. <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  63. </httpHandlers>
  64. <httpModules>
  65. <!--<remove name="Session" />-->
  66. <remove name="WindowsAuthentication"/>
  67. <remove name="PassportAuthentication"/>
  68. <remove name="AnonymousIdentification"/>
  69. <remove name="UrlAuthorization"/>
  70. <remove name="FileAuthorization"/>
  71. <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  72. </httpModules>
  73. <httpRuntime requestValidationMode="2.0" maxRequestLength="73400000" executionTimeout="300" appRequestQueueLimit="100"/>
  74. <!--<identity impersonate="true" userName="xjh_develop" password="123123"/>-->
  75. </system.web>
  76. </location>
  77. <!--
  78. The system.webServer section is required for running ASP.NET AJAX under Internet
  79. Information Services 7.0. It is not necessary for previous version of IIS.
  80. -->
  81. <location>
  82. <system.webServer>
  83. <validation validateIntegratedModeConfiguration="false"/>
  84. <modules runAllManagedModulesForAllRequests="false">
  85. <remove name="ScriptModule"/>
  86. <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  87. </modules>
  88. <handlers>
  89. <remove name="HttpHandler-32"/>
  90. <remove name="HttpHandler"/>
  91. <remove name="WebServiceHandlerFactory-Integrated"/>
  92. <remove name="ScriptHandlerFactory"/>
  93. <remove name="ScriptHandlerFactoryAppServices"/>
  94. <remove name="ScriptResource"/>
  95. <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  96. <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  97. <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  98. </handlers>
  99. <defaultDocument>
  100. <files>
  101. <clear/>
  102. <add value="index.html"/>
  103. <add value="index.aspx"/>
  104. <add value="/"/>
  105. <add value="default.aspx"/>
  106. </files>
  107. </defaultDocument>
  108. <httpProtocol allowKeepAlive="true">
  109. <customHeaders>
  110. <add name="Access-Control-Allow-Origin" value="*"/>
  111. <add name="Access-Control-Allow-Headers" value="*"/>
  112. <add name="Access-Control-Allow-Methods" value="GET,POST,OPTIONS"/>
  113. </customHeaders>
  114. </httpProtocol>
  115. <staticContent>
  116. <mimeMap fileExtension=".apk" mimeType="application/octet-stream"/>
  117. <mimeMap fileExtension=".json" mimeType="application/json"/>
  118. <mimeMap fileExtension=".woff" mimeType="application/x-font-woff"/>
  119. <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff"/>
  120. <clientCache cacheControlMode="NoControl" cacheControlMaxAge="01:00:00"/>
  121. </staticContent>
  122. <security>
  123. <requestFiltering>
  124. <requestLimits maxAllowedContentLength="419430400" />
  125. </requestFiltering>
  126. </security>
  127. </system.webServer>
  128. </location>
  129. <!--
  130. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  131. 可在 <httpRuntime> 标记上设置以下特性。
  132. <system.Web>
  133. <httpRuntime targetFramework="4.5" />
  134. </system.Web>
  135. -->
  136. <runtime>
  137. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  138. <dependentAssembly>
  139. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
  140. <bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0"/>
  141. </dependentAssembly>
  142. </assemblyBinding>
  143. </runtime>
  144. </configuration>