1
Vote

No valid exports were found that match the constraint '((exportDefinition.ContractName == "Log") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentity") AndAlso "System.Void(Microsoft.WebAnalytics.AnalyticsEvent)".Equals(exportDefinition.Meta

description

I am getting following error when i try to use MSAF in Silverlight 4
 
Resulting in: Cannot set import 'Microsoft.WebAnalytics.Behaviors.TrackAction.Log (ContractName="Log")' on part 'Microsoft.WebAnalytics.Behaviors.TrackAction'.
Element: Microsoft.WebAnalytics.Behaviors.TrackAction.Log (ContractName="Log") --> Microsoft.WebAnalytics.Behaviors.TrackAction
 
     StackTrace :    at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)
at System.ComponentModel.Composition.Hosting.CompositionContainer.Compose(CompositionBatch batch)
at System.ComponentModel.Composition.CompositionInitializer.SatisfyImports(ComposablePart part)
at System.ComponentModel.Composition.CompositionInitializer.SatisfyImports(Object attributedPart)
at Microsoft.WebAnalytics.Behaviors.TrackAction.OnAttached()
at System.Windows.Interactivity.TriggerAction.Attach(DependencyObject dependencyObject)
at System.Windows.Interactivity.TriggerActionCollection.OnAttached()
at System.Windows.Interactivity.AttachableCollection1.Attach(DependencyObject dependencyObject)
at System.Windows.Interactivity.TriggerBase.Attach(DependencyObject dependencyObject)
at System.Windows.Interactivity.TriggerCollection.ItemAdded(TriggerBase item)
at System.Windows.Interactivity.AttachableCollection
1.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Windows.DependencyObjectCollection1.TryCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Windows.DependencyObjectCollection
1.System.Collections.IList.Add(Object value)
at MS.Internal.XamlManagedRuntimeRPInvokes.Add(XamlQualifiedObject& qoCollection, XamlPropertyToken inCollectionProperty, XamlQualifiedObject& inValue)

comments