WeakRefDictionary ContainsKey(TKey key) - Error

Topics: CAB & Smart Client Software Factory
Nov 11, 2005 at 12:25 AM
originally posted by: marchandk

Hi,
I try to use CAB with C# 2005 express and when
I try to run the Walkthrough QuickStart part 1 I got this error?

System.MissingFieldException was unhandled
Message="Field not found: 'System.Collections.Generic.KeyValuePair`2.Key'."
Source="Microsoft.Practices.CompositeUI.Utility"


Like in this section of code, i got an error on the IN key inside the ForEach?

CompositeUI.Services.WorkItemExtensionService

private void InitializeExtensions(WorkItem workItem, IEnumerable<Type> extensions)
{
Type wie = typeof(IWorkItemExtension);
foreach (Type extensionType in extensions)
{
// We could get invalid values from direct access to the RegisteredExtensions property.
//ThrowIfInvalidExtensionType(wie, extensionType);
IWorkItemExtension extension = (IWorkItemExtension)workItem.Items.AddNew(extensionType);
extension.Initialize(workItem);
}
}

Does someone has a clue.

thanks