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.
 
 
 
 
 
 

147 lines
8.4 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.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  14. </configSections>
  15. <redisconfig configSource="XmlConfig\redis.config" />
  16. <unity configSource="XmlConfig\ioc.config" />
  17. <connectionStrings configSource="XmlConfig\database.config" />
  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.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  32. </assemblies>
  33. </compilation>
  34. <customErrors mode="Off" defaultRedirect="\Error\ErrorPath404" />
  35. <pages controlRenderingCompatibilityVersion="4.0">
  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. <httpRuntime maxRequestLength="204800" executionTimeout="200" enable="true" />
  46. </system.web>
  47. <system.webServer>
  48. <validation validateIntegratedModeConfiguration="false" />
  49. <modules runAllManagedModulesForAllRequests="true" />
  50. <handlers>
  51. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  52. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  53. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  54. <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" />
  55. <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" />
  56. <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" />
  57. </handlers>
  58. <defaultDocument>
  59. <files>
  60. <clear />
  61. <add value="index.htm" />
  62. <add value="index.html" />
  63. </files>
  64. </defaultDocument>
  65. <security>
  66. <requestFiltering>
  67. <requestLimits maxAllowedContentLength="209715200" />
  68. </requestFiltering>
  69. </security>
  70. </system.webServer>
  71. <runtime>
  72. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  73. <dependentAssembly>
  74. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  75. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  76. </dependentAssembly>
  77. <dependentAssembly>
  78. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  79. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  80. </dependentAssembly>
  81. <dependentAssembly>
  82. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  83. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  84. </dependentAssembly>
  85. <dependentAssembly>
  86. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  87. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  88. </dependentAssembly>
  89. <dependentAssembly>
  90. <publisherPolicy apply="no" />
  91. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  92. </dependentAssembly>
  93. <dependentAssembly>
  94. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  95. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  96. </dependentAssembly>
  97. <dependentAssembly>
  98. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  99. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  100. </dependentAssembly>
  101. <dependentAssembly>
  102. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  103. <bindingRedirect oldVersion="1.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  104. </dependentAssembly>
  105. <dependentAssembly>
  106. <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  107. <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
  108. </dependentAssembly>
  109. <dependentAssembly>
  110. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  111. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  112. </dependentAssembly>
  113. <dependentAssembly>
  114. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  115. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  116. </dependentAssembly>
  117. </assemblyBinding>
  118. </runtime>
  119. <entityFramework>
  120. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  121. <parameters>
  122. <parameter value="v13.0" />
  123. </parameters>
  124. </defaultConnectionFactory>
  125. <providers>
  126. <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  127. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  128. <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  129. </providers>
  130. </entityFramework>
  131. <system.data>
  132. <DbProviderFactories>
  133. <remove invariant="MySql.Data.MySqlClient" />
  134. <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" />
  135. <remove invariant="Oracle.ManagedDataAccess.Client" />
  136. <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.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  137. </DbProviderFactories>
  138. </system.data>
  139. <oracle.manageddataaccess.client>
  140. <version number="*">
  141. <dataSources>
  142. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  143. </dataSources>
  144. </version>
  145. </oracle.manageddataaccess.client>
  146. </configuration>