Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: The type initializer for 'Microsoft.ClearScript.Util.AssemblyHelpers' threw an exception

0
0
Greetings zestyzeng!

We believe this issue is fixed in ClearScript 5.3.11. Can you give that version a try?

If not, you can work around this issue (and slightly improve your application's performance) by specifying preloaded assemblies when constructing your host type collection:
var mscorlib = typeof(System.String).Assembly;
var systemCore = typeof(System.Linq.Enumerable).Assembly;
engine.AddHostObject("lib", new HostTypeCollection(mscorlib, systemCore));
Good luck!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images