Menu
  • HOME
  • TAGS

Exception thrown by the type initializer for Moq.Proxy.CastleProxyFactory when not running test in isolation

c#,asp.net-mvc-4,mono,moq,typeinitializeexception

I was running Mono 3.12 as shown by mono -V. Updating to Mono 4 with sudo apt-get install mono-complete fixed the issue!

Class library with Parse throws error

c#,parse.com,class-library,typeinitializeexception

Thanks to @Samuel I have amended my code as follows: using Parse; using System.Threading.Tasks; namespace ExperiorWrapper { public class ParseFunctions { public static async Task testParse() { ParseClient.Initialize("xxxx", "xxxx"); var testObject = new ParseObject("TestObject"); testObject["foo"] = "bar"; await testObject.SaveAsync(); } } } and the test now looks like this: [TestMethod]...