Click here to Skip to main content
15,890,438 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: How to reload .Net control (Applet) Pin
Marc Clifton16-May-05 11:31
mvaMarc Clifton16-May-05 11:31 
GeneralRe: How to reload .Net control (Applet) Pin
Anonymous16-May-05 11:59
Anonymous16-May-05 11:59 
GeneralContinuous Async read Pin
goldoche16-May-05 7:36
goldoche16-May-05 7:36 
GeneralRe: Continuous Async read Pin
Marc Clifton16-May-05 11:34
mvaMarc Clifton16-May-05 11:34 
QuestionIDesignerHost resources? Pin
Dr Herbie16-May-05 1:28
Dr Herbie16-May-05 1:28 
AnswerRe: IDesignerHost resources? Pin
Dr Herbie16-May-05 22:00
Dr Herbie16-May-05 22:00 
GeneralRe: IDesignerHost resources? Pin
Marc Clifton17-May-05 0:24
mvaMarc Clifton17-May-05 0:24 
GeneralAppDomain.AppendPrivatePath Pin
David Wulff15-May-05 10:00
David Wulff15-May-05 10:00 
Does System.AppDomain.AppendPrivatePath work with non-relative paths? I don't think it does, but want to make sure I'm not missing something.

I ask because I am writing an MMC snapin in C#.

System.AppDomain.CurrentDomain.BaseDirectory is C:\Windows\system32, the location of mmc.exe, the host program.

My snapin assembly and supporting assemblies are located on a different local hard drive therefore I can't construct a relative path to them.

The assembly that implements the snapin dynamically loads other assemblies that in turn contain references to other assemblies, all in the same directory. The problem is that whilst I can load an assembly using a full path when I call Assembly.GetTypes on it the .NET Framework uses the AppDomain path to find the referenced assemblies, not the assembly directory.

Ideally I would like to do System.AppDomain.CurrentDomain.AppendPrivatePath("P:\Directory\bin"), but that doesn't appear to work.

Installing them in the GAC is not an option I can take.

To get around this I am currently handling the AssemblyResolve event fired by the AppDomain and then loading and returning each assembly manually. AppDomains are a new thing for me though (as of yesterday) so am I doing this the right way? Thanks guys.




Die Freiheit spielt auf allen Geigen
GeneralRe: AppDomain.AppendPrivatePath Pin
Marc Clifton15-May-05 14:20
mvaMarc Clifton15-May-05 14:20 
GeneralRe: AppDomain.AppendPrivatePath Pin
David Wulff15-May-05 14:25
David Wulff15-May-05 14:25 
GeneralArray Problem Pin
Saksida Bojan15-May-05 7:04
Saksida Bojan15-May-05 7:04 
GeneralRe: Array Problem Pin
S. Senthil Kumar15-May-05 7:22
S. Senthil Kumar15-May-05 7:22 
GeneralRe: Array Problem Pin
Saksida Bojan16-May-05 22:14
Saksida Bojan16-May-05 22:14 
GeneralRe: Array Problem Pin
Saksida Bojan18-May-05 0:38
Saksida Bojan18-May-05 0:38 
GeneralA few questions Pin
Saksida Bojan15-May-05 1:32
Saksida Bojan15-May-05 1:32 
GeneralRe: A few questions Pin
MoustafaS15-May-05 2:13
MoustafaS15-May-05 2:13 
GeneralRe: A few questions Pin
Saksida Bojan15-May-05 6:59
Saksida Bojan15-May-05 6:59 
GeneralRe: A few questions Pin
DavidNohejl15-May-05 7:37
DavidNohejl15-May-05 7:37 
GeneralNaked Assembly Routines Pin
ursus zeta14-May-05 7:55
ursus zeta14-May-05 7:55 
GeneralRe: Naked Assembly Routines Pin
Marc Clifton15-May-05 8:48
mvaMarc Clifton15-May-05 8:48 
GeneralThanks! Pin
ursus zeta15-May-05 9:06
ursus zeta15-May-05 9:06 
QuestionGood .NET 2.0 book? Pin
Carl Mercier14-May-05 6:53
Carl Mercier14-May-05 6:53 
AnswerRe: Good .NET 2.0 book? Pin
MoustafaS14-May-05 7:13
MoustafaS14-May-05 7:13 
GeneralRe: Good .NET 2.0 book? Pin
Carl Mercier14-May-05 7:23
Carl Mercier14-May-05 7:23 
QuestionHow to create borderless textbox for Pocket PC Pin
Member 193588013-May-05 19:49
Member 193588013-May-05 19:49 

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.