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 upgraded to version 3.1.

When I run TMockRunner.exe there is an exception

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name Configuration, or one of its dependencies, w
as not found.
File name: "Configuration"
   at b.a(String[] A_0)

=== Pre-bind state information ===
LOG: DisplayName = Configuration, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null
 (Fully-specified)
LOG: Appbase = C:Program FilesTypeMock.NETTypeMock.NET
LOG: Initial PrivatePath = NULL
Calling assembly : TMockRunner, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null.
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Configuration, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration/Configuration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/TypeMock.NET/TypeMock.NET/Configuration/Configuration.EXE.


I took a copy of TypeMockTracer.exe.config and named it TMockRunner.exe.config. That contains the probing path and correct the problem.

-

I was actually trying to run a test with .net 2.0. TMockRunner does not seem to accept the "-target" parameter.

On the commandline it returns the usage instructions and does not execute any tests.

"C:Program FilesTypeMock.NETTypeMock.NETTMockrunner" -target 2.0 TestRunner.exe TestBlob.dll


If the target is not given it works as expected.

"C:Program FilesTypeMock.NETTypeMock.NETTMockrunner" TestRunner.exe TestBlob.dll


In the manual there is an example with a differently name parameter "-NETVersion". That did not work either.

Am I using it wrong?

Colin
asked by cgravill (1.2k points)

4 Answers

0 votes
True :oops:
We will fix it.
answered by scott (32k points)
0 votes
Fixed in version 3.1.1 :D
answered by scott (32k points)
0 votes
Thanks for the swift response.

Both issues work fine, thanks.

The version numbering has a problem though. I installed TypeMockSetup311.zip but the TypeMock.NET Configuration says that the version is 3.1.0.0. Does not bother me but might cause some confusion. :)

Colin
answered by cgravill (1.2k points)
0 votes
Hi,
Happy to have solved the issue. :wink:
answered by scott (32k points)
...