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
We just purchased TypeMock Enterprise this morning and I'm trying to integrate it into one of our build scripts. I'm using the included NAnt task for license registration, and I get an error like:

You need an enterprise license to use AutoDeploy TypeMock.NET
Error Deploying TypeMock.NET, enterprise license required


My NAnt script is simply:
<target name="ncover">
   <loadtasks assembly="deployTypeMock.NAntBuild.dll" />
   <typemockregister company="-removed-" license="-removed-" autodeploy="true"/>
   <typemockstart link="NCover" profilerlaunchedfirst="true" />
   <!-- Run various tests via NCover/NUnit -->
   <typemockstop/>
</target>


I'm using TypeMock 3.7.1 and it is not installed on the build server. All the various dependencies listed in the documentation on AutoDeploying TypeMock are included as well. I can run the same NAnt script locally (where TypeMock is installed) and the license is registered successfully.

We are using a new 30 day license which was sent when our order was submitted, to use until the permanent one is sent. Could this be the problem? Am I missing something?

Thanks,
Matt Rudder
asked by mrudder (1.2k points)

3 Answers

0 votes
Hi,
It could be the temporary license. I will have to check that.
In the meantime, I will see if we can send you the permanent license sooner.
answered by scott (32k points)
0 votes
I just received a permanent key and it fails the same way as with the demo key.

Something I just thought of, but I'm not sure how much help it will be. I'm running this script under CruiseControl.net. The user running CC.net is an administrator on the machine.

EDIT: Just ran the script manually on the build server, and the same error occurs so it doesn't look like a permissions issue.
answered by mrudder (1.2k points)
0 votes
Well, I got my issue resolved for the build server. The problem was with the company name I had entered. What worked fine with a demo key on my local machine would not be validated when entered via the NAnt task.
answered by mrudder (1.2k points)
...