More Group Sites
Education Books
School Rankings
Jobless Net
Better Home
Enviro++
更好教育论坛


Help | Subscribe/Unsubscribe | Rules | Other Group Sites: Better Education | Better Education Forum
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post Go to first unread
hong  
#1 Posted : Tuesday, 16 August 2016 10:16:02 PM(UTC)
hong

Rank: Administration

Reputation:

Groups: AcademicCoachingSchool, admin, Administration, BookSeller, CatholicSchool, CoachingAdult, CoachingProfessional, CoachingSports, ExtraCurriculumCoaching, IndependentSchool, Moderator, MusicTeacher, PrivateSchool, PublicSchool, SelectiveSchool, tutor
Joined: 23/11/2008(UTC)
Posts: 519

Can't load an MEF part - More than one export was found that matches the constraint
MEF: Managed Extensibility Framework
"More than one export was found that matches the constraint" in Visual Studio output file means that a component, which was specified with a contract name, was exported more than once. MEF couldn't tell which one to use. The cause could be you have the same assembly in more than one of your directories. This can happen if you have a reference to an assembly and copy local is set to true. So Check references of the assemblies and ensure Copy Local is set to false.

If Copy Local property of a reference is read-only, check whether you installed a different version of the component using NuGet. You many need to uninstall a duplicated package.

Related:
The Copy Local property (corresponding to CopyLocal) determines whether a reference is copied to the local bin path. At run time, a reference must be located in either the Global Assembly Cache (GAC) or the output path of the project. If this property is set to true, the reference is copied to the output path of the project at run time.
Source: https://msdn.microsoft.com/en-us/library/t1zz5y8c(v=vs.100).aspx

Edited by user Tuesday, 16 August 2016 10:20:43 PM(UTC)  | Reason: Not specified

Sponsor
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.