This project has moved and is read-only. For the latest updates, please go here.

MEF and web services

Jul 4, 2011 at 9:13 PM

MEF can be use with Web Services?

because i try and i have this problem...


System.NullReferenceException: Object reference not set to an instance of an object.
Aug 1, 2011 at 10:25 PM

To understand what is going on here, we woul dneed you to elaborate - what did you do precisely? what was the call stack?

Just off the cuff, one thing you need to know is that the CompositionContainer is not thread safe by default, which may be important in the Web Service scenario. To turn the thread safety on, you would need to use an overload of the constructor that takes the "isThreadSafe" argument. Make sure to set that to "true"

Hope this helps