You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

189 lines
11 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. http://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <configSections>
  8. <section name="redisconfig" type="Learun.Cache.Redis.RedisConfigInfo,Learun.Cache.Redis" />
  9. <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration" />
  10. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
  11. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  12. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  13. <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  14. </configSections>
  15. <unity configSource="XmlConfig\ioc.config" />
  16. <connectionStrings configSource="XmlConfig\database.config">
  17. </connectionStrings>
  18. <appSettings configSource="XmlConfig\system.config" />
  19. <log4net configSource="XmlConfig\log4net.config" />
  20. <!--
  21. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  22. 可在 <httpRuntime> 标记上设置以下特性。
  23. <system.Web>
  24. <httpRuntime targetFramework="4.6.1" />
  25. </system.Web>
  26. -->
  27. <system.web>
  28. <sessionState mode="InProc" timeout="180" />
  29. <compilation debug="true" targetFramework="4.6.2">
  30. <assemblies>
  31. <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  32. </assemblies>
  33. </compilation>
  34. <customErrors mode="Off" defaultRedirect="\Error\ErrorPath404" />
  35. <pages controlRenderingCompatibilityVersion="4.6.2">
  36. <namespaces>
  37. <add namespace="System.Web.Helpers" />
  38. <add namespace="System.Web.Mvc" />
  39. <add namespace="System.Web.Mvc.Ajax" />
  40. <add namespace="System.Web.Mvc.Html" />
  41. <add namespace="System.Web.Routing" />
  42. <add namespace="System.Web.WebPages" />
  43. </namespaces>
  44. </pages>
  45. </system.web>
  46. <system.webServer>
  47. <security>
  48. <requestFiltering allowDoubleEscaping="true" />
  49. </security>
  50. <validation validateIntegratedModeConfiguration="false" />
  51. <modules runAllManagedModulesForAllRequests="true" />
  52. <handlers>
  53. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  54. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  55. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  56. <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
  57. <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
  58. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  59. </handlers>
  60. <defaultDocument>
  61. <files>
  62. <clear />
  63. <add value="index.htm" />
  64. <add value="index.html" />
  65. </files>
  66. </defaultDocument>
  67. </system.webServer>
  68. <runtime>
  69. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  70. <dependentAssembly>
  71. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  72. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  73. </dependentAssembly>
  74. <dependentAssembly>
  75. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  76. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  77. </dependentAssembly>
  78. <dependentAssembly>
  79. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  80. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  81. </dependentAssembly>
  82. <dependentAssembly>
  83. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  84. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  85. </dependentAssembly>
  86. <dependentAssembly>
  87. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  88. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  89. </dependentAssembly>
  90. <dependentAssembly>
  91. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  92. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  93. </dependentAssembly>
  94. <dependentAssembly>
  95. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="b77a5c561934e089" culture="neutral" />
  96. <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
  97. </dependentAssembly>
  98. <dependentAssembly>
  99. <assemblyIdentity name="System.IO.Compression" culture="neutral" publicKeyToken="b77a5c561934e089" />
  100. <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
  101. </dependentAssembly>
  102. <dependentAssembly>
  103. <assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
  104. <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
  105. </dependentAssembly>
  106. <dependentAssembly>
  107. <assemblyIdentity name="System.Net.Sockets" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
  108. <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  109. </dependentAssembly>
  110. <dependentAssembly>
  111. <publisherPolicy apply="no" />
  112. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  113. </dependentAssembly>
  114. <dependentAssembly>
  115. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  116. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  117. </dependentAssembly>
  118. <dependentAssembly>
  119. <assemblyIdentity name="DocumentFormat.OpenXml" publicKeyToken="8fb06cb64d019a17" culture="neutral" />
  120. <bindingRedirect oldVersion="0.0.0.0-2.8.1.0" newVersion="2.8.1.0" />
  121. </dependentAssembly>
  122. <dependentAssembly>
  123. <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  124. <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  125. </dependentAssembly>
  126. <dependentAssembly>
  127. <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  128. <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  129. </dependentAssembly>
  130. <dependentAssembly>
  131. <assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  132. <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  133. </dependentAssembly>
  134. <dependentAssembly>
  135. <assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  136. <bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
  137. </dependentAssembly>
  138. <dependentAssembly>
  139. <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  140. <bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
  141. </dependentAssembly>
  142. <dependentAssembly>
  143. <assemblyIdentity name="Microsoft.Owin.Host.SystemWeb" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  144. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  145. </dependentAssembly>
  146. <dependentAssembly>
  147. <assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  148. <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
  149. </dependentAssembly>
  150. <dependentAssembly>
  151. <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  152. <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
  153. </dependentAssembly>
  154. <dependentAssembly>
  155. <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  156. <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
  157. </dependentAssembly>
  158. <dependentAssembly>
  159. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  160. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  161. </dependentAssembly>
  162. <dependentAssembly>
  163. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  164. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  165. </dependentAssembly>
  166. </assemblyBinding>
  167. </runtime>
  168. <entityFramework>
  169. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  170. <parameters>
  171. <parameter value="v13.0" />
  172. </parameters>
  173. </defaultConnectionFactory>
  174. <providers>
  175. <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  176. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  177. <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  178. </providers>
  179. </entityFramework>
  180. <system.data>
  181. <DbProviderFactories>
  182. <remove invariant="MySql.Data.MySqlClient" />
  183. <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  184. <remove invariant="Oracle.ManagedDataAccess.Client" />
  185. <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  186. </DbProviderFactories>
  187. </system.data>
  188. </configuration>