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_18.104.22.168_31bf3856ad364e35\WindowsBase.dll
Do you know how to fix the exception?
View Complete Post