Process Templete Editor fails to open WI that contains a custom control
We have a WI with a custom control and the process templete editer fails with this error -
There was a problem loading the work item type definition:
File c:\Program Files\Microsoft Visual Studio 8\Common7\PrivateAssemblies\bug.xml
There is an error in the xml document (1,21122).
See the event log for furthur detail.
I should still be able to open in the IDE but it must be mapping to the Process Editor and end up with same error above. Is there a way to get around this without un-installing power toys?
PS. It seems to open WI without a custom field defined ok.
[693 byte] By [
ultra03] at [2008-2-17]
Sounds like the XSD doesn't include what's required for the custom control. If that's the case, updating the XSD would help.
What's the problem in highlighted in the event log?
(Sorry for the slow reply.)
Following is what the event log displays -
Event Type: Error
Event Source: Microsoft? Visual Studio? 2005
Event Category: None
Event ID: 0
Date: 03/13/2007
Time: 10:07:15 AM
User: N/A
Computer: LAS625XPL120
Description:
System.Xml.XmlException: File: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\bug.xml
There is an error in XML document (1, 21122).
at Microsoft.TeamFoundation.ProcessTools.TemplateEditor.Common.Utilities.LoadObject(String fileName, Object target)
at Microsoft.TeamFoundation.ProcessTools.TemplateEditor.BusinessObjects.WorkItemTypeDefinition.WorkItemTypeDefinition.Load(FileInfo workItemTypeDefinitionFile)
at Microsoft.TeamFoundation.ProcessTools.TemplateEditor.TemplateEditorControls.ucWorkItemTypeDefinition.OpenFromFile(String fileName)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Yes, we are currently using this WI in a team project. The witimport, export seems to work fine along with the uploading or downloading the entire process template. I can post the actual WI here if it will help.
I finally found the problem. Unfortunately there is no easy work-a-round.
The Process Template Editor currently does not support controls other than the following:
FieldControl,
DateTimeControl, HtmlFieldControl, LinksControl, AttachmentsControl, WorkItemClassificationControl, & WorkItemLogControlI agree that supporting custom controls is a great feature to include in the next release. If this is important to you, please send your input to https://connect.microsoft.com. You can also reply to this post.
Thanks for your patience.
-Francis Cheung [msft]
Thank you for your response. We agree that this would be a great feature for next release and now that we know that it will not currently support our custom control we can continue to work manually.
I do have one question though and that Is there a way in VS2005 with the new template editor installed to tell it to open the xml WI for edit rather than using the template editor. Currently we can only open by using a different tool as VS2005 with the template editor powertoy installed will alwasy try and use it.
Thanks