locked
Exports Break After Application Pool Recycles RRS feed

  • Question

  • I have a WCF service deployed to IIS 7 on Server 2008 R2 that uses MEF and when I use the WCF Test Client to test it, it works fine.  After recycling the application pool however, I get this error:

    No valid exports were found that match the constraint '((exportDefinition.ContractName == "My.Interface1") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentity") AndAlso "My.Interface1".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))', invalid exports may have been rejected.

    Any ideas why this would be happening and how to resolve it?

    Tuesday, May 10, 2011 5:19 PM

All replies

  • '((exportDefinition.ContractName == "My.Interface1") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentity") AndAlso "My.Interface1".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))',

    In the above change the interface and check running again

    Saturday, May 21, 2011 3:10 PM