Web.config 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <sectionGroup name="enyim.com">
  8. <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" />
  9. </sectionGroup>
  10. </configSections>
  11. <enyim.com>
  12. <memcached>
  13. <servers>
  14. <add address="192.168.1.12" port="11211" />
  15. </servers>
  16. <socketPool minPoolSize="10" maxPoolSize="1000" connectionTimeout="00:00:10" deadTimeout="00:02:00" />
  17. </memcached>
  18. </enyim.com>
  19. <redisconfig configSource="XmlConfig\redis.config" />
  20. <unity configSource="XmlConfig\ioc.config" />
  21. <connectionStrings configSource="XmlConfig\database.config" />
  22. <appSettings configSource="XmlConfig\system.config" />
  23. <system.web>
  24. <sessionState mode="InProc" timeout="180" />
  25. <compilation debug="true" targetFramework="4.5" />
  26. <customErrors mode="Off" defaultRedirect="\Error\ErrorPath404" />
  27. <pages controlRenderingCompatibilityVersion="4.0">
  28. <namespaces>
  29. <add namespace="System.Web.Helpers" />
  30. <add namespace="System.Web.Mvc" />
  31. <add namespace="System.Web.Mvc.Ajax" />
  32. <add namespace="System.Web.Mvc.Html" />
  33. <add namespace="System.Web.Routing" />
  34. <add namespace="System.Web.WebPages" />
  35. </namespaces>
  36. </pages>
  37. <httpModules>
  38. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
  39. </httpModules>
  40. </system.web>
  41. <system.webServer>
  42. <validation validateIntegratedModeConfiguration="false" />
  43. <modules runAllManagedModulesForAllRequests="true">
  44. <remove name="TelemetryCorrelationHttpModule" />
  45. <add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
  46. <remove name="ApplicationInsightsWebTracking" />
  47. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
  48. </modules>
  49. <handlers>
  50. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  51. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  52. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  53. <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" />
  54. <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" />
  55. <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" />
  56. </handlers>
  57. <defaultDocument>
  58. <files>
  59. <clear />
  60. <add value="index.htm" />
  61. <add value="Default.htm" />
  62. <add value="Default.asp" />
  63. <add value="index.html" />
  64. <add value="iisstart.htm" />
  65. <add value="default.aspx" />
  66. </files>
  67. </defaultDocument>
  68. </system.webServer>
  69. <runtime>
  70. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  71. <dependentAssembly>
  72. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  73. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  74. </dependentAssembly>
  75. <dependentAssembly>
  76. <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  77. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
  78. </dependentAssembly>
  79. <dependentAssembly>
  80. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  81. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  82. </dependentAssembly>
  83. <dependentAssembly>
  84. <assemblyIdentity name="ICSharpCode.SharpZipLib" publicKeyToken="1b03e6acf1164f73" culture="neutral" />
  85. <bindingRedirect oldVersion="0.0.0.0-0.86.0.518" newVersion="0.86.0.518" />
  86. </dependentAssembly>
  87. <dependentAssembly>
  88. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  89. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  90. </dependentAssembly>
  91. <dependentAssembly>
  92. <assemblyIdentity name="System.Web.WebPages" 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.Mvc" publicKeyToken="31bf3856ad364e35" />
  97. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  98. </dependentAssembly>
  99. </assemblyBinding>
  100. </runtime>
  101. <entityFramework>
  102. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  103. <parameters>
  104. <parameter value="v11.0" />
  105. </parameters>
  106. </defaultConnectionFactory>
  107. </entityFramework>
  108. </configuration>