>> I saw there is one line on configuration file as following,
>>
[quoted text clipped - 13 lines]
> System.Web.SqlProfileProvider prov
> = (System.Web.SqlProfileProvider)Activator.CreateInstance(ty);
You probably should use an interface or an abstract class here: if you're
reading the type name from a configuration file, chanches are you just don't
know the actual type of the object, so you can't give a type to "prov".
Massimo
Enosh Chang - 14 Oct 2006 00:26 GMT
"Massimo" <barone@mclink.it>
???????:%23LFqsZu7GHA.4084@TK2MSFTNGP05.phx.gbl...
>>> I saw there is one line on configuration file as following,
>>>
[quoted text clipped - 20 lines]
>
> Massimo
That's so great. But I encounter another problem that it displays "Could not
load file or assembly 'XXXXX' or one of its dependencies" for some types.
How to solve this problem, dynamic loading assemblies?