Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: [MOSS 2007 C# WebPart] Timer/UpdatePanel, help please... [modified] Pin
crosslink062-Aug-10 23:45
crosslink062-Aug-10 23:45 
GeneralRe: [MOSS 2007 C# WebPart] Timer/UpdatePanel, help please... Pin
crosslink065-Aug-10 7:47
crosslink065-Aug-10 7:47 
QuestionSQL Query On DataTable Pin
cdpace30-Jul-10 4:07
cdpace30-Jul-10 4:07 
AnswerRe: SQL Query On DataTable Pin
Yusuf30-Jul-10 5:43
Yusuf30-Jul-10 5:43 
QuestionProgrammatically set the admin only permission to event viewer file in window 7 Pin
vinaykhin30-Jul-10 1:29
vinaykhin30-Jul-10 1:29 
AnswerRe: Programmatically set the admin only permission to event viewer file in window 7 Pin
vinaykhin17-Aug-10 21:59
vinaykhin17-Aug-10 21:59 
QuestionCOM server containing bulk insert impl called from Matlab Pin
devvvy29-Jul-10 23:51
devvvy29-Jul-10 23:51 
QuestionReflection to load an assembly application wide (like referencing it) Pin
hoernchenmeister29-Jul-10 23:38
hoernchenmeister29-Jul-10 23:38 
Good Morning all,

Currently I try to accomplish to load a DLL (filename and path) as an assembly to be available to all classes in my project.

This is because one of our third party classes makes a call to an unreferenced dll and therefore fails.

I already tried different things:
- loading the assembly into the AppDomain.CurrentDomain
- instanciating objects of the required type via reflection
- I tried different locations for doing the above mentioned things (Startproject, directly before the error occurs, etc)

All solutions loaded the assemblies, but the type seems inaccessible to the third party class.

In VisualStudio 2010 in the output window I can see the line saying that the dll is loaded.

Funny (yeah, not really funny, quire obvious) is that when I copy the dll into the executing directory or reference it via the Project References everything works fine. Unfortunately this is not a solution, because we use MEF to import such classes (third party) into our Application.

I thought about copying the dll to the application folder because thanks to MEF I can get a handle on every DLL necessary... but that would be quite ugly, wouldn't it?

I guess I just forget about something...but it doesn't pop into my mind..

Any help is kindly appreciated,
best regards
Andy
AnswerRe: Reflection to load an assembly application wide (like referencing it) Pin
PIEBALDconsult30-Jul-10 6:00
mvePIEBALDconsult30-Jul-10 6:00 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
hoernchenmeister1-Aug-10 20:42
hoernchenmeister1-Aug-10 20:42 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
PIEBALDconsult2-Aug-10 2:58
mvePIEBALDconsult2-Aug-10 2:58 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
hoernchenmeister2-Aug-10 3:42
hoernchenmeister2-Aug-10 3:42 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
PIEBALDconsult2-Aug-10 3:54
mvePIEBALDconsult2-Aug-10 3:54 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
hoernchenmeister2-Aug-10 4:59
hoernchenmeister2-Aug-10 4:59 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
PIEBALDconsult2-Aug-10 12:28
mvePIEBALDconsult2-Aug-10 12:28 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
hoernchenmeister2-Aug-10 20:29
hoernchenmeister2-Aug-10 20:29 
AnswerRe: Reflection to load an assembly application wide (like referencing it) Pin
Bernhard Hiller1-Aug-10 22:01
Bernhard Hiller1-Aug-10 22:01 
GeneralRe: Reflection to load an assembly application wide (like referencing it) Pin
hoernchenmeister2-Aug-10 1:20
hoernchenmeister2-Aug-10 1:20 
QuestionUpperBound of Dynamic array Pin
Enobong Adahada29-Jul-10 22:36
Enobong Adahada29-Jul-10 22:36 
AnswerRe: UpperBound of Dynamic array Pin
Sathesh Sakthivel29-Jul-10 23:35
Sathesh Sakthivel29-Jul-10 23:35 
AnswerRe: UpperBound of Dynamic array Pin
OriginalGriff29-Jul-10 23:43
mveOriginalGriff29-Jul-10 23:43 
GeneralRe: UpperBound of Dynamic array Pin
riced30-Jul-10 0:29
riced30-Jul-10 0:29 
GeneralRe: UpperBound of Dynamic array Pin
OriginalGriff30-Jul-10 0:33
mveOriginalGriff30-Jul-10 0:33 
GeneralRe: UpperBound of Dynamic array Pin
Keith Barrow30-Jul-10 0:49
professionalKeith Barrow30-Jul-10 0:49 
GeneralRe: UpperBound of Dynamic array Pin
Enobong Adahada2-Aug-10 8:11
Enobong Adahada2-Aug-10 8:11 

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.