CC Validator会为dashboard.config文件抛出错误 - 没有使用Reflector Type属性标记加载的类型

时间:2012-01-08 12:53:07

标签: cruisecontrol.net

认为我搞砸了仪表板的配置文件。 错误 - 没有加载类型使用与XML节点(仪表板)匹配的Reflector Type属性进行标记。 当我验证CC Validator中的dashboard.config文件时出现错误。

这是我的dashboard.config文件

    <?xml version="1.0" encoding="utf-8"?>
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<dashboard>
  <remoteServices>
    <servers>
      <!-- Update this list to include all the servers you want to connect to. NB - each server name must be unique -->
      <server name="local" url="tcp://localhost:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false" />
    </servers>
      </remoteServices>
      <plugins>
        <farmPlugins>
          <farmReportFarmPlugin categories="false" />
          <cctrayDownloadPlugin />
          <administrationPlugin password="" />
        </farmPlugins>
        <serverPlugins>
          <serverReportServerPlugin />
        </serverPlugins>
        <projectPlugins>
          <projectReportProjectPlugin />
          <viewProjectStatusPlugin />
          <latestBuildReportProjectPlugin />
          <viewAllBuildsProjectPlugin />
        </projectPlugins>
        <buildPlugins>
          <buildReportBuildPlugin>
            <xslFileNames>
              <xslFile>xsl\header.xsl</xslFile>
              <xslFile>xsl\modifications.xsl</xslFile>
            </xslFileNames>
          </buildReportBuildPlugin>
          <buildLogBuildPlugin />
        </buildPlugins>
        <securityPlugins>
          <simpleSecurity />
        </securityPlugins>
      </plugins>
    </dashboard>
    </cruisecontrol>

任何人都可以帮助我解决这个问题,并且有关如何解决类似问题的一些提示会有所帮助。

1 个答案:

答案 0 :(得分:0)

你的dashboard.config文件看起来有点奇怪,我不认为它应该包含cruisecontrol节点。

我认为应该是:

<?xml version="1.0" encoding="utf-8"?>
<dashboard>
  <remoteServices>
    <servers>
      <!-- Update this list to include all the servers you want to connect to. NB - each server name must be unique -->
      <server name="local" url="tcp://localhost:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false" />
    </servers>
      </remoteServices>
      <plugins>
        <farmPlugins>
          <farmReportFarmPlugin categories="false" />
          <cctrayDownloadPlugin />
          <administrationPlugin password="" />
        </farmPlugins>
        <serverPlugins>
          <serverReportServerPlugin />
        </serverPlugins>
        <projectPlugins>
          <projectReportProjectPlugin />
          <viewProjectStatusPlugin />
          <latestBuildReportProjectPlugin />
          <viewAllBuildsProjectPlugin />
        </projectPlugins>
        <buildPlugins>
          <buildReportBuildPlugin>
            <xslFileNames>
              <xslFile>xsl\header.xsl</xslFile>
              <xslFile>xsl\modifications.xsl</xslFile>
            </xslFileNames>
          </buildReportBuildPlugin>
          <buildLogBuildPlugin />
        </buildPlugins>
        <securityPlugins>
          <simpleSecurity />
        </securityPlugins>
      </plugins>
    </dashboard>