hi Marc,thank you for your answer.
I have read the articles,but I think they can't solve my problem.
The solution for unloading Assembly follows following steps:
1.Create a new AppDomain;
2.In the new AppDomain,Load some assembly;
3.Create an Instance of some Class and send the instance outside the
appdomain for using through Remoting.
the problem is step 3.
I want to use these Instances(usually are UserControls) in my plugable
framework. I have to pass object between AppDomains.
The only way to pass object between AppDomain is remoting.
That's to say all my plug - in must inhert MarshalByRefObject.
I have tested. The UserControl can pass to the framework,
but it can be add into the Container. the exception is following:
"Remoting can't find the field parent from Type
System.Windows.Forms.Control".
?????????"System.Windows.Forms.Control"?????"parent"?
If you want to discuss this problem directly,you can add my msn
:
[email protected].
Best regards.
Navyliu