Issues with MEF and WCF
-
Monday, October 11, 2010 3:14 PM
Hi:
I have a simple MEF framework. The total number of projects of the framwork are...
1. The actual widget (MEF.Extension)
2. The silvelright host (MEF.Host)
3. The web/server project simple loading MEF.Host)
Now, MEF.Extensions is doing a [Export] of its one UserControl. ON the MEF.Host site I am importing that control. Here is some code...
MEF.Extensions
[Export(typeof(UserControl))] public partial class BubbleUserControl : UserControl {MEF.Host
namespace EmployeeBubbles.Host.ViewModels { public class MainViewModelBase : ViewModelBase { [Import("BubbleUserControl")] public BubbleUserControl BubbleUserControl { get; set; } public MainViewModelBase() { this.BubbleUserControl = new BubbleUserControl("E2177"); OnPropertyChanged("BubbleUserControl"); } } }
So far so good. Now compilation errors, but when I run the application I get an error. MEF.Extensions is referencing a WCF service to pull data from database. In run-time I get an error sayng that "ServiceReference.ClientConfig is not part of .xap application package." What am I doing wrong?Thanks
--tolga

