VPiattelli Posted March 9, 2006 Posted March 9, 2006 I'm using the code below to create an instance of a particular type, defined in the assemblyPath file. Dim objDLL As [Assembly] Dim objPlugin As Object objDLL = [Assembly].LoadFrom(assemblyPath) objPlugin = objDLL.CreateInstance(typeName) I am trying to change my application to be able to overwrite the .dll at assemblyPath without restarting. This code puts the .dll into use, so I can't overwrite the file after this stage of execution. Is there any way I can release assemblyPath so I can overwrite it without restarting my app? Thanks in advance. Quote
Administrators PlausiblyDamp Posted March 10, 2006 Administrators Posted March 10, 2006 Once an assembly is loaded into an AppDomain then it can't be unloaded without shutting down the Appdomain itself. http://www.xtremedotnettalk.com/showthread.php?t=93636 gives more detail and a possible solution. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
VPiattelli Posted March 10, 2006 Author Posted March 10, 2006 Thanks for the link. I'll read it over and see if it can help my situation. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.