Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Runtime DLL selection
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00968316
Message ID:
00969178
Vues:
11
>Bob,
>
>Can you copy local for the DLLS? This will make life a lot easier as you don't need anything in web.config. If the DLLs live in the BIN directory you can simply load by name.

Ok, so you are saying just give the projects different names and drop them both into the bin folder.

>I use factory methods for this sort of thing and then isolate each of the DLL calls into a separate assembly. This is for example, how my app loads data access providers dynamically and only as needed.

Ok, but how do I reference both assemblies if they have the same class names? Or, should I have different classnames that implement the same interface sort of like the .net data providers.

Or, perhaps you are saying that I don't put a reference to the assemblies in the project? I've never used assembly.load().

What would the factory method look like. Wouldn't I still need some config item to know which class to load?

Thanks,
BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform