Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
QuestionUrgent Help Pin
Asma AlShehhi27-Nov-12 10:27
Asma AlShehhi27-Nov-12 10:27 
AnswerRe: Urgent Help Pin
R. Giskard Reventlov27-Nov-12 12:19
R. Giskard Reventlov27-Nov-12 12:19 
AnswerRe: Urgent Help Pin
Eddy Vluggen27-Nov-12 12:55
professionalEddy Vluggen27-Nov-12 12:55 
GeneralRe: Urgent Help Pin
OriginalGriff27-Nov-12 21:08
mveOriginalGriff27-Nov-12 21:08 
AnswerRe: Urgent Help Pin
fjdiewornncalwe28-Nov-12 11:54
professionalfjdiewornncalwe28-Nov-12 11:54 
AnswerRe: Urgent Help Pin
BobJanova28-Nov-12 23:16
BobJanova28-Nov-12 23:16 
QuestionHow to prevent multiple button clicks Pin
MichCl27-Nov-12 10:15
MichCl27-Nov-12 10:15 
AnswerRe: How to prevent multiple button clicks Pin
Eddy Vluggen27-Nov-12 12:48
professionalEddy Vluggen27-Nov-12 12:48 
GeneralRe: How to prevent multiple button clicks Pin
MichCl28-Nov-12 8:31
MichCl28-Nov-12 8:31 
AnswerRe: How to prevent multiple button clicks Pin
lukeer27-Nov-12 20:17
lukeer27-Nov-12 20:17 
GeneralRe: How to prevent multiple button clicks Pin
MichCl28-Nov-12 7:40
MichCl28-Nov-12 7:40 
GeneralRe: How to prevent multiple button clicks Pin
MichCl28-Nov-12 7:41
MichCl28-Nov-12 7:41 
QuestionTop books for learning C# (Complete novice) for thermodynamic mathematical modelling Pin
Mahdi Kapateh27-Nov-12 8:05
Mahdi Kapateh27-Nov-12 8:05 
AnswerRe: Top books for learning C# (Complete novice) for thermodynamic mathematical modelling Pin
Richard MacCutchan27-Nov-12 9:53
mveRichard MacCutchan27-Nov-12 9:53 
AnswerRe: Top books for learning C# (Complete novice) for thermodynamic mathematical modelling Pin
Nelek27-Nov-12 12:37
protectorNelek27-Nov-12 12:37 
GeneralRe: Top books for learning C# (Complete novice) for thermodynamic mathematical modelling Pin
Richard MacCutchan27-Nov-12 23:47
mveRichard MacCutchan27-Nov-12 23:47 
GeneralRe: Top books for learning C# (Complete novice) for thermodynamic mathematical modelling Pin
Nelek28-Nov-12 11:47
protectorNelek28-Nov-12 11:47 
AnswerRe: Top books for learning C# (Complete novice) for thermodynamic mathematical modelling Pin
Matt T Heffron27-Nov-12 12:59
professionalMatt T Heffron27-Nov-12 12:59 
GeneralRe: Top books for learning C# (Complete novice) for thermodynamic mathematical modelling Pin
Mahdi Kapateh28-Nov-12 3:04
Mahdi Kapateh28-Nov-12 3:04 
QuestionDynamically loading a plug-in assembly by interface Pin
MJL Rademakers27-Nov-12 4:07
MJL Rademakers27-Nov-12 4:07 
Hello all,

I am developing a small utility that performs an action on files. This action may be very much ad-hoc, and so I want to be able to program it apart from the utility. The idea is that the utility loads the ad-hoc assembly when a class in it implements a certain interface, which the utility will call by invoking the interface method on a private reference of it, loaded with Activator.CreateInstance(). The interface is defined in another assembly, referenced by both the utility and the plug-in.

All compiles fine, but I get a run-time exception from down under the .NET hood (i.e. a native Windows error code HRESULT=0x80131047). Debugging info shows that the plug-in assembly is duly found and opened, but the utility could not load it "or one of its dependencies".

All my research up to now tells me to include version and public key info in specifying the plug-in but that would defeat the whole point of this set-up.

Has anybody any idea how I can get this to work ? Thanks for your help.
Michiel Rademakers

AnswerRe: Dynamically loading a plug-in assembly by interface Pin
Alan N27-Nov-12 4:27
Alan N27-Nov-12 4:27 
GeneralRe: Dynamically loading a plug-in assembly by interface Pin
MJL Rademakers27-Nov-12 4:41
MJL Rademakers27-Nov-12 4:41 
AnswerRe: Dynamically loading a plug-in assembly by interface Pin
Pete O'Hanlon27-Nov-12 4:30
mvePete O'Hanlon27-Nov-12 4:30 
GeneralRe: Dynamically loading a plug-in assembly by interface Pin
MJL Rademakers27-Nov-12 4:45
MJL Rademakers27-Nov-12 4:45 
AnswerRe: Dynamically loading a plug-in assembly by interface Pin
PIEBALDconsult27-Nov-12 8:17
mvePIEBALDconsult27-Nov-12 8:17 

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.