我遇到了CruiseControl.net的问题,其中网页信息中心无法在IIS中运行。我尝试在64位和32位模式之间切换ASP.Net并重新安装巡航控制,但似乎没有任何效果。有没有其他人在64位平台上遇到过CruiseControl.Net的问题?
干杯, 杰米
[编辑]
我想我应该澄清一下,当我尝试访问该网站时,我收到了404错误。我正在使用正确的地址,因为它要求进行身份验证。 .aspx处理程序正在运行,因为我没有看到ccnet目录中的default.aspx页面。
[EDIT2]
我正在使用ccnet附带的默认web.config,但现在是:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<!-- Change this if (for example) you want to keep your dashboard config file under source control -->
<add key="DashboardConfigLocation" value="dashboard.config" />
</appSettings>
<system.web>
<httpHandlers>
<!-- Yes, we are overriding .aspx - don't delete this! We are using .aspx since we know it is already bound to ASP.NET. In future we might use a
different extension so that people can add their own ASP.NET pages if they want to, but we should make sure in that case to change how
URLs are created -->
<add verb="*" path="*.aspx" type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"/>
<add verb="*" path="*.xml" type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"/>
</httpHandlers>
<compilation defaultLanguage="c#" debug="true" />
<customErrors mode="RemoteOnly" />
<authentication mode="Windows" />
<!-- APPLICATION-LEVEL TRACE LOGGING
Application-level tracing enables trace log output for every page within an application.
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
trace information will be displayed at the bottom of each page. Otherwise, you can view the
application trace log by browsing the "trace.axd" page from your web application
root.
-->
<trace
enabled="false"
requestLimit="10"
pageOutput="true"
traceMode="SortByTime"
localOnly="true"
/>
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false" timeout="20" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
答案 0 :(得分:4)
我似乎需要为ASP.Net启用Web服务扩展。我仍然没有在巡航控制网站属性中获得ASP.Net选项卡,但它正在运行。
C:\ Windows \ Microsoft.NET \框架\ V2.0.50727&GT;或C:\ WINDOWS \ Microsoft.NET \ Framework64 \ v2.0.50727&gt;对于64位
键入aspnet_regiis.exe - i
ASP.NET将自行注册并显示在Web服务扩展
中答案 1 :(得分:1)
澄清一点,网络仪表板功能是否错误?它根本不显示吗?
webdashboard使用Nvelocity,而不是ASP.NET WebForms,因此您必须在Web.config中注册自定义HTTPHandler才能使用它。
<add verb="*" path="*.aspx" type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"/>
发布你的web.config。
答案 2 :(得分:0)
因为你只是想知道它是否有效......确实如此。
我在没有问题的64位Windows Server 2008上运行它。
所以现在我们已经确定它有效,也许您可以更详细地描述您的问题?
答案 3 :(得分:0)
无法评论,我想将此添加到Adam的答案中: 我必须在CMD for Win 2008 x64中使用此命令
"C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe" -s "W3SVC/1/ROOT/ccnet"