今天将cc.net的版本换回了1.0.1,发现了几个问题,在1.1中cc.net已经可以将merge标签等直接放在task中,但是1.0还是必须放在publishers中;同时不知道怎么的1.0对于ccservice不支持更改ccnet.config的路径,虽然它开放了配置项的;最郁闷的一个问题就是换回来了之后才发现,dashboard不能启动了,总是报datatime.ticks超出界限了,在cc.net的文档中对该问题有描述:
I get the following error in the web dashboard: "Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks"
You will get this error if your CCNet server is running under the .NET 2.0 framework, whereas the webdashboard or CCTray is running under version 1.x. This is a problem using .NET remoting across different versions of the .NET framework. You can fix this by ensuring that you are using the same version of the .NET framework for the CCNet components (CCTray, the CruiseControl.NET Server, and the Web Dashboard) on all machines.
If you have multiple versions of the .NET framework installed, you can select the version of the framework used by the web dashboard as follows:
Open IIS
Right click the CCnet Virtual Directory (typically ccnet)
Select Properties
Select ASP.Net
Select The desired version of the .NET runtime from the drop down
但是我发现我本机对于cc.net是将其配置为asp.net1.1的,真是有点郁闷,之后我想这肯定和2.0兼容性有关,但是我的机器又需要2.0做开发不能卸载。这是我将ccnet站点独立了一个应用池,问题还是依旧,我想毕竟是远程交互的,两边的版本不一致,序列化的内容肯定出错了,所以修改了ccservice.exe.config和web.config的内容,添加上了配置节:
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
在修改了web.config后,重新启动服务和iis,一切ok^_^
发表于 @ 2007年01月10日 20:50:00|评论(loading...)|编辑