Error : No exports were found that match the constraint:
Asked Answered
K

1

7

I'm building an WAF project. When i debug my project. I'm encounted this problem

"The composition produced a single composition error. The root cause is provided below.
 Review the CompositionException.Errors property for more detailed information.\r\n\r\n1) 
 No exports were found that match the constraint: \n\tContractName\tWaf.InformationManager.OneNote.Modules.Applications.Views.INoteView\n\t
 RequiredTypeIdentity\tWaf.InformationManager.OneNote.Modules.Applications.Views.INoteView\r\n"

How do i slove this ?

I sloved my problem ( Thanks to sgrassie ) I didn't create an NoteView.xaml ( which implements INoteView and add [Export(typeof(INoteView)] at class header )

Knuckle answered 30/3, 2014 at 19:24 Comment(1)
If I've answered your question, you should mark my answer as accepted.Astromancy
A
6

You are missing an [Export(typeof(INoteView)] attribute on the class which implements INoteView.

Astromancy answered 30/3, 2014 at 19:27 Comment(2)
Yeah. Thanks bro. It work. I didn't create an NoteView.xaml ( which implements INoteView and of course [Export(typeof(INoteView)] at class header ). I will update my question belove the questionKnuckle
For the last 3 days I was struggling with this problem. You are my savior. Thanks a lot :)Lenardlenci

© 2022 - 2024 — McMap. All rights reserved.