web.config
上传用户:zhl0745
上传日期:2022-04-11
资源大小:128k
文件大小:8k
源码类别:

行业应用

开发平台:

Java

  1. <?xml version="1.0"?>
  2. <!-- 
  3.     注意: 除了手动编辑此文件以外,您还可以使用 
  4.     Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
  5.      “网站”->“Asp.Net 配置”选项。
  6.     设置和注释的完整列表在 
  7.     machine.config.comments 中,该文件通常位于 
  8.     WindowsMicrosoft.NetFrameworkv2.xConfig 中
  9. -->
  10. <configuration>
  11. <configSections>
  12. <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  13. <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  14. <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  15. <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  16. <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
  17. <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  18. <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  19. <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  20. </sectionGroup>
  21. </sectionGroup>
  22. </sectionGroup>
  23. </configSections>
  24. <appSettings>
  25. <add key="SQL" value="server=(local);uid=sa;pwd=sa;database=MyTicketSaleDB"/>
  26. </appSettings>
  27. <connectionStrings/>
  28. <system.web>
  29. <!-- 
  30.             设置 compilation debug="true" 可将调试符号插入
  31.             已编译的页面中。但由于这会 
  32.             影响性能,因此只在开发过程中将此值 
  33.             设置为 true。
  34.         -->
  35. <compilation debug="true">
  36. <assemblies>
  37. <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  38. <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  39. <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  40. <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  41. </assemblies>
  42. </compilation>
  43. <!--
  44.             通过 <authentication> 节可以配置 ASP.NET 用来 
  45.             识别进入用户的
  46.             安全身份验证模式。 
  47.         -->
  48. <authentication mode="Windows"/>
  49. <!--
  50.             如果在执行请求的过程中出现未处理的错误,
  51.             则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
  52.             开发人员通过该节可以配置
  53.             要显示的 html 错误页
  54.             以代替错误堆栈跟踪。
  55.         <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  56.             <error statusCode="403" redirect="NoAccess.htm" />
  57.             <error statusCode="404" redirect="FileNotFound.htm" />
  58.         </customErrors>
  59.         -->
  60. <pages>
  61. <controls>
  62. <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  63. <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  64. </controls>
  65. </pages>
  66. <httpHandlers>
  67. <remove verb="*" path="*.asmx"/>
  68. <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  69. <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  70. <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
  71. </httpHandlers>
  72. <httpModules>
  73. <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  74. </httpModules>
  75. </system.web>
  76. <system.codedom>
  77. <compilers>
  78. <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  79. <providerOption name="CompilerVersion" value="v3.5"/>
  80. <providerOption name="WarnAsError" value="false"/>
  81. </compiler>
  82. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  83. <providerOption name="CompilerVersion" value="v3.5"/>
  84. <providerOption name="OptionInfer" value="true"/>
  85. <providerOption name="WarnAsError" value="false"/>
  86. </compiler>
  87. </compilers>
  88. </system.codedom>
  89. <!-- 
  90.         在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
  91.         节。对早期版本的 IIS 来说则不需要此节。
  92.     -->
  93. <system.webServer>
  94. <validation validateIntegratedModeConfiguration="false"/>
  95. <modules>
  96. <remove name="ScriptModule"/>
  97. <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  98. </modules>
  99. <handlers>
  100. <remove name="WebServiceHandlerFactory-Integrated"/>
  101. <remove name="ScriptHandlerFactory"/>
  102. <remove name="ScriptHandlerFactoryAppServices"/>
  103. <remove name="ScriptResource"/>
  104. <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  105. <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  106. <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  107. </handlers>
  108. </system.webServer>
  109. <runtime>
  110. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  111. <dependentAssembly>
  112. <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
  113. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  114. </dependentAssembly>
  115. <dependentAssembly>
  116. <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
  117. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  118. </dependentAssembly>
  119. </assemblyBinding>
  120. </runtime>
  121. </configuration>