RSS

Error: “Request for the permission of type ‘InteropPermission’ failed.”

16 Apr

Many times we would like to call method from dot net assemblies or com so we have to assign permission to execute the code.below are ways can be used for CLR and COM

Assign permissions to execute the code (CLR Interop). Like this:

InteropPermission permission = new InteropPermission(InteropKind::ClrInterop);
;
permission.assert();

Assign permissions to execute the code (COM object). Like this::

InteropPermission permission = new InteropPermission(InteropKind::ComInterop);
;
permission.assert();

 
1 Comment

Posted by on April 16, 2012 in AX 2009, AX 2012, Security

 

Tags: , , , , ,

One response to “Error: “Request for the permission of type ‘InteropPermission’ failed.”

Leave a comment