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've installed the latest version of TypeMock (4.0.3.0) and the latest version of NUnit (2.4.3) and I'm getting the following error when I try to run a unit test in hte NUnit GUI:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'TypeMock, Version=0.15699.12074.25199, Culture=neutral, PublicKeyToken=474e4f52455f454c' or one of its dependencies. The system cannot find the file specified.
File name: 'TypeMock, Version=0.15699.12074.25199, Culture=neutral, PublicKeyToken=474e4f52455f454c'
   at NUnit.UiKit.ErrorDisplay.detailList_DrawItem(Object sender, DrawItemEventArgs e)
   at System.Windows.Forms.ListBox.OnDrawItem(DrawItemEventArgs e)
   at System.Windows.Forms.ListBox.WmReflectDrawItem(Message& m)
   at System.Windows.Forms.ListBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Assembly manager loaded from:  C:WINDOWSMicrosoft.NETFramework2.0.50727mscorwks.dll
Running under executable  C:Program FilesNUnit 2.4.3in
unit.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = NAbanderson
LOG: DisplayName = TypeMock, Version=0.15699.12074.25199, Culture=neutral, PublicKeyToken=474e4f52455f454c
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/NUnit 2.4.3/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : nunit.uikit, Version=2.4.3.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:Program FilesNUnit 2.4.3in
unit.exe.config
LOG: Using machine configuration file from C:WINDOWSMicrosoft.NETFramework2.0.50727configmachine.config.
LOG: Post-policy reference: TypeMock, Version=0.15699.12074.25199, Culture=neutral, PublicKeyToken=474e4f52455f454c
LOG: The same bind was seen before, and was failed with hr = 0x80070002.



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
nunit
    Assembly Version: 2.4.3.0
    Win32 Version: 2.4.3.0
    CodeBase: file:///C:/Program%20Files/NUnit%202.4.3/bin/nunit.exe
----------------------------------------
nunit-gui-runner
    Assembly Version: 2.4.3.0
    Win32 Version: 2.4.3.0
    CodeBase: file:///C:/Program%20Files/NUnit%202.4.3/bin/nunit-gui-runner.DLL
----------------------------------------
nunit.uikit
    Assembly Version: 2.4.3.0
    Win32 Version: 2.4.3.0
    CodeBase: file:///C:/Program%20Files/NUnit%202.4.3/bin/nunit.uikit.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
nunit.util
    Assembly Version: 2.4.3.0
    Win32 Version: 2.4.3.0
    CodeBase: file:///C:/Program%20Files/NUnit%202.4.3/bin/nunit.util.DLL
----------------------------------------
nunit.core.interfaces
    Assembly Version: 2.4.3.0
    Win32 Version: 2.4.3.0
    CodeBase: file:///C:/Program%20Files/NUnit%202.4.3/bin/nunit.core.interfaces.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
nunit.core
    Assembly Version: 2.4.3.0
    Win32 Version: 2.4.3.0
    CodeBase: file:///C:/Program%20Files/NUnit%202.4.3/bin/nunit.core.DLL
----------------------------------------
nunit.core.extensions
    Assembly Version: 2.4.3.0
    Win32 Version: 2.4.3.0
    CodeBase: file:///C:/Program%20Files/NUnit%202.4.3/bin/nunit.core.extensions.DLL
----------------------------------------
re9uwugv
    Assembly Version: 2.4.3.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


[/quote]
asked by fande455 (600 points)

5 Answers

0 votes
Hi
Are you running on 64 bit machine?
If you are running on 64 bit please install both of TypeMock
versions 32-64 bit.

Also try the following:
1. Please check the GAC (C:WINDOWSssembly)
and tell me what version of TypeMock you find there.
2. Run the tests with TypeMock log enabled. I'll send you my address
with instruction how to get TypeMock logs.

Note: in order to run NUnit gui with TypeMock enabled you should use
TMockRunner.exe like this:

<PathToTypeMock>TMockRunner.exe <PathToNunit>in
unit.exe
answered by ohad (35.4k points)
0 votes
I'm having the same problem, seems to have started after disabling the eval license (which I presume means I'm restricted to the free community edition features?)?

I will try reinstalling, but this out of the blue failure may push me back towards Rhino Mocks :!:
answered by ironside (180 points)
0 votes
OK, reinstalling fixed the load problem, but I dare not disable the eval license.

This leads to the question, how do I use the FREE version of TypeMock? I want to test it out to determine if it's sufficient or if I need to buy one of the other editions.
answered by ironside (180 points)
0 votes
Hi,

Disabling the eval should not cause any problems. If it does its a defect that must be attended.

I will try this out and see if I can reproduce the problem (can you specify the OS you use? and if you're using 32/64 bit?). in the meantime. you can:
1) not use any of the "licensed feature" - you can see what are those here:
https://www.typemock.com/Features.html

2) Try out all features. then you see which one do you like and which you don't and then decide which version you need to buy. in due time the evaluation will end.

3) Maybe try to disable the eval again. (worse case you can always reinstall it once more)

In any case
thank you for your report and ill keep you updated.
answered by lior (13.2k points)
0 votes
Hi,

We weren't able to reproduce the problem.
I suggest that we take it offline for further investigation.

I'll send you a mail with the details.
answered by lior (13.2k points)
...