+2007-10-15 Marek Habersack <mhabersack@novell.com>
+
+ * ModulesConfiguration.cs: load modules using
+ HttpApplication.LoadType to include the bin/ directory in search.
+
2007-08-30 Marek Habersack <mhabersack@novell.com>
* MachineKeyRegistryStorage.cs: added
Type item_type;
try {
- item_type = Type.GetType (type, true);
+ item_type = HttpApplication.LoadType (type, true);
} catch (Exception e){
throw new HttpException (
String.Format ("Failed to load module `{0}' from type `{1}'", name, type), e);
public HttpModuleCollection LoadModules (HttpApplication app)
{
HttpModuleCollection coll = new HttpModuleCollection ();
- foreach (ModuleItem item in Modules){
+ foreach (ModuleItem item in Modules) {
IHttpModule module = (IHttpModule) Activator.CreateInstance (item.Type, true);
module.Init (app);
coll.AddModule (item.Name, module);
+2007-10-15 Marek Habersack <mhabersack@novell.com>
+
+ * HttpModulesSection.cs: use HttpApplication.LoadType when loading
+ modules, to include both the bin/ directory and the top-level
+ assemblies in search. Fixes bug #333686.
+
2007-08-30 Marek Habersack <mhabersack@novell.com>
* MachineKeySection.cs: retrieve the keys from the registry before
internal HttpModuleCollection LoadModules (HttpApplication app)
{
HttpModuleCollection coll = new HttpModuleCollection ();
+ Type type;
+
foreach (HttpModuleAction item in Modules){
- Type type = Type.GetType (item.Type);
+ type = HttpApplication.LoadType (item.Type);
+
if (type == null) {
/* XXX should we throw here? */
continue;