This is a migrated thread and some comments may be shown as answers.
Could not load file or assembly Telerik.CodeWeaver.Hook
3 Answers 107 Views
This is a migrated thread and some comments may be shown as answers.
Iwhp
Top achievements
Rank 1
Iwhp asked on 30 Mar 2012, 06:31 PM
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

3 Answers, 1 is accepted

Sort by
0
Ricky
Telerik team
answered on 04 Apr 2012, 07:09 PM
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 >>
0
Iwhp
Top achievements
Rank 1
answered on 13 Apr 2012, 07:24 PM
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
0
Ricky
Telerik team
answered on 18 Apr 2012, 05:24 PM
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 >>

Asked by
Iwhp
Top achievements
Rank 1
Answers by
Ricky
Telerik team
Iwhp
Top achievements
Rank 1
Share this question
or