Web.config
上传用户:jxqhsy
上传日期:2020-12-31
资源大小:1793k
文件大小:7k
源码类别:

SilverLight

开发平台:

HTML/CSS

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