Skip to content

Instantly share code, notes, and snippets.

@decriptor
Created February 24, 2014 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save decriptor/9199409 to your computer and use it in GitHub Desktop.
Save decriptor/9199409 to your computer and use it in GitHub Desktop.
2014-02-24 16:24:31.531 MoqMobileTest[5369:80b] Could not load 'Castle.Core' for registration: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Assembly.cs:351
at MonoTouch.Registrar.OldDynamicRegistrar.RegisterAssembly (System.Reflection.Assembly a) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/OldDynamicRegistrar.cs:67
2014-02-24 16:24:31.534 MoqMobileTest[5369:80b] This could be due to an outdated assembly kept by the simulator, location: /Users/sgshaw/Projects/MoqMobileTest/Castle.Core/bin/Release/Castle.Core.dll
2014-02-24 16:24:35.955 MoqMobileTest[5369:80b] [Runner executing: Run Everything]
2014-02-24 16:24:35.956 MoqMobileTest[5369:80b] [MonoTouch Version: 7.1.5]
2014-02-24 16:24:35.957 MoqMobileTest[5369:80b] [iPad Simulator: iPhone OS v7.0.3]
2014-02-24 16:24:35.957 MoqMobileTest[5369:80b] [Device Name: iPad Simulator]
2014-02-24 16:24:35.959 MoqMobileTest[5369:80b] [Device UDID: FFFFFFFF22826C2BEEA1431EB06982404BD59808]
2014-02-24 16:24:35.961 MoqMobileTest[5369:80b] [Device Locale: en_US]
2014-02-24 16:24:35.967 MoqMobileTest[5369:80b] [Device Date/Time: 2/24/2014 4:24:35 PM]
2014-02-24 16:24:35.968 MoqMobileTest[5369:80b] [Bundle: com.your-company.MoqMobileTest]
2014-02-24 16:24:35.974 MoqMobileTest[5369:80b] MoqMobileTest.exe
2014-02-24 16:24:35.975 MoqMobileTest[5369:80b] Tests
2014-02-24 16:24:35.990 MoqMobileTest[5369:80b] [FAIL] CreateMyClass : System.TypeInitializationException : An exception was thrown by the type initializer for Moq.Mock`1
----> System.TypeInitializationException : An exception was thrown by the type initializer for Moq.Proxy.CastleProxyFactory
----> System.TypeLoadException : Could not load type 'Castle.DynamicProxy.ModuleScope' from assembly 'Castle.Core, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null'.
2014-02-24 16:24:35.991 MoqMobileTest[5369:80b] at MoqMobileTest.Tests.CreateMyClass () [0x00000] in <filename unknown>:0
2014-02-24 16:24:35.991 MoqMobileTest[5369:80b] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
2014-02-24 16:24:35.992 MoqMobileTest[5369:80b] at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00044] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2014-02-24 16:24:35.992 MoqMobileTest[5369:80b] --TypeInitializationException
2014-02-24 16:24:35.992 MoqMobileTest[5369:80b] at Moq.Mock`1[MoqMobileTest.MyClass]..cctor () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Moq4/Mock.Generic.cs:55
2014-02-24 16:24:35.993 MoqMobileTest[5369:80b] --TypeLoadException
2014-02-24 16:24:35.993 MoqMobileTest[5369:80b] at Castle.DynamicProxy.ProxyGenerator..ctor () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Castle.Core/DynamicProxy/ProxyGenerator.cs:69
2014-02-24 16:24:35.993 MoqMobileTest[5369:80b] at Moq.Proxy.CastleProxyFactory.CreateProxyGenerator () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Moq4/Proxy/CastleProxyFactory.cs:138
2014-02-24 16:24:35.994 MoqMobileTest[5369:80b] at Moq.Proxy.CastleProxyFactory..cctor () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Moq4/Proxy/CastleProxyFactory.cs:56
2014-02-24 16:24:35.999 MoqMobileTest[5369:80b] [FAIL] Fail : Expected: False
But was: True
2014-02-24 16:24:35.999 MoqMobileTest[5369:80b] at MoqMobileTest.Tests.Fail () [0x00000] in <filename unknown>:0
2014-02-24 16:24:36.000 MoqMobileTest[5369:80b] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
2014-02-24 16:24:36.000 MoqMobileTest[5369:80b] at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00044] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2014-02-24 16:24:36.001 MoqMobileTest[5369:80b] [IGNORED] Ignore : another time
2014-02-24 16:24:36.004 MoqMobileTest[5369:80b] [PASS] Pass
2014-02-24 16:24:36.006 MoqMobileTest[5369:80b] Tests : 30 ms
2014-02-24 16:24:36.008 MoqMobileTest[5369:80b] MoqMobileTest.exe : 31 ms
2014-02-24 16:24:36.009 MoqMobileTest[5369:80b] Tests run: 3 Passed: 1 Inconclusive: 0 Failed: 2 Ignored: 1
2014-02-24 16:24:39.921 MoqMobileTest[5369:80b] [Runner executing: MoqMobileTest.Tests.CreateMyClass]
2014-02-24 16:24:39.921 MoqMobileTest[5369:80b] [MonoTouch Version: 7.1.5]
2014-02-24 16:24:39.922 MoqMobileTest[5369:80b] [iPad Simulator: iPhone OS v7.0.3]
2014-02-24 16:24:39.922 MoqMobileTest[5369:80b] [Device Name: iPad Simulator]
2014-02-24 16:24:39.922 MoqMobileTest[5369:80b] [Device UDID: FFFFFFFF22826C2BEEA1431EB06982404BD59808]
2014-02-24 16:24:39.923 MoqMobileTest[5369:80b] [Device Locale: en_US]
2014-02-24 16:24:39.923 MoqMobileTest[5369:80b] [Device Date/Time: 2/24/2014 4:24:39 PM]
2014-02-24 16:24:39.924 MoqMobileTest[5369:80b] [Bundle: com.your-company.MoqMobileTest]
2014-02-24 16:24:39.925 MoqMobileTest[5369:80b] [FAIL] CreateMyClass : System.TypeInitializationException : An exception was thrown by the type initializer for Moq.Mock`1
----> System.TypeInitializationException : An exception was thrown by the type initializer for Moq.Proxy.CastleProxyFactory
----> System.TypeLoadException : Could not load type 'Castle.DynamicProxy.ModuleScope' from assembly 'Castle.Core, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null'.
2014-02-24 16:24:39.925 MoqMobileTest[5369:80b] at MoqMobileTest.Tests.CreateMyClass () [0x00000] in <filename unknown>:0
2014-02-24 16:24:39.925 MoqMobileTest[5369:80b] at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
2014-02-24 16:24:39.926 MoqMobileTest[5369:80b] at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00044] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2014-02-24 16:24:39.926 MoqMobileTest[5369:80b] --TypeInitializationException
2014-02-24 16:24:39.926 MoqMobileTest[5369:80b] at Moq.Mock`1[MoqMobileTest.MyClass]..cctor () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Moq4/Mock.Generic.cs:55
2014-02-24 16:24:39.927 MoqMobileTest[5369:80b] --TypeLoadException
2014-02-24 16:24:39.927 MoqMobileTest[5369:80b] at Castle.DynamicProxy.ProxyGenerator..ctor () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Castle.Core/DynamicProxy/ProxyGenerator.cs:69
2014-02-24 16:24:39.928 MoqMobileTest[5369:80b] at Moq.Proxy.CastleProxyFactory.CreateProxyGenerator () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Moq4/Proxy/CastleProxyFactory.cs:138
2014-02-24 16:24:39.928 MoqMobileTest[5369:80b] at Moq.Proxy.CastleProxyFactory..cctor () [0x00000] in /Users/sgshaw/Projects/MoqMobileTest/Moq4/Proxy/CastleProxyFactory.cs:56
2014-02-24 16:24:39.928 MoqMobileTest[5369:80b] Tests run: 1 Passed: 0 Inconclusive: 0 Failed: 1 Ignored: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment