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 and now get a very odd error when trying to do *anything* with typemock, no idea what v 0.2 is :(
*** Assembly Binder Log Entry (24/08/2009 @ 09:50:58) ***

The operation failed.
Bind result: hr = 0x80131040. No description available.

Assembly manager loaded from: c:WINDOWSMicrosoft.NETFramework2.0.50727mscorwks.dll
Running under executable C:ProjectsScratchConsoleApplicationTypeMockConsoleApplicationTypeMockConsoleApplicationTypeMockinDebugConsoleApplicationTypeMock.vshost.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = pkr
LOG: DisplayName = TypeMock, Version=0.20306.17731.21331, Culture=neutral, PublicKeyToken=545552453d783836
(Fully-specified)
LOG: Appbase = file:///C:/Scratch/ConsoleApplicationTypeMock/ConsoleApplicationTypeMock/ConsoleApplicationTypeMock/bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : ConsoleApplicationTypeMock, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from c:WINDOWSMicrosoft.NETFramework2.0.50727configmachine.config.
LOG: Post-policy reference: TypeMock, Version=0.20306.17731.21331, Culture=neutral, PublicKeyToken=545552453d783836
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Scratch/ConsoleApplicationTypeMock/ConsoleApplicationTypeMock/ConsoleApplicationTypeMock/bin/Debug/TypeMock.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:ScratchConsoleApplicationTypeMockConsoleApplicationTypeMockConsoleApplicationTypeMockinDebugTypeMock.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: TypeMock, Version=5.3.4.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2
WRN: Comparing the assembly name resulted in the mismatch: Major Version
ERR: The assembly reference did not match the assembly definition found.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
asked by pkr (3k points)

4 Answers

0 votes
It seems that the test project cannot find Typemock Isolator probably because of leftover "older" version dll in the output directory.

To fix this problem try to rebuild your solution and if the error still occur remove and add the references to your project
answered by dhelper (11.9k points)
0 votes
It's the same for a brand new project
answered by pkr (3k points)
0 votes
I've create a brand new console project, added a Class and left it alone (Class1.cs). Added the following to the main code block;
 Class1 class1 = Isolate.Fake.Instance<Class1>();


Added the following references from the .net tab ('TypeMock Isolator' and 'TypeMock Isolator C# API'). Pressed run.
answered by pkr (3k points)
0 votes
Hi Paul,

In case you're interested I'd like to offer you an online session to solve this problem, I'll send you an email with the contact details.
answered by dhelper (11.9k points)
...