Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yield return breaks assembly loading #28

Closed
Manuel-S opened this issue Sep 10, 2013 · 8 comments
Closed

yield return breaks assembly loading #28

Manuel-S opened this issue Sep 10, 2013 · 8 comments

Comments

@Manuel-S
Copy link

See on SO: http://stackoverflow.com/questions/18728283/referenced-assembly-not-found-exception-when-using-yield-return

@distantcam
Copy link
Member

I am unable to reproduce this error.

@Manuel-S Could you attach a reproduction for this?

@SimonCropp
Copy link
Member

is TypeFromWovenAssembly an interface?

@Manuel-S
Copy link
Author

No, it is simply a class from an external dll.

@SimonCropp
Copy link
Member

then as @distantcam mentioned can you upload a repro somewhere?

@Manuel-S
Copy link
Author

I unfortunately am unable to reproduce this in a minimal example.
The exception occurs when MEF is going through the assembly to load exports in this line:
var export = Container.GetExportedValues(contract).FirstOrDefault();
The loading of the assembly itself does not throw the error. Maybe this is a problem of MEF not liking yield returns? (although the type does not get exported at all)
Also, this exception did not occur if I simply yield returned every item from a list at the end, only when those yield returns are scattered through the method.

@distantcam
Copy link
Member

@Manuel-S Could you send me the binary that was failing? Email to distantcam at gmail

@SimonCropp
Copy link
Member

any update on this? if no repo can be provided i am tempted to close

@distantcam
Copy link
Member

No update. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants