Web.config
上传用户:chenxing
上传日期:2019-09-16
资源大小:792k
文件大小:8k
源码类别:

SilverLight

开发平台:

Others

  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.   
  17.     <appSettings/>
  18.     <connectionStrings/>
  19.   
  20.     <system.web>
  21.         <!-- 
  22.             Set compilation debug="true" to insert debugging 
  23.             symbols into the compiled page. Because this 
  24.             affects performance, set this value to true only 
  25.             during development.
  26.         -->
  27.         <compilation debug="false">
  28.           <assemblies>
  29.             <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  30.             <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  31.             <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  32.             <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  33.           </assemblies>
  34.         </compilation>
  35.         <!--
  36.             The <authentication> section enables configuration 
  37.             of the security authentication mode used by 
  38.             ASP.NET to identify an incoming user. 
  39.         -->
  40.         <authentication mode="Windows" />
  41.         <!--
  42.             The <customErrors> section enables configuration 
  43.             of what to do if/when an unhandled error occurs 
  44.             during the execution of a request. Specifically, 
  45.             it enables developers to configure html error pages 
  46.             to be displayed in place of a error stack trace.
  47.         <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  48.             <error statusCode="403" redirect="NoAccess.htm" />
  49.             <error statusCode="404" redirect="FileNotFound.htm" />
  50.         </customErrors>
  51.         -->
  52.       <pages>
  53.         <controls>
  54.           <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  55.           <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  56.         </controls>
  57.       </pages>
  58.       <httpHandlers>
  59.         <remove verb="*" path="*.asmx"/>
  60.         <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  61.         <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"/>
  62.         <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"/>
  63.       </httpHandlers>
  64.       <httpModules>
  65.         <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  66.       </httpModules>
  67.     </system.web>
  68.     <system.codedom>
  69.       <compilers>
  70.         <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
  71.                   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.     <!-- 
  79.         The system.webServer section is required for running ASP.NET AJAX under Internet
  80.         Information Services 7.0.  It is not necessary for previous version of IIS.
  81.     -->
  82.     <system.webServer>
  83.       <validation validateIntegratedModeConfiguration="false"/>
  84.       <modules>
  85.         <remove name="ScriptModule" />
  86.         <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  87.       </modules>
  88.       <handlers>
  89.         <remove name="WebServiceHandlerFactory-Integrated"/>
  90.         <remove name="ScriptHandlerFactory" />
  91.         <remove name="ScriptHandlerFactoryAppServices" />
  92.         <remove name="ScriptResource" />
  93.         <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
  94.              type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  95.         <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
  96.              type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  97.         <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" />
  98.       </handlers>
  99.     </system.webServer>
  100.     <runtime>
  101.       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  102.         <dependentAssembly>
  103.           <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
  104.           <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  105.         </dependentAssembly>
  106.         <dependentAssembly>
  107.           <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
  108.           <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  109.         </dependentAssembly>
  110.       </assemblyBinding>
  111.     </runtime>
  112. </configuration>