Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Lab Management 2010: Workflow capability fails with error 'Microsoft.TeamFoundation.VersionControl.Client.ResourceAccessException' was not found.


Symptoms

The work flow capability for lab managed environments can fail with the following error in the Windows Event Viewer on machines(participating in the Lab Managed Environment) where build agents are running:

Exception Message: The constructor to deserialize an object of type 'Microsoft.TeamFoundation.VersionControl.Client.ResourceAccessException' was not found. (type SerializationException)


↑ Back to the top


Cause

This issue can happen if the following two conditions are true:

#1 The "Version Control path to custom assemblies" is defined with a valid source control path hosting custom assemblies. Custom assemblies are used by build definitions for custom tasks. The "Version Control path to custom assemblies" is one of the property options available on the properties page for a build controller. You can use the Team Foundation Server 2010 administration console->Build Configuration and then click on Properties option for the build controller to see the current value of the "Version Control path to custom assemblies" property.

#2 Source Control permissions are by default explicitly denied for the Lab Service Account. This is the reason why the build agent will not be able to access the custom assemblies and the workflow capability fails with the given error.


↑ Back to the top


Resolution

You can grant permissions to lab service account using the ‘tf permissions’ command.

For example: To grant read permissions to lab service account ‘mydomain\labAccount’ on path ‘$/MyProject/CustomAssemblies’, you should execute the following command from a machine that has Team Explorer 2010 installed on it:

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE>tf permission /user:mydomain\labAccount /collection:http://<tfsserver>:8080/tfs/<CollectionName> /allow:read $/MyProject/CustomAssemblies

Alternatively you may grant read permissions to the lab service account using the Source Control Explorer Security interface.

↑ Back to the top


More Information

Details about the permissions required by the Lab Service account are available at http://msdn.microsoft.com/en-us/library/dd692846(VS.100).aspx.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2675100
Revision : 1
Created on : 1/7/2017
Published on : 2/16/2012
Exists online : False
Views : 181