web.config
上传用户:zhuzg88
上传日期:2018-04-24
资源大小:868k
文件大小:8k
源码类别:

SilverLight

开发平台:

C#

  1. <?xml version="1.0"?>
  2. <!-- 
  3.     Note: As an alternative to hand editing this file you can use the 
  4.     web admin tool to configure settings for your application. Use
  5.     the Website->Asp.Net Configuration option in Visual Studio.
  6.     A full list of settings and comments can be found in 
  7.     machine.config.comments usually located in 
  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. <connectionStrings>
  26.   <add name="SiteSqlServer" connectionString="Data Source=(local);Initial Catalog=SilverlightDesktop;Integrated Security=True"
  27.    providerName="System.Data.SqlClient" />
  28.  </connectionStrings>
  29. <system.web>
  30. <!-- 
  31.             Set compilation debug="true" to insert debugging 
  32.             symbols into the compiled page. Because this 
  33.             affects performance, set this value to true only 
  34.             during development.
  35.         -->
  36. <compilation debug="true">
  37. <assemblies>
  38. <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  39. <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  40. <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  41. <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  42. <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
  43. <add assembly="Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
  44. </compilation>
  45. <!--
  46.             The <authentication> section enables configuration 
  47.             of the security authentication mode used by 
  48.             ASP.NET to identify an incoming user. 
  49.         -->
  50. <authentication mode="Forms"/>
  51. <!--
  52.             The <customErrors> section enables configuration 
  53.             of what to do if/when an unhandled error occurs 
  54.             during the execution of a request. Specifically, 
  55.             it enables developers to configure html error pages 
  56.             to be displayed in place of a error stack trace.
  57.         <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  58.             <error statusCode="403" redirect="NoAccess.htm" />
  59.             <error statusCode="404" redirect="FileNotFound.htm" />
  60.         </customErrors>
  61.         -->
  62. <pages>
  63. <controls>
  64. <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  65. <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  66. </controls>
  67. </pages>
  68. <httpHandlers>
  69. <remove verb="*" path="*.asmx"/>
  70. <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  71. <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"/>
  72. <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"/>
  73. </httpHandlers>
  74. <httpModules>
  75. <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  76. </httpModules>
  77. </system.web>
  78. <system.codedom>
  79. <compilers>
  80. <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  81. <providerOption name="CompilerVersion" value="v3.5"/>
  82. <providerOption name="WarnAsError" value="false"/>
  83. </compiler>
  84. <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  85. <providerOption name="CompilerVersion" value="v3.5"/>
  86. <providerOption name="OptionInfer" value="true"/>
  87. <providerOption name="WarnAsError" value="false"/>
  88. </compiler>
  89. </compilers>
  90. </system.codedom>
  91. <!-- 
  92.         The system.webServer section is required for running ASP.NET AJAX under Internet
  93.         Information Services 7.0.  It is not necessary for previous version of IIS.
  94.     -->
  95. <system.webServer>
  96. <validation validateIntegratedModeConfiguration="false"/>
  97. <modules>
  98. <remove name="ScriptModule"/>
  99. <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  100. </modules>
  101. <handlers>
  102. <remove name="WebServiceHandlerFactory-Integrated"/>
  103. <remove name="ScriptHandlerFactory"/>
  104. <remove name="ScriptHandlerFactoryAppServices"/>
  105. <remove name="ScriptResource"/>
  106. <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"/>
  107. <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"/>
  108. <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"/>
  109. </handlers>
  110. </system.webServer>
  111. <runtime>
  112. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  113. <dependentAssembly>
  114. <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
  115. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  116. </dependentAssembly>
  117. <dependentAssembly>
  118. <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
  119. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  120. </dependentAssembly>
  121. </assemblyBinding>
  122. </runtime>
  123. </configuration>