Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is the difference between calling functions via thread and calling directly in c#? Pin
Gerry Schmitz4-Feb-20 3:10
mveGerry Schmitz4-Feb-20 3:10 
QuestionError: "No exports were found that match the constraint" Pin
Kevin Marois3-Feb-20 9:49
professionalKevin Marois3-Feb-20 9:49 
Today, out of nowhere, I started getting this error when I run my app
System.ComponentModel.Composition.ImportCardinalityMismatchException: No exports were found that match the constraint: 
    ContractName    Views.MainWindow
    RequiredTypeIdentity    Views.MainWindow
I have made NO code changes. One minute it was running fine, the next - bam! error.

ALl of the Google search hits I found talk about some kind of Visual Studio problem, but this only happens when I RUN my app, not open it. And, the message sure smells like EntityFramework, which we're using.

The message mentions "ImportCardinalityMismatchException". Never seen this before.

I following the instructions in this SO post, I repaired VS, rebooted, and all that.

Anyone have any thoughts on this?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen3-Feb-20 10:46
professionalEddy Vluggen3-Feb-20 10:46 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois3-Feb-20 10:49
professionalKevin Marois3-Feb-20 10:49 
QuestionRe: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen3-Feb-20 12:08
professionalEddy Vluggen3-Feb-20 12:08 
AnswerRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois3-Feb-20 12:12
professionalKevin Marois3-Feb-20 12:12 
AnswerRe: Error: "No exports were found that match the constraint" Pin
Gerry Schmitz3-Feb-20 16:34
mveGerry Schmitz3-Feb-20 16:34 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois3-Feb-20 16:38
professionalKevin Marois3-Feb-20 16:38 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Gerry Schmitz3-Feb-20 17:02
mveGerry Schmitz3-Feb-20 17:02 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois3-Feb-20 17:04
professionalKevin Marois3-Feb-20 17:04 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Gerry Schmitz3-Feb-20 17:17
mveGerry Schmitz3-Feb-20 17:17 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois3-Feb-20 17:35
professionalKevin Marois3-Feb-20 17:35 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Gerry Schmitz4-Feb-20 2:53
mveGerry Schmitz4-Feb-20 2:53 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:05
professionalKevin Marois5-Feb-20 6:05 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen4-Feb-20 3:48
professionalEddy Vluggen4-Feb-20 3:48 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:20
professionalKevin Marois5-Feb-20 6:20 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen5-Feb-20 6:36
professionalEddy Vluggen5-Feb-20 6:36 
General[RESOLVED] Re: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:54
professionalKevin Marois5-Feb-20 6:54 
GeneralRe: [RESOLVED] Re: Error: "No exports were found that match the constraint" Pin
Eddy Vluggen5-Feb-20 7:10
professionalEddy Vluggen5-Feb-20 7:10 
AnswerRe: Error: "No exports were found that match the constraint" Pin
Pete O'Hanlon3-Feb-20 21:24
mvePete O'Hanlon3-Feb-20 21:24 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Kevin Marois5-Feb-20 6:09
professionalKevin Marois5-Feb-20 6:09 
GeneralRe: Error: "No exports were found that match the constraint" Pin
Pete O'Hanlon5-Feb-20 8:43
mvePete O'Hanlon5-Feb-20 8:43 
AnswerRe: Error: "No exports were found that match the constraint" Pin
Richard Deeming5-Feb-20 6:44
mveRichard Deeming5-Feb-20 6:44 
QuestionHow do i get value from string textBox in C# Pin
SSI132-Feb-20 15:12
SSI132-Feb-20 15:12 
AnswerRe: How do i get value from string textBox in C# Pin
Atlaskor2-Feb-20 17:11
Atlaskor2-Feb-20 17:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.