我的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
答案 0 :(得分:0)
您没有发布您的ccnet.config文件的内容,而您收到的错误正在抱怨。让我们从明显的开始。我会看看那里是否有拼写错误,例如appSettings部分中可能缺少引号或其他内容。如果您有未经修改的版本,请将其恢复为该版本并查看您的问题是否消失,并将未修改版本与修改后的版本进行比较。
答案 1 :(得分:0)
有一个名为CCValidator的应用程序会告诉您ccnet.config
文件中的错误位置。我怀疑这不是问题所在。听起来好像是ccservice.exe.config
中的错误。也许有人不小心将ccnet.config
复制到ccservice.exe.config
。该错误也可能出现在您的网络信息中心的配置中。
答案 2 :(得分:0)
我通过删除build args标签解决了这个问题。
&lt; / noconsolelogger / t:CTS x86 ; BuildZip / v:d&gt;
我的处理器是64位,我使用 noconsolelogger / t:CTSx86 ,这是一个32位处理器。无论如何这些是可选的,所以我删除它工作正常。