[Mono-list] Event raised from Plugin class loaded at runtime in a different AppDomain using assemblyloader

Armando B. hmandevteam at gmail.com
Tue Apr 13 05:14:01 EDT 2010


Hi all,

i trying to generate an event from a plugin object that is created by an
assembly loaded at runtime using an AssemblyLoader:

Main AppDomain
-PluginManager

New AppDomain
-AssemblyLoader (created using CreateInstanceAndUnwrap)
-Plugin (created by AssemblyLoader using Activator.CreateInstance)

i also override InitializeLifetimeService in AssemblyLoader and Plugin and
all work fine if i call methods of my IPlugin from PluginManager. If Plugin
raise an event in first minutes after load, also event raising is ok, but if
i wait some minutes to raise event from Plugin, i receive en exception:

Unhandled Exception: System.Runtime.Remoting.RemotingException: No receiver
for uri ...

i founded a workaround using a Ping event raised each 30 sec from Plugin to
AssemblyLoader and so to PluginManager.

Could you help me to find another solution ?



-- 
View this message in context: http://n4.nabble.com/Event-raised-from-Plugin-class-loaded-at-runtime-in-a-different-AppDomain-using-assemblyloader-tp1838159p1838159.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list