I am setting up a new TFS 2013 server with TypeMock 8.2. I am using the AutoDeploy method in the documentation. I am using the build template provided by TypeMock (TfvcTemplate 12 WithTypemock.xaml) with no changes. I have checked in the specified assemblies to the custom assemblies location for TFS (4 dlls in the documentation) and checked in the entire AutoDeploy folder contents to another location in TFS. I have a simple project with single executable and a single test library to execute a test using TypeMock.
When I run the build it fails with the following:
Test method TypeMockBuildTest.Tests.UnitTest1.TestMethod1 threw exception:
System.TypeInitializationException: The type initializer for 'TypeMock.ArrangeActAssert.Isolate' threw an exception. ---> System.TypeInitializationException: The type initializer for 'TypeMock.MockManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'TypeMock.InterceptorsWrapper' threw an exception. ---> System.InvalidOperationException: _uxPQTV01zfc7XKv4rByk4AFosFd_._LipTBxdqG5pkAThwl2IcjUIsPqA_ is inaccessible due to its protection level. Only public types can be processed.
Can someone provide suggested steps for resolving this?
If I install TypeMock on build server it works. So this is an issue with auto-deploy. I've tried several things, including staging a static folder outside of TFS on the build server with the auto-deploy contents. Here are the diagnostics:
Execute TypeMockRegister, Version=8.2.0.44
Source AutoDeploy location is 'E:TypeMock8.2'
TypeMockRegister, Company='xxx', License='xxx', AutoDeploy=False, DeployRootDirectory=
TypeMockRegister High=Typemock Isolator License set
Execute TypeMockStart, Version=8.2.0.44
TypeMockStart Target=, ProfilerLaunchedFirst=False, Link=, LogLevel=0, LogPath=, EvaluationFolder=,DisableAutoLinkFalse
TypeMockStart Error=Typemock is not deployed on this system, please install Typemock or use register to autodeploy typemock
Typemock is not deployed on this system, please install Typemock or use register to autodeploy typemock
at TypeMock.CLI.Common.TypeMockStartInfo.Execute() at TypeMock.TFS2013.TypeMockStart.ExecuteInternal() at TypeMock.TFS2013.TypeMockCodeActivityBase.Execute(CodeActivityContext context)
Thank you,
Mark