Loading them is ok but i cant use AppDomain.CreateDomain() and unload appdomain to unload loaded assemblies.If i use the method, this exception will appear:
NotSupportedException: Specified method is not supported.
System.Runtime.Remoting.RemotingServices.IsTransparentProxy (System.Object proxy) in :0
System.Runtime.Remoting.RemotingServices.Marshal (System.MarshalByRefObject Obj, System.String ObjURI, System.Type RequestedType) in :0
System.AppDomain.GetMarshalledDomainObjRef () in :0
System.AppDomain.InvokeInDomain (System.AppDomain domain, System.Reflection.MethodInfo method, System.Object obj, System.Object[] args) (at :0)
System.Runtime.Remoting.RemotingServices.GetDomainProxy (System.AppDomain domain) (at :0)
System.AppDomain.CreateDomain (System.String friendlyName, System.Security.Policy.Evidence securityInfo, System.AppDomainSetup info) (at :0)
System.AppDomain.CreateDomain (System.String friendlyName) (at :0)
Also i have tried to use System.Runtime.Loader package instead, but it seems not supported on .net framwork. Is there any way to solve this problem? Or is there any other ways to unload assemlies?
0 comments:
Post a Comment
Thanks