This is a migrated thread and some comments may be shown as answers.

Just mock fails while debugging (Bindings.cs)

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 10 Jun 2011, 04:50 AM
Evening,

I was trying to step into some code and got the following error:

Call stack location:

Telerik.CodeWeaver.Hook.dll!Telerik.CodeWeaver.Hook.Bindings.TryGetDelegate(string bindingKey) Line 32

Source file location:

Locating source for 'c:\B\Minotaur\JustMock CI Build\Sources\Telerik.CodeWeaver.Hook\Bindings.cs'. Checksum: MD5 {c2 99 df 65 6a 15 68 37 cd e6 77 54 d3 bd fa c5}
The file 'c:\B\Minotaur\JustMock CI Build\Sources\Telerik.CodeWeaver.Hook\Bindings.cs' does not exist.
Looking in script documents for 'c:\B\Minotaur\JustMock CI Build\Sources\Telerik.CodeWeaver.Hook\Bindings.cs'...
Looking in the projects for 'c:\B\Minotaur\JustMock CI Build\Sources\Telerik.CodeWeaver.Hook\Bindings.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\B\Minotaur\JustMock CI Build\Sources\Telerik.CodeWeaver.Hook\Bindings.cs.
The debugger could not locate the source file 'c:\B\Minotaur\JustMock CI Build\Sources\Telerik.CodeWeaver.Hook\Bindings.cs'.

I know that I do not have a path label "'c:\B\Minotaur\JustMock CI Build"

Thanks

James

p.s.

I was attempting to duplicate the application Graham was showing (great example of where to use mock object)

http://www.telerik.com/community/forums/justmock/general-discussions/am-i-setting-up-these-tests-correctly.aspx

1 Answer, 1 is accepted

Sort by
0
Ricky
Telerik team
answered on 15 Jun 2011, 10:45 AM
Hi James,

Thanks again for reporting the issue.

However it could be the issue that you are trying to mock non-virtual member, your profiler is turned on but Telerik.CodeWeaver.Hook dll is not in the assembly where Telerik.JustMock.dll resides. If you have moved Telerik.JustMock.dll then please make sure you have also copied Telerik.CodeWeaver.Hook.dll from \%Program_Files%\Telerik\JustMock\Libraries folder.


Kind Regards
Ricky
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
Ricky
Telerik team
Share this question
or