Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"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.Core.Logging.TraceLogger' from assembly 'Castle.Core, Version=3.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'.\n at Castle.DynamicProxy.ProxyGenerator..ctor () [0x00000] in <filename unknown>:0 \n at Moq.Proxy.CastleProxyFactory.CreateProxyGenerator () [0x00000] in <filename unknown>:0 \n at Moq.Proxy.CastleProxyFactory..cctor () [0x00000] in <filename unknown>:0 \n --- End of inner exception stack trace ---\n at Moq.Mock`1[Android.Content.Context]..cctor () [0x00000] in <filename unknown>:0 \n --- End of inner exception stack trace ---\n at UseMoq.Activity1.OnCreate (Android.OS.Bundle bundle) [0x00011] in c:\\Users\\Window7\\Desktop\\UseMoq\\Activity1.cs:22 "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment