Assembly ass = Assembly.LoadFile(assemblyPath); dynamic crm = ass.CreateInstance("CrmDll.CrmTiersFactory"); dynamic client = crm.getCrmClient(companyId); TcpChannel tcp = new TcpChannel(); ChannelServices.RegisterChannel(tcp, false); string url = "ServerUrl"; TypeConverter tc = TypeDescriptor.GetConverter(ass.GetType("CrmDll.IRemoteOperation")); dynamic remoteOperation = tc.ConvertFrom( Activator.GetObject ( ass.GetType("CrmDll.IRemoteOperation") , url ));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)