使用TFS2010管理敏捷項目生命週期-系列指南4 Scrum v3 For TeamSystem-安裝疑難解答

Scrum for Team System是一個自由開源的模板,基於Scrum方法,從TFS2005,TFS2008到TFS2010,已經經歷了3個大版本,算是應用比較成熟的模板。而且配合 TfsWorkbench工具(做爲電子版的看板/故事強,在實施Scrum的研發項目中,完全可以取代用紙質卡片的故事牆),比微軟的內置敏捷模板更加適合Scrum團隊。

安裝Scrum V3 模板是一件困難的任務,由於這個模板並非微軟官方正式研發,而且相比微軟的agile,scrum v1.0等模板更加複雜和強大,所以在各種配置下測試上不夠充分,所以在配置上很容易出錯而難以繼續使用。

安裝過程:必須使用administrator身份來在TFS服務器上安裝。

1、  下載模板,注意根據安裝了TFS的服務器類型,選擇x64還是x86版本:

    http://scrumforteamsystem.codeplex.com/releases/view/73686

2、  啓動安裝程序,根據默認配置安裝;

3、  啓動部署配置程序Depolyment Ultility,進行配置;

點擊List按鈕,列出本服務器上所有的項目集。選擇需要部署的項目集,點擊Deploy按鈕,完成部署。

4、  啓動VS客戶端,創建團隊項目,選擇Scrum模板,按照提示配置和操作項目。大部分出錯往往就在這步。

筆者安裝中發現過的幾個錯誤:

1、TF30267: 異常: System.Web.Services.Protocols.SoapException: 服務器無法處理請求。 ---> Failed to instantiate file "default.master" from module "DefaultMasterPage": Source path "default.master" not found. ---> Failed to instantiate file "default.master" from module "DefaultMasterPage": Source path "default.master" not found.

   在 Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.HandleSiteCreation(WssCreationContextWrapper contextWrapper, XmlNode taskNode)

   在 Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Execute(ProjectCreationContext context, XmlNode taskXml)

解決方法:

這個是Scrum V3.0模板本身的故障,沒有更新舊SharePoint文件的模板。 通過下述方法解決:

打開文件夾:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN

運行下面的命令:

STSADM.EXE -o retractsolution -name ScrumForTeamSystem.SharePoint.Dashboards.wsp -immediate

STSADM.EXE -o execadmsvcjobs

STSADM.EXE -o deletesolution -name ScrumForTeamSystem.SharePoint.Dashboards.wsp

STSADM.EXE -o execadmsvcjobs

STSADM.EXE -o addsolution -filename "C:\Program Files (x86)\Scrum for Team System\PortalTemplate\ScrumForTeamSystem.SharePoint.Dashboards.wsp"

STSADM.EXE -o execadmsvcjobs

STSADM.EXE -o deploysolution -name ScrumForTeamSystem.SharePoint.Dashboards.wsp -immediate -allowgacdeployment -force

STSADM.EXE -o execadmsvcjobs

之後,這個問題可以被解決。

 

2、異常消息: System.Web.Services.Protocols.SoapException: 加載代碼模塊時出錯:“ScrumForTeamSystem.Metrics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=055ce0479c359dc7”。詳細信息: 未能加載文件或程序集“ScrumForTeamSystem.Metrics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=055ce0479c359dc7”或它的某一個依賴項。系統找不到指定的文件。

   在 Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings)

   在 Microsoft.ReportingServices.WebServer.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings) (類型 SoapException)SoapException 詳細信息: <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsProcessingError</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">加載代碼模塊時出錯:“ScrumForTeamSystem.Metrics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=055ce0479c359dc7”。詳細信息: 未能加載文件或程序集“ScrumForTeamSystem.Metrics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=055ce0479c359dc7”或它的某一個依賴項。系統找不到指定的文件。</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsProcessingError&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=10.50.1600.1</HelpLink><ProductName xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">10.50.1600.1</ProductVersion><ProductLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">2052</CountryLocaleId><MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices"><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorLoadingCodeModule" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.ReportProcessing.RPRes&amp;EvtID=rsErrorLoadingCodeModule&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=10.50.1600.1" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">加載代碼模塊時出錯:“ScrumForTeamSystem.Metrics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=055ce0479c359dc7”。詳細信息: 未能加載文件或程序集“ScrumForTeamSystem.Metrics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=055ce0479c359dc7”或它的某一個依賴項。系統找不到指定的文件。</Message><Message msrs:ErrorCode="rsCompilerErrorInClassInstanceDeclaration" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.ReportProcessing.RPRes&amp;EvtID=rsCompilerErrorInClassInstanceDeclaration&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=10.50.1600.1" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">類 ScrumForTeamSystem.Metrics.Forecasting 的類實例聲明中存在錯誤: [BC30002] 未定義類型“ScrumForTeamSystem.Metrics.Forecasting”。</Message></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices"><Warning><Code>rsDataSourceReferenceNotPublished</Code><Severity>Warning</Severity><ObjectName>Tfs2010ReportDS</ObjectName><ObjectType>DataSource</ObjectType><Message>數據集“Tfs2010ReportDS”引用的共享數據源“Tfs2010ReportDS”未在報表服務器上發佈。必須首先發布共享數據源“Tfs2010ReportDS”,此 報表 才能運行。</Message></Warning></Warnings></detail>

解決方法:由於安裝程序出錯,無法正常註冊某些程序集(ScrumForTeamSystem.Metrics)。如下處理:

1、  確保你的報表服務器可以被安裝Scrum v3的身份訪問:比如:

http://your-tfsserver/ReportServer/

2、  找到你安裝Scrum v3時候生成的中間臨時文件夾,一般是在%Temp%目錄下,比如:

C:\Users\Administrator\AppData\Local\Temp\SfTS.v3.output

3、  打開另外一個文件夾:C:\Windows\assembly,裏面都是程序集。

4、  把第2步文件夾中的ScrumForTeamSystem.Metrics.dll文件拖到第3步的文件夾中,即可完成註冊。

5、  重新償試創建團隊項目,即可成功。

 

 

3、 TF249033錯誤:

Exception Message: TF249033: The site template is not available for the locale identifier (LCID). The site template name is: SCRUM. The LCID is: 1033. (type TeamFoundationServerException)

Exception Stack Trace:    at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.HandleSiteCreation(WssCreationContextWrapper contextWrapper, XmlNode taskNode)

   at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Execute(ProjectCreationContext context, XmlNode taskXml)

Inner Exception Details:

Exception Message: TF249033: The site template is not available for the locale identifier (LCID). The site template name is: SCRUM. The LCID is: 1033. (type SoapException)SoapException Details: <detail exceptionType="TeamFoundationServerException" />

解決方法:SharePoint默認語言與模板語言(美國英語)不一致導致。可以去微軟網站下載相應的sharepoint 英語語言包來安裝,安裝完成後再來創建團隊項目。注意:根據你的服務器上是SharePoint SharePoint3.0 或SharePoint 2010的語言包來選擇下載。

安裝成功後,可以看到完整的功能:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章