Configuration File Schema,.Net 配置文件详细说明

本文详细解析了.NET Framework 2.0配置文件的各个元素及其作用,包括<configuration>、<startup>、<runtime>等关键部分,并介绍了如何通过这些元素进行程序集绑定、版本重定向等操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

英文URL:http://msdn.microsoft.com/en-us/library/1fk1t1t0%28v=VS.71%29.aspx

.Net FrameWork 2.0

<configuration> Element

<configuration>。 每个配置文件的根目录。

<startup>
       <requiredRuntime> :指定应用依赖的版本。像“v1.0.3705”

      <supportedRuntime>: 指定应用支持哪些版本。

  <runtime>
      <developmentMode> :运行时是否在由DEVPATH环境变量指定的目录下搜索程序集。
      <assemblyBinding> :Contains information about assembly version redirection and the locations of assemblies.
         <probing> : 为运行时指定应用程序在加载程序集时的搜索基准目录。
         <publisherPolicy> ;Specifies whether the runtime applies publisher policy.
         <qualifyAssembly> Element : Specifies the full name of the assembly that should be dynamically loaded when a partial name is used.
         <dependentAssembly> : 封闭了每个程序集的绑定策略和位置信息。
            <assemblyIdentity> : 包含程序集相关的标识信息。
            <bindingRedirect> : 将程序集的版本指向到另一个。
            <codeBase> : 指定运行时到哪里找程序集。
            <publisherPolicy>
         <gcConcurrent>: 指定运行时是否在独立的线程中执行GC。

<configuration>

   <configSections>

      <clear>

      <remove>

      <section>

      <sectionGroup>

<system.web> 
   <anonymousIdentification> 
   <authentication> 
   <authorization> 
   <browserCaps> 
   <caching> 
   <clientTarget> 
   <compilation> 
   <customErrors> 
   <deployment> 
   <deviceFilters> 
   <globalization> 
   <healthMonitoring> 
   <hostingEnvironment> 
   <httpCookies> 
   <httpHandlers> 
   <httpModules> 
   <httpRuntime> 
   <identity> 
   <machineKey> 
   <membership> 
   <mobileControls> 
   <pages> 
   <processModel> 
   <profile> 
   <roleManager> 
   <securityPolicy> 
   <sessionPageState> 
   <sessionState> 
   <siteMap> 
   <trace> 
   <trust> 
   <urlMappings> 
   <webControls> 
   <webParts> 
   <webServices> 
   <xhtmlConformance> 
</system.web>

<configuration> Element   <system.codedom>      <compilers>         <compiler>

<configuration>   <system.web>      <webServices>         <protocols>            <add>            <remove>            <clear>         <serviceDescriptionFormatExtensionTypes>            <add>            <remove>            <clear>         <soapExtensionTypes>            <add>            <remove>            <clear>         <soapExtensionImporterTypes>            <add>            <remove>            <clear>         <soapExtensionReflectorTypes>            <add>            <remove>            <clear>         <wsdlHelpGenerator>

转载于:https://www.cnblogs.com/zhaojin/archive/2011/06/11/2078577.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值