chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
+1 vote
I get the following TypeMockException when building on jenkins
 <Message>Initialization method SEO.SmartAgent.WebService.UnitTests.TestCases.SmartAgentServiceUnitTests.Initialize threw exception. TypeMock.TypeMockException: TypeMock.TypeMockException:
*** Exception throw while recording calls. Please check:
 * Are you trying to fake a field instead of a property? try to set field or use Isolate.Invoke.StaticConstructor
 * Are you are trying to fake an unsupported mscorlib method? See supported types here: http://www.typemock.com/mscorlib-types
InnerException ---&gt; System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly \'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\' or one of its dependencies. The system cannot find the file specified.WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog].
.</Message>

What does it mean?
asked by IlanG (4.8k points)

1 Answer

+1 vote
 
Best answer

according to System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 
It looks like the  Microsoft.Practices.EnterpriseLibrary.Common library is missing, that corrupts the built, unconnected to typemock.
Please try to add the library and rebuild .

answered by David (1.9k points)
selected by IlanG
...