Click here to Skip to main content
16,005,048 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: VB application breaks with dll built with Framework 2.0 Pin
Luc Pattyn29-Aug-07 9:40
sitebuilderLuc Pattyn29-Aug-07 9:40 
GeneralRe: VB application breaks with dll built with Framework 2.0 Pin
saswatpadhan29-Aug-07 9:56
saswatpadhan29-Aug-07 9:56 
QuestionUsing the .Net image machanism without extra copy of the source image Pin
Dudi Avramov29-Aug-07 4:25
Dudi Avramov29-Aug-07 4:25 
AnswerRe: Using the .Net image machanism without extra copy of the source image Pin
Dave Kreskowiak29-Aug-07 4:56
mveDave Kreskowiak29-Aug-07 4:56 
QuestionHow make a dll in Visual C++ to use in C#? Pin
Rui A Sousa29-Aug-07 3:36
Rui A Sousa29-Aug-07 3:36 
AnswerRe: How make a dll in Visual C++ to use in C#? Pin
Paul Conrad4-Nov-07 7:35
professionalPaul Conrad4-Nov-07 7:35 
QuestionLoad a DLL Dynamically Pin
#realJSOP29-Aug-07 0:33
professional#realJSOP29-Aug-07 0:33 
AnswerRe: Load a DLL Dynamically Pin
originSH29-Aug-07 1:03
originSH29-Aug-07 1:03 
You'll need to use reflection ... you load up the assembly, then load up each type in the assembly. You'd normally use a custom attribute to label your plugin classes for easy "spotting" of them Wink | ;) although base classes and interfaces can be used too.

The only way to unload an assembly is to unload the entire AppDomain, so if you really need this functionality then you need to spawn new AppDomains and load the plugins into them. THis has advantages and disadvantages. For the pro's you have the fact you can unload the assemblies and you can set the security on the AppDomain to be very restrictive and so use it as a sandbox. The con is that anything crossing an AppDomain boundary has to be serialized and so incurs a performance penalty.

If this is a long running service and there are large number of plugin changes, or you will have "untrusted" plugins, then you'll probably want to go the AppDomain route. If the service will be restarted occasionally or there will only be occasional plugin changes and you fully trust them then loading in to the current AppDomain would be best.

I don't have any articles to hand that cover all these areas as I've been dabbling with this stuff for a few years now and know enough just to look up the exact info when I need it. If you search around though you should find a good body of info, and with the pointers I've provided you can hopefully avoid some of the pitfalls that often appear (with unloading).
AnswerRe: Load a DLL Dynamically Pin
Pete O'Hanlon29-Aug-07 9:10
mvePete O'Hanlon29-Aug-07 9:10 
QuestionIn Windows Server 2003, how to run C# application which uses a VC8.0 dll Pin
pmt28-Aug-07 21:22
pmt28-Aug-07 21:22 
Question.net webparts Pin
suvarna1127828-Aug-07 19:39
suvarna1127828-Aug-07 19:39 
AnswerRe: .net webparts Pin
SHatchard28-Aug-07 21:49
SHatchard28-Aug-07 21:49 
Question.net roadmap Pin
bigeyed28-Aug-07 19:22
bigeyed28-Aug-07 19:22 
AnswerRe: .net roadmap Pin
Christian Graus28-Aug-07 21:08
protectorChristian Graus28-Aug-07 21:08 
AnswerRe: .net roadmap Pin
Scott Dorman29-Aug-07 12:58
professionalScott Dorman29-Aug-07 12:58 
AnswerRe: .net roadmap Pin
brucedkyle9-Sep-07 11:13
brucedkyle9-Sep-07 11:13 
QuestionNative Zipping Functionality in .NET Pin
Vasudevan Deepak Kumar28-Aug-07 6:06
Vasudevan Deepak Kumar28-Aug-07 6:06 
AnswerRe: Native Zipping Functionality in .NET Pin
Mark Churchill28-Aug-07 20:01
Mark Churchill28-Aug-07 20:01 
GeneralRe: Native Zipping Functionality in .NET Pin
Vasudevan Deepak Kumar29-Aug-07 1:45
Vasudevan Deepak Kumar29-Aug-07 1:45 
QuestionHow best to interact with a WinForm app over the web? Pin
nzmike27-Aug-07 21:29
nzmike27-Aug-07 21:29 
AnswerRe: How best to interact with a WinForm app over the web? Pin
Vasudevan Deepak Kumar29-Aug-07 1:47
Vasudevan Deepak Kumar29-Aug-07 1:47 
AnswerRe: How best to interact with a WinForm app over the web? Pin
Pete O'Hanlon29-Aug-07 9:07
mvePete O'Hanlon29-Aug-07 9:07 
GeneralRe: How best to interact with a WinForm app over the web? Pin
nzmike29-Aug-07 22:44
nzmike29-Aug-07 22:44 
QuestionASP.NET (2.0) throws a debug Window Pin
Kasic Slobodan27-Aug-07 17:39
Kasic Slobodan27-Aug-07 17:39 
AnswerRe: ASP.NET (2.0) throws a debug Window Pin
Kasic Slobodan17-Sep-07 12:47
Kasic Slobodan17-Sep-07 12:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.