Calling a .NET class that maps to COM requires data marshaling. AppDomains detaches data access. When you call a COM component (regardless of whether it is a .NET application), you should make it in the form of sand. In .NET, the sandbox uses a different AppDomain.
source
share