2

特别是来自这个 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>
4

4 回答 4

2

就我而言,我发现该machine.config文件丢失了。它应该位于C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config我的机器上。machine.config.defaults在同一目录中存在一个。我在同一目录中复制了该文件并将其重命名为machine.config. 之后为我正常加载应用程序。

machine.config我通过使用.NET Framework Setup Verification Tool发现了该文件的缺失。为 .NET 框架 4.7.1 运行它后,会%temp%显示一个日志文件,其名称以setupverifier_errors. 它包含丢失的文件列表,并且machine.config位于列表顶部。如果还原machine.config没有为您修复它,那么检查日志文件中列出的其他文件可能是值得的。

于 2018-05-22T07:26:16.700 回答
1

当您缺少 configSections 区域中的条目时,您会收到此错误。在上面的示例中,您可能需要添加与此类似的一行:

<section name="runtime" type="your-datatype"/>
于 2008-10-13T15:06:35.530 回答
1

看起来 .NET 是使用公司重新打包技术安装的,但并非所有部分都在那里。我们从原始 Microsoft 映像安装,一切都很好。

于 2008-12-31T10:02:52.233 回答
0

意思是它在您的文件中找到 <runtime> 标记,但不知道如何处理它。它可能在错误的部分。

由于 <runtime> 是标准的 web.config 元素,因此发生了一些棘手的事情。尝试删除 RTrace 部分。如果可行,请在运行时部分之后恢复 Rtrace 部分。

于 2008-10-13T15:07:23.253 回答