This is probably a longshot, and feel free to direct me elsewhere, but I only getting this error while in debugging so...
I've taken the WPF MVVM Demo App from the February MSDN Magazine and added a second combobox to the Customer.xaml. When I launch the app, create a new customer (creates a new tab to enter customer data on) and select something from one of the ComboBoxes, then click to create another new customer I get this error.
It's a Com error, and there is no Inner Exception. It lists it's source as mscorlib. There is no unmanaged in the project. The only references in the app are:
PresentationCore
PresentationFramework
System
System.Core
System.Data
System.Data.DataSetExtensions
System.XML
System.XML.Linq
UIAutomationProvider
WindowsBase
That and the fact that if I run the app outside of VS2008 I don't the error makes me think that the problem is some unmanaged code in the VS2008 debugger.
One more thing, if I replace those ComboBoxes with Infragistics ComboBoxes, I don't get the error.
Any hints would be appreciated.