Problem loading assembly via Reflection and accessing configuration
问题 I'm trying to load a .NET assembly with Reflection (using the Assembly.LoadFrom method), and instantiate some types within this assembly. This all seems to work fine, but one type I'm trying to instantiate accesses the assembly's configuration within its type initializer: it does ConfigurationManager.GetSection(sectionName) . The assembly is then throwing an exception because the configuration section cannot be found. The config file for the assembly I'm loading is in the same directory, and