Dynamically Loading Assemblies in ASP.NET

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

I want to load assemblies dynamically in ASP.NET application. Actually, I
have a dll for each database that my application is supporting. The dll to
be used is specified in the configuration file.

I have written a ClassLoader that loaded the classes dynamically from the
assemblies in the current directory. ClassLoader is working perfectly when I
am using it from my windows application that also loads the database driver
dlls. I want to use the same ClassLoader in ASP.NET application.

What I want to know is that where should I placed the dlls so that the I can
load them dynamically?
Also, is there any standard method to load the .NET assemblies in ASP.NET
applications?

Regards,
Danish


.



Relevant Pages

  • Another super fun problem
    ... I've been playing around with assemblies and I've run into quite the little ... if you load your .dll up into a bytearray, ... if this file you're loading into byte arrays, loads up another dll in the ...
    (microsoft.public.dotnet.general)
  • Re: Using COM DLLs from SQL
    ... Your subject line says it's a COM dll, which means that all the CLR stuff is ... You have to add the assembly to the database. ... of assemblies loaded into the database. ...
    (microsoft.public.sqlserver.programming)
  • Re: regsvr32 error code 0x80004002
    ... VC assembly failed to load. ... but there are no relevant events in the Event Viewer. ... If a DLL was built with Visual Studio 2005 SP1 and was compiled to use the ... Private assemblies must be used. ...
    (microsoft.public.vc.mfc)
  • Re: application domain
    ... be run in an application domain do I then have to load this dll into ... I mean if the exe file and the dll is located in the same folder will ... foreach (string assembly in Directory.GetFiles (@"C:\My Assemblies", ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: application domain
    ... be run in an application domain do I then have to load this dll into ... I mean if the exe file and the dll is located in the same folder will ... foreach (string assembly in Directory.GetFiles (@"C:\My Assemblies", ...
    (microsoft.public.dotnet.languages.csharp)