Click here to Skip to main content
14,842,312 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .net 2.0 installtion problem Pin
uowzd0119-Apr-07 16:09
Memberuowzd0119-Apr-07 16:09 
GeneralRe: .net 2.0 installtion problem Pin
Dave Kreskowiak20-Apr-07 1:55
mveDave Kreskowiak20-Apr-07 1:55 
GeneralRe: .net 2.0 installtion problem Pin
Vega0219-Apr-07 16:08
MemberVega0219-Apr-07 16:08 
GeneralRe: .net 2.0 installtion problem Pin
uowzd0119-Apr-07 16:14
Memberuowzd0119-Apr-07 16:14 
GeneralRe: .net 2.0 installtion problem Pin
uowzd0119-Apr-07 17:48
Memberuowzd0119-Apr-07 17:48 
GeneralRe: .net 2.0 installtion problem Pin
Dave Kreskowiak20-Apr-07 1:56
mveDave Kreskowiak20-Apr-07 1:56 
GeneralRe: .net 2.0 installtion problem Pin
Vega0220-Apr-07 6:29
MemberVega0220-Apr-07 6:29 
QuestionSecurity problem with Word 2007 add-in Pin
Eagle_Wizard19-Apr-07 2:45
MemberEagle_Wizard19-Apr-07 2:45 
In the add-in itself I use reflection.
An other programmer can give me a DLL file with actions (functions) and with the class, namespace and the path of the DLL
I can use these functions in my add-in.

I tested everything in a windows application and it worked perfect.
After that I tried to use the same code in my Word add-in but I got a Security error.
Here is the code where I had the problem:

Assembly ass = Assembly.LoadFile(this.FilePath);<br />
if (ass == null) return;	//compilatie liep wellicht verkeerd<br />
System.Type T = ass.GetType(this.Namespace + "." + this.Class);<br />
<br />
object o = System.Activator.CreateInstance(T);<br />
T.InvokeMember(this.Method, System.Reflection.BindingFlags.InvokeMethod, null, o, new object[] { (object)dicArgs, (object)sConfig });


The program gave a securityerror on the InvokeMember method.
Probably I have to register the used dll somewhere in the .NET Framework 2.0.

Can anybody help me fix this?

Programming code is like magic, just use the right code (magic words) to make happen what you want..

QuestionQuestion about Trace Pin
Tristan Rhodes18-Apr-07 23:57
MemberTristan Rhodes18-Apr-07 23:57 
Questionuser & directory for webservice Pin
LittleWhiteDog18-Apr-07 22:58
MemberLittleWhiteDog18-Apr-07 22:58 
AnswerRe: user & directory for webservice Pin
LittleWhiteDog18-Apr-07 23:03
MemberLittleWhiteDog18-Apr-07 23:03 
QuestionWeb Service not running Pin
dancelicious18-Apr-07 9:00
Memberdancelicious18-Apr-07 9:00 
AnswerRe: Web Service not running Pin
kubben19-Apr-07 2:09
Memberkubben19-Apr-07 2:09 
QuestionHow to make TrackBar vertical? Pin
Zhendalf18-Apr-07 8:12
MemberZhendalf18-Apr-07 8:12 
AnswerRe: How to make TrackBar vertical? Pin
Dave Kreskowiak18-Apr-07 14:58
mveDave Kreskowiak18-Apr-07 14:58 
GeneralRe: How to make TrackBar vertical? Pin
pbraun18-Apr-07 15:34
Memberpbraun18-Apr-07 15:34 
GeneralRe: How to make TrackBar vertical? Pin
Dave Kreskowiak18-Apr-07 16:06
mveDave Kreskowiak18-Apr-07 16:06 
GeneralRe: How to make TrackBar vertical? Pin
Zhendalf21-Apr-07 9:14
MemberZhendalf21-Apr-07 9:14 
GeneralRe: How to make TrackBar vertical? Pin
pbraun21-Apr-07 12:17
Memberpbraun21-Apr-07 12:17 
GeneralRe: How to make TrackBar vertical? Pin
Zhendalf22-Apr-07 5:42
MemberZhendalf22-Apr-07 5:42 
GeneralRe: How to make TrackBar vertical? Pin
pbraun22-Apr-07 7:07
Memberpbraun22-Apr-07 7:07 
QuestionStatically Linking to MSVC Pin
Programm3r18-Apr-07 2:54
MemberProgramm3r18-Apr-07 2:54 
AnswerRe: Statically Linking to MSVC Pin
sthotakura18-Apr-07 8:30
Membersthotakura18-Apr-07 8:30 
GeneralRe: Statically Linking to MSVC Pin
Programm3r18-Apr-07 19:34
MemberProgramm3r18-Apr-07 19:34 
QuestionSerialisation Pin
John.L.Ponratnam18-Apr-07 0:46
MemberJohn.L.Ponratnam18-Apr-07 0:46 

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.