2008-12-02 92 views
3

我遇到了CruiseControl.net的问题,其中Web仪表板在IIS中无法正常工作。我试图在64位和32位模式之间切换ASP.Net并重新安装巡航控制,但似乎没有任何工作。有没有人在64位平台上有CruiseControl.Net问题?CruiseControl.Net在Windows Server 2003 x64

干杯, 杰米

[编辑]

想我应该澄清,我得到一个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> 

回答

4

看来我需要启用ASP.Net的Web服务扩展。我仍然没有在巡航控制网站属性中获得ASP.Net标签,但它正在工作。


C:\ Windows \ Microsoft.NET \框架\ V2.0.50727>或C:\ Windows \ Microsoft.NET \ Framework64 \ V2.0.50727> 64位

类型ASPNET_REGIIS.EXE - 我

ASP.NET将注册本身和Web服务扩展显示

+0

谢谢,这非常有帮助! – CrimsonX 2010-02-12 23:04:38

1

澄清了一下,莫非是Web的仪表板功能不正确?它没有显示出来吗?

webdashboard使用Nvelocity而不是ASP.NET WebForms,因此您必须在Web.config中注册一个自定义HTTPHandler以使其工作。

<add verb="*" path="*.aspx" type="ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET.HttpHandler,ThoughtWorks.CruiseControl.WebDashboard"/> 

张贴您的web.config。

0

既然你只是想知道它是否有效......它的确如此。

我在64位Windows Server 2008上运行它时没有问题。

所以,现在我们已经建立了它的工作原理,也许你可以更详细地描述你的问题?

0

无法发表评论,我想它添加到aswer亚当: 我曾在CMD使用此命令的Win2008 64

"C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe" -s "W3SVC/1/ROOT/ccnet" 
相关问题