Could not load file or assembly Telerik.CodeWeaver.Hook

4 posts, 0 answers
  1. Iwhp
    Iwhp avatar
    40 posts
    Member since:
    Dec 2009

    Posted 30 Mar 2012 Link to this post

    I have setup a Windows 7 x64 machine, with Visual Stuidio 11 Beta and JustMock. When running Unit Tests I get:

    Unit Test Adapter threw exception: Could not load file or assembly 'Telerik.CodeWeaver.Hook, Version=1.0.0.0, Culture=neutral, PublicKeyToken=87210992829a189d' or one of its dependencies. The system cannot find the file speccified..

    When I disable JustMock, it runs fine (ev. I have the following in Code. Mock.Create(Context)();)
    I have started VS in normal Mode and in admin mode, same results...

    Any Ideas? Thankx, Harry

  2. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 04 Apr 2012 Link to this post

    Hi Harry,

    Thanks again for reporting the issue. However,  I created an MSTest project with VS2011 and once I run a test that requires profiler, it passed as expected.



    So far from your error it looks to me that either JustMock is not installed properly or somehow the Telerik.CodeWeaver.Hook.dll is not present in the directory where Telerik.JustMock.dll is located.

    Kind Regards
    Mehfuz
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
  4. Iwhp
    Iwhp avatar
    40 posts
    Member since:
    Dec 2009

    Posted 13 Apr 2012 Link to this post

    Do the DLL have to be copied (during running the test) to the Test-Out directory, eg.

    .\TestResults\Harry_WWVHARRYVS11B 2012-04-13 20_20_46\Out

    I my case, the are not there.

    Attached, please find a picture, where the DLLs are installed.

    Thankx, Cheers Harry
  5. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 18 Apr 2012 Link to this post

    Hi Harry,

    Thanks again for sending the screenshot.

    Yes, the output directory must contain the Telerik.CodeWeaver.Hook.dll. Also, if you have installed Visual Studio 11 Beta after JustMock is installed then please uninstall JustMock and install it again and also make sure that you are installing the latest Visual Studio 11 refresh release.


    Kind Regards
    Ricky
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top