Friday, July 14, 2017

IntelliSense error on Sitecore webforms sublayouts

Inside all sublayouts of an existing Sitecore visual studio solution the IntelliSense was not working and the control definition was underlines in blue with the following message:
ASP.NET runtime error: Could not load file or assembly 'System.Web.Http, Version, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of it's dependencies. The system cannot find the file specified.
The DLL was references in the web.config file, but not as a direct reference in the solution. It turned out the the System.Web.Http (and related DLLs) were missing in the bin project of the solution. Copying them over from a working version of the solution to the affected machine fixed the error.

No comments:

Post a Comment