2008-12-02 88 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" 
相關問題