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

.NET (Core and Framework)

 
AnswerRe: Two questions on COM Add-in for Outlook 2003 Pin
OctopusThu6-Nov-06 15:41
OctopusThu6-Nov-06 15:41 
GeneralRe: Two questions on COM Add-in for Outlook 2003 Pin
OctopusThu6-Nov-06 19:52
OctopusThu6-Nov-06 19:52 
AnswerRe: Two questions on COM Add-in for Outlook 2003 Pin
HakunaMatada7-Nov-06 0:28
HakunaMatada7-Nov-06 0:28 
GeneralRe: Two questions on COM Add-in for Outlook 2003 Pin
OctopusThu7-Nov-06 1:47
OctopusThu7-Nov-06 1:47 
GeneralRe: Two questions on COM Add-in for Outlook 2003 Pin
HakunaMatada8-Nov-06 17:19
HakunaMatada8-Nov-06 17:19 
AnswerRe: Two questions on COM Add-in for Outlook 2003 Pin
OctopusThu8-Nov-06 17:42
OctopusThu8-Nov-06 17:42 
QuestionUpgrade .NET 2.0 Telnet Issue Pin
CountyBumpkin6-Nov-06 5:56
CountyBumpkin6-Nov-06 5:56 
QuestionAppdomains and Unloading an assembly Pin
fizk6-Nov-06 5:54
fizk6-Nov-06 5:54 
I'm writing an application that can load any .NET assembly and work with it through reflection. I want to load all assemblies in a new appdomain, not default appadomain. My code looks like this:

AppDomainSetup^ ads = gcnew AppDomainSetup();
ads->ApplicationBase = appdir;
AppDomain^ newAd = AppDomain::CreateDomain("MyAppDomain",AppDomain::CurrentDomain->Evidence, ads);
Assembly^ a = newAd->Load(gcnew System::String(assemblyName));

assemblyName is the incoming assembly name from the user. The problem here is, the assembly gets loaded to MyAppDomain and DeafaultAppdomain. This is because I've a reference to the assembly created in new appdoamin in my current app domain. I need a reference because I need to work with it later on when user wants to invoke methods or call properties.

This is sort of writing an application for plug-in components.

I want to be able to Unload MyAppdomain so that the assembly gets unloaded. It doesn't work because the assembly is loaded to default appdomain also.

How do I prohibit the assembly getting loaded to defaultappadomain?

Thanks a lot
Fizk
QuestionProblem with Form property of XmlElementAttribute Pin
AnonymousTwo5-Nov-06 22:55
AnonymousTwo5-Nov-06 22:55 
Question.Net Compact Framework Runtime installation on PocketPC Pin
MohammadAmiry4-Nov-06 20:37
MohammadAmiry4-Nov-06 20:37 
Question[Message Deleted] Pin
Manaxter4-Nov-06 16:57
Manaxter4-Nov-06 16:57 
AnswerRe: Label within a label? C# and .NET 2,0 Pin
[Marc]5-Nov-06 9:14
[Marc]5-Nov-06 9:14 
AnswerRe: Label within a label? C# and .NET 2,0 Pin
Marco [Stinger]7-Nov-06 6:24
Marco [Stinger]7-Nov-06 6:24 
QuestionVisual Studio 2005 Just-in-Time Debugger Exception ??? Pin
zinc_z4-Nov-06 8:28
zinc_z4-Nov-06 8:28 
AnswerRe: Visual Studio 2005 Just-in-Time Debugger Exception ??? Pin
RaviBattula7-Nov-06 0:23
professionalRaviBattula7-Nov-06 0:23 
QuestionVery Urgent: How Can I make a compelete Instalation file Pin
alhassan013-Nov-06 18:54
alhassan013-Nov-06 18:54 
AnswerRe: Very Urgent: How Can I make a compelete Instalation file Pin
Paul Conrad28-Nov-06 14:57
professionalPaul Conrad28-Nov-06 14:57 
Question2.0 Framework Zip Class Pin
Jason Weibel3-Nov-06 11:44
Jason Weibel3-Nov-06 11:44 
AnswerRe: 2.0 Framework Zip Class Pin
George L. Jackson3-Nov-06 13:57
George L. Jackson3-Nov-06 13:57 
QuestionInvalidCastException: System.__ComObject Pin
fin13-Nov-06 5:17
fin13-Nov-06 5:17 
QuestionHow to print header in each page Pin
Renukapadhamanaban2-Nov-06 15:10
Renukapadhamanaban2-Nov-06 15:10 
GeneralRe: How to print header in each page Pin
George L. Jackson3-Nov-06 13:41
George L. Jackson3-Nov-06 13:41 
QuestionCrazy debugger Question... Pin
Lior S2-Nov-06 7:15
Lior S2-Nov-06 7:15 
AnswerRe: Crazy debugger Question... Pin
Christian Graus2-Nov-06 13:17
protectorChristian Graus2-Nov-06 13:17 
QuestionWhat's the best way to do string based lookup in .NET? Pin
nicknotyet2-Nov-06 3:40
nicknotyet2-Nov-06 3:40 

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.