暫無描述

Web.config 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <appSettings>
  8. <add key="webpages:Version" value="3.0.0.0"/>
  9. <add key="webpages:Enabled" value="false"/>
  10. <add key="PreserveLoginUrl" value="true"/>
  11. <add key="ClientValidationEnabled" value="true"/>
  12. <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  13. </appSettings>
  14. <system.web>
  15. <compilation debug="true" targetFramework="4.5"/>
  16. <httpRuntime targetFramework="4.5"/>
  17. <pages>
  18. <namespaces>
  19. <add namespace="System.Web.Helpers"/>
  20. <add namespace="System.Web.Mvc"/>
  21. <add namespace="System.Web.Mvc.Ajax"/>
  22. <add namespace="System.Web.Mvc.Html"/>
  23. <add namespace="System.Web.Routing"/>
  24. <add namespace="System.Web.WebPages"/>
  25. </namespaces>
  26. </pages>
  27. <httpModules>
  28. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
  29. </httpModules>
  30. </system.web>
  31. <system.webServer>
  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"
  38. preCondition="integratedMode,runtimeVersionv4.0"/>
  39. </handlers>
  40. <modules>
  41. <remove name="ApplicationInsightsWebTracking"/>
  42. <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"
  43. preCondition="managedHandler"/>
  44. </modules>
  45. </system.webServer>
  46. <runtime>
  47. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  48. <dependentAssembly>
  49. <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>
  50. <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
  51. </dependentAssembly>
  52. <dependentAssembly>
  53. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
  54. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  55. </dependentAssembly>
  56. <dependentAssembly>
  57. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  58. <bindingRedirect oldVersion="1.0.0.0-5.2.0.0" newVersion="5.2.0.0"/>
  59. </dependentAssembly>
  60. <dependentAssembly>
  61. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>
  62. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
  63. </dependentAssembly>
  64. <dependentAssembly>
  65. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
  66. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
  67. </dependentAssembly>
  68. <dependentAssembly>
  69. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>
  70. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
  71. </dependentAssembly>
  72. </assemblyBinding>
  73. </runtime>
  74. <system.codedom>
  75. <compilers>
  76. <compiler language="c#;cs;csharp" extension=".cs"
  77. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  78. warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
  79. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
  80. type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  81. warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
  82. </compilers>
  83. </system.codedom>
  84. </configuration>