2008-10-13 50 views
0

尤其有什麼不對:當你從這個web.config中得到一個「無法識別的配置部分運行」配置異常

<configuration> 
    <configSections> 
    <section name="RStrace" type="Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics" /> 
    </configSections> 
    <system.diagnostics> 
    <switches> 
     <add name="DefaultTraceSwitch" value="3" /> 
    </switches> 
    </system.diagnostics> 
    <RStrace> 
    <add name="FileName" value="ReportServerService_" /> 
    <add name="FileSizeLimitMb" value="32" /> 
    <add name="KeepFilesForDays" value="14" /> 
    <add name="Prefix" value="appdomain, tid, time" /> 
    <add name="TraceListeners" value="file" /> 
    <add name="TraceFileMode" value="unique" /> 
    <add name="Components" value="all:3" /> 
    </RStrace> 
    <runtime> 
    <alwaysFlowImpersonationPolicy enabled="true"/> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
     <dependentAssembly> 
     <assemblyIdentity name="Microsoft.ReportingServices.Interfaces" 
       publicKeyToken="89845dcd8080cc91" 
       culture="neutral" /> 
     <bindingRedirect oldVersion="8.0.242.0" 
      newVersion="10.0.0.0"/> 
     <bindingRedirect oldVersion="9.0.242.0" 
      newVersion="10.0.0.0"/> 
     </dependentAssembly> 
    </assemblyBinding> 
    <gcServer enabled="true" /> 
    </runtime> 
</configuration> 
+0

您需要'轉義'XML(使用PRE塊)。 – leppie 2008-10-13 14:51:57

回答

1

它看起來像使用公司重新封裝技術安裝.NET並不是所有的位都在那裏。我們從原始的Microsoft映像安裝,一切正常。

1

當你缺少在configSections區域的進入你得到這個錯誤。在上面的例子中,你可能需要添加類似這樣一行:

<section name="runtime" type="your-datatype"/> 
0

它說,它找到<運行>標籤在你的文件,但不知道該怎麼辦。它可能在錯誤的部分。

由於< runtime>是一個標準的web.config元素,有些事情正在發生。嘗試刪除RTrace部分。如果可行,請在運行時部分之後恢復Rtrace部分。

+0

我認爲這可能是因爲有問題的客戶已經「重新包裝」了.NET,以便將其推向公司系統。 – James 2008-11-21 15:30:08

相關問題