|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Dynamically Loading Assemblies in ASP.NETHi,
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 You must play with AppDomain to have a full control about loading directory
and to have the possibility to unload DLL. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp05162002.asp for more. Lionel. "Danish Ahmed" <dah***@itimpk.com> a écrit dans le message de news: %23f67uvcQFHA.3***@TK2MSFTNGP15.phx.gbl...Show quoteHide quote > 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 > >
Other interesting topics
What is Place of Managed C++ in .NET?
long time transaction VS Authentication (mixed mode) Error in OLEDB Transaction DataGrid Row Auto-Size Regarding Browse information(ALT-F12) feature same as VS 6.0 Invalid Property Value Error unable find assebly folder in regedit for global assembly cache Co-existance with VS 6? port 25 |
|||||||||||||||||||||||