Click here to Skip to main content
13,445,690 members (40,993 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


Posted 3 Mar 2013

Could Not Load File or Assembly 'System.Web.

, 3 Mar 2013
Rate this:
Please Sign up or sign in to vote.
Could not load file or assembly 'System.Web.
Test method VisualWebPartProject1Test.SPControllerTest.CreateListTest threw exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Web., Version=, 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 tried to test a SharePoint emulator with a test project. I tried in many ways and it was a simple code; but I wonder why it was giving this error. I put 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).


  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 changed the framework to 4.0 again. and the project still works.


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


About the Author

Sri Lanka Sri Lanka
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 4 Pin
Justin Stenning21-Mar-13 14:38
memberJustin Stenning21-Mar-13 14:38 

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

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

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01-2016 | 2.8.180314.2 | Last Updated 3 Mar 2013
Article Copyright 2013 by Melick
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid