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
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I setup a command line steps in Teamcity to run the typemock test using the following

TMockRunner nunit-console assembly.dll


Before I ran it by Teamcity, I test the command at command prompt and it's working fine.

However, the SAME command returns the following errors when it ran by Teamcity

1. Your licence has expired. Please contact Typemock sales team at

2. You applied [Isolated(DesignMode.InterfaceOnly)] in your tests while .....


Server license has already been set to typemock configurator and the ran at command prompt should prove the licence has been set. Is there any additional thing to do ?
asked by (36.1k points)

1 Answer

0 votes

There are two solutions for your problem:

1. Make sure, what license set for all users in 'Typemock configurator'.

2. You need to register typemock license in every build from the build script using TypeMockRegister task.

See here for example:

answered by (1.6k points)
So .... how about if I'm not using msbuild ?

I have using Teamcity with a command line task

Can you show me how to put company name and licence key to TMockRunner -Register [??]

Then your task to register Typemock will look as follows:

TMockRunner.exe -register company license


It returns an error

Error in TMockRunner System.Exception: Could not open registry key Company

at Typemock.Common.Configuraiton.Core.RegirstryManager.SetValue[T](RegistryKeys keyName, T value)

Right, you don't have typemock's registry keys.

First of all you need to deploy Typemock, and then to register it.

TMockRunner.exe -deploy <path> -register <company> <license>


It's working !! thanks a lot
You're welcome :)