tags:

views:

43

answers:

1

I have an HTTP module in a dll, being used in a web application. I need to call a class in the web application (using a Interface defined within the dll - so we are not tightly coupled).
I define the class in the appsettings of a web.config, but cannot figure how to create an instance.
I use Type.GetType but it just returns a null.

My app.config is add key ="ActiveClass" value ="WebApplication.Class1,WebApplication4"
and my Type.GetType is
Type activeClassType = Type.GetType(ConfigurationSettings.AppSettings["ActiveClass"] as string);

Any help would be gratefully received.

Thanks

Podge

A: 

I have manage to do it by using appdomain.

Podge