My application contains some UI elements from other AppDomain and wrapped by ystem.AddIn.Pipeline.FrameworkElementAdapters. It works well most time, but sometimes I may get an InvalidCastException:
[A]System.Windows.Threading.DispatcherOperation can't be cast to [B]System.Windows.Threading.DispatcherOperation. It seems the two types have same name and from the same assembly : C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_22.214.171.124_31bf3856ad364e35\WindowsBase.dll
Do you know how to fix the exception?
View Complete Post