Web.config 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="redisconfig" type="Lottomat.Cache.Redis.RedisConfigInfo,Lottomat.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. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  8. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  9. <sectionGroup name="enyim.com">
  10. <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" />
  11. </sectionGroup>
  12. </configSections>
  13. <enyim.com>
  14. <memcached>
  15. <servers>
  16. <add address="192.168.1.12" port="11211" />
  17. </servers>
  18. <socketPool minPoolSize="10" maxPoolSize="1000" connectionTimeout="00:00:10" deadTimeout="00:02:00" />
  19. </memcached>
  20. </enyim.com>
  21. <redisconfig configSource="XmlConfig\redis.config" />
  22. <connectionStrings configSource="XmlConfig\database.config" />
  23. <unity configSource="XmlConfig\ioc.config" />
  24. <appSettings configSource="XmlConfig\system.config" />
  25. <!--
  26. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  27. 可在 <httpRuntime> 标记上设置以下特性。
  28. <system.Web>
  29. <httpRuntime targetFramework="4.5" />
  30. </system.Web>
  31. -->
  32. <system.web>
  33. <sessionState mode="InProc" timeout="180" cookieless="false" />
  34. <compilation debug="true" targetFramework="4.5" />
  35. <customErrors mode="Off" defaultRedirect="\Error\ErrorPath404" />
  36. </system.web>
  37. <system.webServer>
  38. <!--<httpProtocol>
  39. <customHeaders>
  40. <add name="Access-Control-Allow-Origin" value="*" />
  41. <add name="Access-Control-Allow-Headers" value="Access-Control-Allow-Origin, AppKey, Authorization" />
  42. <add name="Access-Control-Allow-Methods" value="GET, POST, OPTIONS" />
  43. <add name="Access-Control-Request-Methods" value="GET, POST, OPTIONS" />
  44. </customHeaders>
  45. </httpProtocol>-->
  46. <validation validateIntegratedModeConfiguration="false" />
  47. <modules runAllManagedModulesForAllRequests="true" />
  48. <handlers>
  49. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  50. <remove name="TRACEVerbHandler" />
  51. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  52. </handlers>
  53. </system.webServer>
  54. <runtime>
  55. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  56. <dependentAssembly>
  57. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  58. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  59. </dependentAssembly>
  60. <dependentAssembly>
  61. <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  62. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
  63. </dependentAssembly>
  64. <dependentAssembly>
  65. <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  66. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  67. </dependentAssembly>
  68. <dependentAssembly>
  69. <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  70. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  71. </dependentAssembly>
  72. <dependentAssembly>
  73. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  74. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  75. </dependentAssembly>
  76. <dependentAssembly>
  77. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  78. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  79. </dependentAssembly>
  80. <dependentAssembly>
  81. <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  82. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  83. </dependentAssembly>
  84. <dependentAssembly>
  85. <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  86. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  87. </dependentAssembly>
  88. <dependentAssembly>
  89. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  90. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  91. </dependentAssembly>
  92. <dependentAssembly>
  93. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  94. <bindingRedirect oldVersion="0.0.0.0-1.2.15.0" newVersion="1.2.15.0" />
  95. </dependentAssembly>
  96. <dependentAssembly>
  97. <assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
  98. <bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
  99. </dependentAssembly>
  100. </assemblyBinding>
  101. </runtime>
  102. <entityFramework>
  103. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  104. <parameters>
  105. <parameter value="v11.0" />
  106. </parameters>
  107. </defaultConnectionFactory>
  108. <providers>
  109. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  110. </providers>
  111. </entityFramework>
  112. </configuration>