How this test application looks like. And where do you call that
CreateDomain(...) in your multiproject solution?
__TransparentProxy indicated that your object is being marshalled from
another aparatment/thread. Does your main thread in the app is marked as
STAThread?

Signature
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
> Hi All,
>
[quoted text clipped - 15 lines]
>
> Rein
rein.petersen@gmail.com - 18 Oct 2005 13:11 GMT
Hi Vadym,
Thanks for responding. I should probably clear up this thread with the
fix to the problem.
I wanted to use a separate domain [CreateDomain(...)] so that I could
load and unload assemblies (something that you can't do in the current
domain). My mistake was trying to create my dynamic assembly in a
separate domain because anything inside that domain would need to be
marshalled (by ref or val) to the current domain.
So while System.Appdomain.CreateDomain(...) will always return a
__TransparentProxy, I used the System.Appdomain.Current (property) to
return the current Appdomain that I was able to use to create my
assembly destined for disk.
Elsewhere in the code, I call CreateDomain(...) to create a the
__TransparentProxy to the domain in which I load and unload the saved
assemblies (as needed).
Rein