Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Could not load file or assembly 'System.Web.2.0.0.0.Fakes

, 3 Mar 2013
Rate this:
Please Sign up or sign in to vote.
  Test method VisualWebPartProject1Test.SPControllerTest.CreateListTest threw exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.2.0.0.0.Fakes, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0ae41878053f6703' or one of its dependencies. The system cannot find

 

Test method VisualWebPartProject1Test.SPControllerTest.CreateListTest threw exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.2.0.0.0.Fakes, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0ae41878053f6703' or one of its dependencies. The system cannot find the file specified.WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Result StackTrace

This error occurred to me when i try to test a SharePoint emulator with a test project.I tried in many ways and it is a simple code; but i wonder why it is  giving this error. i but the dlls to bin and did various things but nothing worked for me. then what i did was

1. First Uninstall the existing emulator from the project (By navigating to NuGet Manger).

1 

2. Then change the Test Project Framework to 3.5 and reinstall the Sharepoint.Emulator using NuGet manager.

Then it worked.

Note: after installing Sharepoint.Emulator in 3.5 i again change the framework to 4.0. and the project still works.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Melick

Sri Lanka Sri Lanka
No Biography provided

Comments and Discussions

 
GeneralMy vote of 4 PinmemberJustin Stenning21-Mar-13 14:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 3 Mar 2013
Article Copyright 2013 by Melick
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid