Just mock fails while debugging (Bindings.cs)

2 posts, 0 answers
  1. James
    James avatar
    4 posts
    Member since:
    Jul 2010

    Posted 09 Jun 2011 Link to this post


    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"




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

  2. Ricky
    Ricky avatar
    467 posts

    Posted 15 Jun 2011 Link to this post

    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
    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
Back to Top