Paul Hacker .Net, TFS, Etc…

April 6, 2007

WorkItem Custom Control issues

Filed under: Uncategorized — phacker @ 3:50 am

It seems that there are some issues with VS2005 sp1 and WorkItem custom control creation. I recently rebuild my machine and started to experience some odd behavior with the new workitems that I was creating. The controls had been working prior to the rebuild so I was puzzled when the new ones I was trying to upload kept failing. The workitems also had references to a new control that I had just created. I have other controls that have been working fine so I was puzzled when I received the following error during import:

Xml validation error at row 396, column 12: The ‘Type’ attribute is invalid – The value ‘WorkItemBtnMsgReference’ is invalid according to its datatype ‘
e’ – The Enumeration constraint failed.

The other oddity that really should have alerted me that something was amiss was this error that I got when I was building the new control:

Method ‘add_AfterUpdateDatasource’ in type ‘WitCustomLabel.WILabel’ from assembly WitCustomLabel, Version=1.0.2506.23549, Culture=neutral, PublicKeyToken=null’ does not have an implementation.

The method should have been IWorkItemControl.AfterUpdateDatasource, but instead i had to remove the IWorkItemControl to get it to build.

The bottom line is that The WorkitemTracking.Client dll did not get updated when I installed the VS2005 SP1. The resolution for myself was to reinstall the sp1. I then tried to upload the new workitem containing my new control and recieved an error that the AfterUpdateDatasource had not been implemented. I had to go back and put the IWorkItemControl back in and rebuilt. After this all was well and I have another new WorkItem control.

Apperently this is a big deal since I found quite a few forum postings on both of these topics. So I hope that this will find its way to those that may be experiencing these issues.




1 Comment »

  1. […] VSTS Links – 04/09/2007 Paul Hacker on WorkItem Custom Control issues. […]

    Pingback by Team System News : VSTS Links - 04/09/2007 — April 9, 2007 @ 1:31 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: