Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
QuestionLink label transparency... Pin
Kasic Slobodan18-Feb-06 16:27
Kasic Slobodan18-Feb-06 16:27 
AnswerRe: Link label transparency... Pin
Joshua Quick18-Feb-06 17:16
Joshua Quick18-Feb-06 17:16 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 3:43
Kasic Slobodan19-Feb-06 3:43 
GeneralRe: Link label transparency... Pin
Joshua Quick19-Feb-06 10:43
Joshua Quick19-Feb-06 10:43 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 14:01
Kasic Slobodan19-Feb-06 14:01 
GeneralRe: Link label transparency... Pin
mav.northwind19-Feb-06 20:08
mav.northwind19-Feb-06 20:08 
GeneralRe: Link label transparency... Pin
Kasic Slobodan20-Feb-06 4:53
Kasic Slobodan20-Feb-06 4:53 
QuestionGetType() fails, but why Pin
User 665818-Feb-06 14:01
User 665818-Feb-06 14:01 
Hi everybody.

Currently I'm developing a mechanism to load other C# dlls so that they can act as plugins for my application. This is what I have so far, the code is inside a DLL which is loaded by a different C# app again:

Assembly dll = Assembly.FromFile(filename); // filename is something like "C:\Path\To\Plugin.dll"
Type entry = dll.GetType("PluginTest.Entry");
Entry start = (Entry)Activator.CreateInstance(entry);
start.Go();


This loads the dll filename, loads the Entry class from namespace PluginTest and executes the method Go().

This works fine in my test-solution where all files reside in the same folder.
Now comes the awkward part: If I move my DLLs (the reflection loader and the plugin dll) to a different folder, then suddenly the dll.GetType() part fails with an ArgumentException.

Can someone tell my what's wrong with my code here when everything works fine in my testing "sandbox"? It's not the LoadFile part which is failing from outside this scenario, as I think WTF | :WTF:

regards

modified 12-Sep-18 21:01pm.

AnswerRe: GetType() fails, but why Pin
darkelv18-Feb-06 14:39
darkelv18-Feb-06 14:39 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 2:10
User 665819-Feb-06 2:10 
AnswerRe: GetType() fails, but why Pin
Guffa19-Feb-06 2:17
Guffa19-Feb-06 2:17 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 2:58
darkelv19-Feb-06 2:58 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 4:08
User 665819-Feb-06 4:08 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 5:26
darkelv19-Feb-06 5:26 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 5:49
User 665819-Feb-06 5:49 
AnswerRe: GetType() fails, but why Pin
leppie19-Feb-06 6:08
leppie19-Feb-06 6:08 
QuestionSuggestions for a C# Windows project to learn C# Pin
LuluSailor18-Feb-06 12:57
LuluSailor18-Feb-06 12:57 
AnswerRe: Suggestions for a C# Windows project to learn C# Pin
Koushik Biswas18-Feb-06 13:21
Koushik Biswas18-Feb-06 13:21 
AnswerRe: Suggestions for a C# Windows project to learn C# Pin
Colin Angus Mackay18-Feb-06 13:37
Colin Angus Mackay18-Feb-06 13:37 
QuestionGenerating mouse clicks on desktop Pin
shunnyboy18-Feb-06 11:30
shunnyboy18-Feb-06 11:30 
AnswerRe: Generating mouse clicks on desktop Pin
shamsallana18-Mar-06 11:15
shamsallana18-Mar-06 11:15 
Question[VS 2005] Show a context menu by left click a button Pin
Susuko18-Feb-06 10:46
Susuko18-Feb-06 10:46 
AnswerRe: [VS 2005] Show a context menu by left click a button Pin
BambooMoon18-Feb-06 11:20
BambooMoon18-Feb-06 11:20 
GeneralRe: [VS 2005] Show a context menu by left click a button Pin
Susuko18-Feb-06 12:05
Susuko18-Feb-06 12:05 
GeneralRe: [VS 2005] Show a context menu by left click a button Pin
BambooMoon18-Feb-06 13:04
BambooMoon18-Feb-06 13:04 

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.