1
Vote

TypeInitializationException was caught

description

Hi, I'm using latest version of IronRuby with (VS2010 & .Net 4.0 & Silverlight 5). It works fine. But when i enabled 'Elevated trust' for the silverlight application IronRuby fails with the Error message ,
TypeInitializationException was caught 

The type initializer for 'IronRuby.Compiler.Ast.AstFactory' threw an exception. Attempt by security transparent method 'Microsoft.Scripting.Ast.Utils.Constant(System.Object)' to access security critical type 'System.Numerics.BigInteger' failed.
Note : It works fine with Silverlight 4 since it doesn't have 'Elevated trust' option. Please check the attached project.

file attachments

comments