Web.config 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. https://go.microsoft.com/fwlink/?LinkId=301880
  5. -->
  6. <configuration>
  7. <connectionStrings>
  8. <add name="ZXonnectionString" connectionString="server=39.108.190.163;database=LottomatBaseDB;uid=sa;pwd=NK4Qwql8Z?csv(XNew;Connect Timeout=30;persist security info=false;Pooling=true;" providerName="System.Data.SqlClient" />
  9. <add name="KJonnectionString" connectionString="server=39.108.190.163;database=LotteryNumber;uid=sa;pwd=NK4Qwql8Z?csv(XNew;Connect Timeout=30;persist security info=false;Pooling=true;" providerName="System.Data.SqlClient" />
  10. </connectionStrings>
  11. <appSettings>
  12. <add key="webpages:Version" value="3.0.0.0" />
  13. <add key="webpages:Enabled" value="false" />
  14. <add key="ClientValidationEnabled" value="true" />
  15. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  16. </appSettings>
  17. <!--
  18. 有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
  19. 可在 <httpRuntime> 标记上设置以下特性。
  20. <system.Web>
  21. <httpRuntime targetFramework="4.5" />
  22. </system.Web>
  23. -->
  24. <system.web>
  25. <compilation debug="true" targetFramework="4.5" />
  26. <httpRuntime />
  27. <httpModules>
  28. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
  29. </httpModules>
  30. <pages controlRenderingCompatibilityVersion="4.0" />
  31. </system.web>
  32. <runtime>
  33. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  34. <dependentAssembly>
  35. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  36. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  37. </dependentAssembly>
  38. <dependentAssembly>
  39. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  40. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  41. </dependentAssembly>
  42. <dependentAssembly>
  43. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  44. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  45. </dependentAssembly>
  46. <dependentAssembly>
  47. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  48. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  49. </dependentAssembly>
  50. <dependentAssembly>
  51. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  52. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  53. </dependentAssembly>
  54. <dependentAssembly>
  55. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  56. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  57. </dependentAssembly>
  58. </assemblyBinding>
  59. </runtime>
  60. <system.webServer>
  61. <handlers>
  62. <add name="hh" verb="GET,HEAD" path="*.html" type="System.Web.StaticFileHandler" />
  63. </handlers>
  64. <validation validateIntegratedModeConfiguration="false" />
  65. <modules runAllManagedModulesForAllRequests="true">
  66. <remove name="ApplicationInsightsWebTracking" />
  67. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
  68. <remove name="UrlRoutingModule" />
  69. <add name="UrlRoutingModule" type="UrlRewrite.RewriteModule, UrlRewrite" />
  70. </modules>
  71. </system.webServer>
  72. <system.codedom>
  73. <compilers>
  74. <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
  75. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
  76. </compilers>
  77. </system.codedom>
  78. </configuration>