View Full Version : DirectProxyGenerator loading all sorts of assemblies

25 Oct 2009, 8:37 AM
Good afternoon,

I just integrated the ExtDirect example apps into my application to see if I could get it running and the first page examples comes up fine but when I click on any of the examples the DirectProxyGenerator is calling the following method

private Dictionary<string, Dictionary<string, string>> genApiList()
Dictionary<string, Dictionary<string, string>> actions = new Dictionary<string, Dictionary<string, string>>();
AppDomain MyDomain = AppDomain.CurrentDomain;
Assembly[] AssembliesLoaded = MyDomain.GetAssemblies();
foreach (var allAssembly in AssembliesLoaded)
foreach (var theType in allAssembly.GetTypes())

this method is trying to get the types for all sorts of assemblies some of which I am not even aware of and are not in my solution. I am assuming that this is because some of the assemblies that I am using referring to the offending assemblies but aren't actively used.

First, is a correct assumption of what is going on and how do I control this behaviour. I do not want to have to track down every referenced assembly just to get the ExtDirect api to work, nor should I have to.

Secondly, I am using Spring.Net framework, is it possible to swap out the direct proxy generator with the one shipped with Spring.

Thanks in advance.