Unable to cast transparent proxy to type <type>
Posted by: Rick Strahls WebLog,
on 13 Jan 2012 |
View original | Bookmarked: 0 time(s)
This is not the first time I've run into this wonderful error while creating new AppDomains in .NET and then trying to load types and access them across App Domains. In almost all cases the problem I've run into with this error the problem comes from the two AppDomains involved loading different copies of the same type. Unless the types match exactly and come exactly from the same assembly the typecast will fail. The most common scenario is that the types are loaded from different assemblies - as...