Web.config 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <section name="redisconfig" type="LeaRun.Cache.Redis.RedisConfigInfo,LeaRun.Cache.Redis"/>
  5. <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration"/>
  6. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  7. </configSections>
  8. <redisconfig configSource="XmlConfig\redis.config"/>
  9. <unity configSource="XmlConfig\ioc.config"/>
  10. <connectionStrings configSource="XmlConfig\database.config"/>
  11. <appSettings configSource="XmlConfig\system.config"/>
  12. <!--
  13. 有关 .NET 4.5 的 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  14. 可在 <httpRuntime> 标记上设置以下特性。
  15. <system.Web>
  16. <httpRuntime targetFramework="4.5" />
  17. </system.Web>
  18. -->
  19. <system.web>
  20. <sessionState mode="InProc" timeout="180"/>
  21. <compilation debug="true" targetFramework="4.5"/>
  22. <customErrors mode="Off" defaultRedirect="\Error\ErrorPath404"/>
  23. <pages controlRenderingCompatibilityVersion="4.0">
  24. <namespaces>
  25. <add namespace="System.Web.Helpers"/>
  26. <add namespace="System.Web.Mvc"/>
  27. <add namespace="System.Web.Mvc.Ajax"/>
  28. <add namespace="System.Web.Mvc.Html"/>
  29. <add namespace="System.Web.Routing"/>
  30. <add namespace="System.Web.WebPages"/>
  31. </namespaces>
  32. </pages>
  33. <webServices >
  34. <protocols >
  35. <add name="HttpSoap"/>
  36. <add name="HttpPost"/>
  37. <add name="HttpGet"/>
  38. <add name="Documentation"/>
  39. </protocols>
  40. </webServices>
  41. </system.web>
  42. <system.webServer>
  43. <validation validateIntegratedModeConfiguration="false"/>
  44. <modules runAllManagedModulesForAllRequests="true"/>
  45. <handlers>
  46. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
  47. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
  48. <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
  49. <add verb="*" path="*.asmx" name="asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  50. <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"/>
  51. <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"/>
  52. <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"/>
  53. </handlers>
  54. <defaultDocument>
  55. <files>
  56. <clear/>
  57. <add value="index.htm"/>
  58. <add value="Default.htm"/>
  59. <add value="Default.asp"/>
  60. <add value="index.html"/>
  61. <add value="iisstart.htm"/>
  62. <add value="default.aspx"/>
  63. </files>
  64. </defaultDocument>
  65. </system.webServer>
  66. <runtime>
  67. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  68. <dependentAssembly>
  69. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
  70. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
  71. </dependentAssembly>
  72. <dependentAssembly>
  73. <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
  74. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
  75. </dependentAssembly>
  76. <dependentAssembly>
  77. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
  78. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
  79. </dependentAssembly>
  80. <dependentAssembly>
  81. <assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" culture="neutral"/>
  82. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
  83. </dependentAssembly>
  84. <dependentAssembly>
  85. <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" culture="neutral"/>
  86. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
  87. </dependentAssembly>
  88. </assemblyBinding>
  89. </runtime>
  90. <entityFramework>
  91. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  92. <parameters>
  93. <parameter value="v11.0"/>
  94. </parameters>
  95. </defaultConnectionFactory>
  96. </entityFramework>
  97. </configuration>