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.
 
 
 
 
 
 

130 lines
8.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <configSections>
  8. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  9. <section name="redisconfig" type="Learun.Cache.Redis.RedisConfigInfo,Learun.Cache.Redis" />
  10. <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration" />
  11. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
  12. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  13. <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  14. <section name="casClientConfig" type="DotNetCasClient.Configuration.CasClientConfiguration, DotNetCasClient" />
  15. </configSections>
  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.5" />
  25. </system.Web>
  26. -->
  27. <system.web>
  28. <compilation debug="true" targetFramework="4.6.1" />
  29. <!--最大请求长度,单位为KB(千字节),默认为4M,设置为1G,上限为2G -->
  30. <httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
  31. <pages controlRenderingCompatibilityVersion="4.0" />
  32. <httpHandlers>
  33. <add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
  34. </httpHandlers>
  35. <authentication mode="Forms">
  36. <forms name=".DotNetCasClientAuth" loginUrl="http://authserver.htpt.edu.cn/authserver/login" timeout="30" defaultUrl="/" cookieless="UseCookies" slidingExpiration="true" path="/" />
  37. </authentication>
  38. <httpModules>
  39. <add name="DotNetCasClient" type="DotNetCasClient.CasAuthenticationModule,DotNetCasClient" />
  40. </httpModules>
  41. </system.web>
  42. <entityFramework>
  43. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  44. <parameters>
  45. <parameter value="mssqllocaldb" />
  46. </parameters>
  47. </defaultConnectionFactory>
  48. <providers>
  49. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  50. <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  51. <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  52. </providers>
  53. </entityFramework>
  54. <system.webServer>
  55. <validation validateIntegratedModeConfiguration="false" />
  56. <httpErrors existingResponse="PassThrough" />
  57. <handlers>
  58. <add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
  59. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  60. <remove name="OPTIONSVerbHandler" />
  61. <remove name="TRACEVerbHandler" />
  62. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  63. </handlers>
  64. <modules>
  65. <remove name="DotNetCasClient" />
  66. <add name="DotNetCasClient" type="DotNetCasClient.CasAuthenticationModule,DotNetCasClient" />
  67. </modules>
  68. </system.webServer>
  69. <system.data>
  70. <DbProviderFactories>
  71. <remove invariant="Oracle.ManagedDataAccess.Client" />
  72. <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" />
  73. <remove invariant="MySql.Data.MySqlClient" />
  74. <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" />
  75. </DbProviderFactories>
  76. </system.data>
  77. <runtime>
  78. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  79. <dependentAssembly>
  80. <publisherPolicy apply="no" />
  81. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  82. </dependentAssembly>
  83. <dependentAssembly>
  84. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  85. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  86. </dependentAssembly>
  87. <dependentAssembly>
  88. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  89. <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
  90. </dependentAssembly>
  91. <dependentAssembly>
  92. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  93. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  94. </dependentAssembly>
  95. <dependentAssembly>
  96. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  97. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  98. </dependentAssembly>
  99. <dependentAssembly>
  100. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  101. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  102. </dependentAssembly>
  103. <dependentAssembly>
  104. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  105. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  106. </dependentAssembly>
  107. <dependentAssembly>
  108. <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  109. <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
  110. </dependentAssembly>
  111. <dependentAssembly>
  112. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  113. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  114. </dependentAssembly>
  115. <dependentAssembly>
  116. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  117. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  118. </dependentAssembly>
  119. </assemblyBinding>
  120. </runtime>
  121. <oracle.manageddataaccess.client>
  122. <version number="*">
  123. <dataSources>
  124. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  125. </dataSources>
  126. </version>
  127. </oracle.manageddataaccess.client>
  128. <casClientConfig casServerLoginUrl="http://authserver.htpt.edu.cn/authserver/login" casServerUrlPrefix="http://authserver.htpt.edu.cn/authserver/" serverName="http://sxjy.htpt.edu.cn:8000/" notAuthorizedUrl="~/NotAuthorized.aspx" cookiesRequiredUrl="~/CookiesRequired.aspx" redirectAfterValidation="true" gateway="false" renew="false" singleSignOut="true" ticketTimeTolerance="5000" ticketValidatorName="Cas20" serviceTicketManager="CacheServiceTicketManager" gatewayStatusCookieName="CasGatewayStatus" />
  129. </configuration>