Prev: What's the Best Approach to Show a Simple Line Graph and Summary Data?
Next: How do I act upon two events at once in asp.net?
From: dotNetDave on 12 Apr 2010 17:29 I have some classes in an assembly that inherit from a base abstract class. To load some of the properties that come from the abstract class into a configuration database, I dynamically load them from the assembly (on disk) using Activator.CreateInstance. This way we don't have to hard code this info somewhere to present to the user on an aspx page. Works great when I had one class in the assembly. Now that this is being used more and more classes are being added and more referenced assemblies are being added I'm running into a major issue. Activator.CreateInstance won't work anymore because when it's called it won't load because the referenced assemblies are not there?? I thought you could load .NET assemblies without the referenced assemblies there unless you hit the code? I teach this all the time in my .NET classes. The configuration web site does not use this assembly except to only load the configuration property values. It does not need all the referenced assemblies. Any ideas on how I can accomplish this? Thanks, David |