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
0 votes

I got this exception when I tried to run tmockrunner from command line this morning. :
 

cmd /C "TMockRunner "C:Program FilesNUnitin
unit-console.exe" "*.nunit""
"*.nunit" 

NUnit version 2.4.8
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment - 
  OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3
  CLR Version: 2.0.50727.3053 ( Net 2.0.50727.3053 )

Could not load file or assembly 'TypeMock, Version=5.2.2.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2' or one of its dependencies. The system cannot find the file specified.


Here are some of the background info, hopefully it helps you guys to reproduce the problem and suggest a workaround ASAP:
 

  1. I am currently using version 5.2.3.0
  2. When installing version 5.2.2.0, instead of using one-click install, I used custom install. So I chose the installation path to be "C:Program FilesTypeMockIsolator". So the tmockrunner is now located in "C:Program FilesTypeMockIsolator"
  3. When installing version 5.2.3.0, I also used custom install, and chose the same directory so that I could override the old copy of Typemock.
  4. I checked the tmockrunner version number, it's 5.2.3.0.

 

asked by nsoonhui (59.1k points)
edited by Bar

2 Answers

0 votes
Hi Soon Hui,

This sounds like an assembly confusion. Can you send me the following:
- what versions of Typemock.dll are in your GAC? (c:windowsssembly)
- where does the installDir value under the Typemock registry key point to? (under HKLM/Software/Typemock.NET, or under HKLM/Software/Syswow3264/Typemock.NET in a 64bit OS)

Thanks,
Doron
Typemock Support
answered by doron (17.2k points)
0 votes
Hi Soon Hui,

This sounds like an assembly confusion. Can you send me the following:
- what versions of Typemock.dll are in your GAC? (c:windowsssembly)
- where does the installDir value under the Typemock registry key point to? (under HKLM/Software/Typemock.NET, or under HKLM/Software/Syswow3264/Typemock.NET in a 64bit OS)

Thanks,
Doron
Typemock Support


  1. GAC version: 5.2.3.0
  2. There is no registry for typemock under HKLM
  3. The registry value for HKey_Current_Usersoftware ypemockTypemock.Isolator is a

 

answered by nsoonhui (59.1k points)
edited by Bar
...