Web.config 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. https://go.microsoft.com/fwlink/?LinkId=301879
  5. -->
  6. <configuration>
  7. <connectionStrings>
  8. <add name="mysql" connectionString="Server=60.212.16.249;Uid=root;Pwd={cp55128-mysql-kjh-@2019};Connection Timeout=2880000;Database=cp55128;Port=3306;SslMode=none;CharSet=utf8;Convert Zero Datetime=True;Allow Zero Datetime=True" providerName="MySql.Data.MySqlClient" />
  9. </connectionStrings>
  10. <appSettings>
  11. <add key="ApiKey" value="{APIKEY-api.55128.cn-kjh.opencode.new}" />
  12. <add key="CzCodeXml" value="/Config/LotteryCode.xml" />
  13. <add key="webpages:Version" value="3.0.0.0" />
  14. <add key="webpages:Enabled" value="false" />
  15. <add key="ClientValidationEnabled" value="true" />
  16. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  17. </appSettings>
  18. <system.web>
  19. <compilation debug="true" targetFramework="4.6.1" />
  20. <httpRuntime targetFramework="4.6.1" />
  21. <httpModules>
  22. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
  23. </httpModules>
  24. </system.web>
  25. <system.webServer>
  26. <modules>
  27. <remove name="TelemetryCorrelationHttpModule" />
  28. <add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
  29. <remove name="ApplicationInsightsWebTracking" />
  30. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
  31. </modules>
  32. <validation validateIntegratedModeConfiguration="false" />
  33. <handlers>
  34. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  35. <remove name="OPTIONSVerbHandler" />
  36. <remove name="TRACEVerbHandler" />
  37. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  38. </handlers></system.webServer>
  39. <runtime>
  40. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  41. <dependentAssembly>
  42. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
  43. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  44. </dependentAssembly>
  45. <dependentAssembly>
  46. <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" />
  47. <bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
  48. </dependentAssembly>
  49. <dependentAssembly>
  50. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  51. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  52. </dependentAssembly>
  53. <dependentAssembly>
  54. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  55. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  56. </dependentAssembly>
  57. <dependentAssembly>
  58. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  59. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  60. </dependentAssembly>
  61. <dependentAssembly>
  62. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  63. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  64. </dependentAssembly>
  65. <dependentAssembly>
  66. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  67. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  68. </dependentAssembly>
  69. <dependentAssembly>
  70. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  71. <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" />
  72. </dependentAssembly>
  73. <dependentAssembly>
  74. <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
  75. <bindingRedirect oldVersion="0.0.0.0-1.2.11.0" newVersion="1.2.11.0" />
  76. </dependentAssembly>
  77. <dependentAssembly>
  78. <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  79. <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
  80. </dependentAssembly>
  81. <dependentAssembly>
  82. <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  83. <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
  84. </dependentAssembly>
  85. </assemblyBinding>
  86. </runtime>
  87. <system.codedom>
  88. <compilers>
  89. <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
  90. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
  91. </compilers>
  92. </system.codedom>
  93. </configuration>