Locked Error using LabDefaultTemplate.xaml

  • 2011年9月15日 16:59
     
     

    I've just setup Lab Management on our TFS 2010 server and have created my first build definition using the LabDefaultTemplate.xaml template. However, when I attempt to run the build I get the following error:

    TF215097: An error occurred while initializing a build for build definition \MY TEAM PROJECT\MY BUILD: The build process failed validation. Details:  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "LabWorkflowParameters.TestParameters.RunTest = True". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "TestResults.PassedTests <> TestResults.TotalTests". 'TestResults' is not declared. It may be inaccessible due to its protection level. 'TestResults' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "(LabWorkflowParameters.BuildDetails.IsTeamSystemBuild = True AndAlso LabWorkflowParameters.BuildDetails.QueueNewBuild = True) Or (LabWorkflowParameters.DeploymentDetails.DeploymentNeeded = True)". 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level. 'LabWorkflowParameters' is not declared. It may be inaccessible due to its protection level.  Validation Error: The private implementation of activity '1: DynamicActivity' has the following validation error:   Compiler error(s) encountered processing expression "String.Format("{0}", BuildDetail.BuildNumber)". 'BuildDetail' is not declared. It may be inaccessible due to its protection level.  
    ...Similar errors continue for about six-times more text.

    According to http://blogs.msdn.com/b/lab_management/archive/2009/10/26/troubleshooting.aspx this error is the result of using a Beta 2 Lab Process Template and the solution is to create a team project after upgrading to RTM and use the LabDefaultTemplate.xaml file from that project. Problem is, we never installed Beta 2 and have only used RTM. I have two different installations of TFS 2010 RTM and both contain the same LabDefaultTemplate.xaml file on all of the team projects I've created, which is the one I'm using that creates the above error.

    Is this truly a problem with my LabDefaultTemplate.xaml file?
    If so, how do I get a copy of the correct LabDefaultTemplate.xaml file?
    If not, how do I resolve this issue? 

    Thank you,

    Paul Shippy

すべての返信

  • 2011年9月16日 13:05
     
     

    Hi Paul,

    Please send me your LabDefaultTemplate.xaml file and send me also your "diagnostic" log of the failing build. You can find my contact details at www.sparkles.be.

    Best regards,

    Pieter.

  • 2011年9月19日 19:46
     
     

    Pieter - Have you received my email?

    Anyone else have any ideas/help?

  • 2011年9月20日 20:08
     
     

    Hi Paul,

    yes, I did receive your mail - found it in the spam folder ;-)

    I will have a look at it and let you know what I can find ...

    PIeter.

  • 2011年9月20日 20:17
     
     回答済み

    Hi Paul,

    you seem to be missing some arguments in the build process template you have sent me. Are you sure this is the default lab build process template you are getting when creating a new Team Project?

    I did send you "my" copy of the lab build process template. Have a go with it and let me know if it works.

    Pieter.


  • 2011年9月23日 22:41
     
     

    It's amazing how well it works when you have the right template xaml file! Yes, there are quite a few differences between the copy I get when I create a new team project and the copy I got from Pieter. I guess the solution to this problem is to ask Pieter to send you his copy...

    Thanks Pieter.

  • 2011年10月28日 4:15
     
     

    i am recieving the same error after only ever running RTM of TFS2010. Straight out of the box!

  • 2012年2月7日 7:46
     
     

    Hi Pieter,

    I exactly get the same error what is described in the thread. What is the issue here ? I am using TFS2010 RTM. Can you send your copy LabDefaultTemplate.xaml

    Regards

    Rajendra

    r_patki@hotmail.com
    • 編集済み Rajan1 2012年2月7日 7:47
    •  
  • 2012年8月6日 18:19
     
     

    Hi Pieter-

    I'm having the same issues with my copy of the labdefaulttemplate.  Could you send me a copy of yours?

    Thanks in advance for your help!

    Gretchen