Web.config
上传用户:lvyingde
上传日期:2018-04-24
资源大小:610k
文件大小:7k
源码类别:

SilverLight

开发平台:

C#

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