【问题标题】:Server Error in '/ccnet' Application“/ccnet”应用程序中的服务器错误
【发布时间】:2015-03-25 21:22:04
【问题描述】:

我的 CCTray 说构建已损坏并在服务器上(http://172.25.165.10/ccnet/) 我收到此错误

“/ccnet”应用程序中的服务器错误。

配置错误

  <cruisecontrol xmlns:cb="urn:ccnet.config.builder">
  <!-- This is your CruiseControl.NET Server Configuration file. 
       Add your projects below! -->

  <project name="winapp"
           description="demoproject showing a small config" queue="Q1">
    <webURL>http://172.25.165.10/ccnet/</webURL>
    <!-- specify a state folder to prevent CCNet from saving it in Program Files\CruiseControl.NET\server 
	     programs may not standard write their data in it on windows Vista and up)
    -->

    <sourcecontrol type="svn">
      <trunkUrl>https://citdevbox.arcade.local:8443/svn/cardwellR/trunk/winapp</trunkUrl>
      <workingDirectory>c:\builds\winapp</workingDirectory>
      <username>***</username>
      <password>***</password>
    </sourcecontrol>
    
    
    <state type="state" directory="C:\CCNet\State" />


    <!-- specify a artifactDirectory to prevent CCNet from saving it in Program Files\CruiseControl.NET\server 
	     programs may not standard write their data in it on windows Vista and up)
    -->
    <artifactDirectory>C:\CCNet\BuildArtifacts\MyFirstProject</artifactDirectory>

    <tasks>
      <msbuild>
        <executable>C:\WINDOWS\Microsoft.NET\Framework\\v3.5\MSBuild.exe</executable>
        <projectFile>C:\Builds\build\BootStrapper.msbuild</projectFile>
        <buildArgs>/noconsolelogger /t:CTSx86;BuildZip /v:d</buildArgs>
        <logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
        <timeout>900</timeout>
      </msbuild>
    </tasks>
    

    <triggers>
      <!-- check the source control every X time for changes, 
	     and run the tasks if changes are found -->
      <intervalTrigger
               name="continuous"
               seconds="300"
               buildCondition="IfModificationExists"
               initialSeconds="5"/>
    </triggers>

   
    <publishers>
      <xmllogger />
      <artifactcleanup cleanUpMethod="KeepLastXBuilds"
                       cleanUpValue="50" />
    </publishers>

  </project>

</cruisecontrol>

描述:处理此请求所需的配置文件时出错。请查看下面的具体错误详细信息并适当地修改您的配置文件。

解析器错误消息:根元素必须与引用文件的部分的名称“appSettings”相匹配

来源错误:

第 1 行: Cruisecontrol xmlns:cb="urn:ccnet.config.builder"

源文件:C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config 行:1

版本信息:Microsoft .NET Framework 版本:2.0.50727.5456; ASP.NET 版本:2.0.50727.5456

【问题讨论】:

    标签: cruisecontrol.net appsettings


    【解决方案1】:

    您没有发布您收到的错误所抱怨的 ccnet.config 文件的内容。让我们从显而易见的开始。我会看看那里是否有错字,例如可能缺少引号或 appSettings 部分中的某些内容。如果您将未修改的版本恢复为该版本,并查看您的问题是否消失并将未修改的版本与修改的版本进行比较。

    【讨论】:

    • 在同一目录下还有一个 ccnet.exe.config 和一个 appSettings 部分,里面有什么改变吗?
    • 没有任何改变。
    【解决方案2】:

    有一个名为 CCValidator 的应用程序会告诉您错误在您的 ccnet.config 文件中的位置。我怀疑这不是问题所在。听起来错误在ccservice.exe.config 中。也许有人不小心将ccnet.config 复制到ccservice.exe.config。该错误也可能出现在您的 Web 仪表板的配置中。

    【讨论】:

      【解决方案3】:

      我通过删除 build args 标签解决了这个问题。

      /t:CTSx86;BuildZip /v:d>

      我的处理器是 64 位的,我使用的是 32 位处理器的 noconsolelogger /t:CTSx86。无论如何,这些都是可选的,所以我删除它工作正常。

      【讨论】:

        猜你喜欢
        • 2017-09-18
        • 1970-01-01
        • 1970-01-01
        • 2014-10-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多