System.Web.Helpers not found in VS2015
This question is a bit old but here's a simple solution - Microsoft seemed to just move this library to a Nuget package called "microsoft-web-helpers". Installing that package seems to be equivalent to having the assembly.
System.Web.Helpers dll
System.Web.Helpers was released as part of ASP.NET Web Pages in 2010. It contains helpers for common tasks such as working with charts, images, caching as well has being the home of the WebGrid. While it is available from Nuget, the standard way that it was made available to Web Pages and MVC applications (MVC 3-5) was as part of the project template - hence the relatively low download numbers.
It depends on System.Web, which is part of the old .NET Framework, and is therefore not suitable for use in Razor Pages or any other type of .NET Core application.
Could not load file or assembly 'System.Web.Helpers' or one of its dependencies
Referenced version of System.Web.Helpers assembly in project may not be matching with version mentioned in web.config file. Follow below mentioned steps.
- Check referenced version of System.Web.Helpers.
- Check web.config file under root of web application and see if there is entry for System.Web.Helpers and verify its same as that of referenced version.
- Check web.config file under "Views" folder of web application and see if there is entry for System.Web.Helpers and verify its same as that of referenced version.
System.Web.WebPages.Html.HtmlHelper does not contain a defintion
Your error tells you what the problem is. Whatever DLL version you have for System.Web.Helpers in your references is not matching a project file somewhere. You can right click each project and Unload Project, then right-click again on the unavailable project and select Edit Project. Look for the System.Web.Helpers and make sure the version numbers are consistent through each project,
Error: Inheritance security rules violated by type: 'System.Web.WebPages.Razor.WebPageRazorHost'
From my friend Claudio Redi's comment the solusion of this problem is:
Try removing the System.Web.Razor assembly binding in the web.config if present. http://forums.asp.net/t/1968686.aspx?Installed+Nuget+package+Razor+Engine+whole+system+stops
why can't reference System.Web.WebPages and System.Web.Razor in a WPF project?
I don't know why , but by installing RazorGenerator.Templating through NuGet ,all errors disappear , and it's working now .
update :
I finally could find those dll
s . the solution is :
1- first I changed target framework
from .NET framework 4 client profile
to .NET framework 4
.
2- then scrolled down the list of .NET components
, passed first list of system.web.
.. , scrolled down , and I found a second list of system.web.
.. at the bottom , they were there .
I hope this could help others
Related Topics
Calling a Generic Method with a Dynamic Type
Remove Text In-Between Delimiters in a String (Using a Regex)
Get a Generic Method Without Using Getmethods
Replacing a Char at a Given Index in String
Wpf C# Path: How to Get from a String with Path Data to Geometry in Code (Not in Xaml)
JSON String to CSV and CSV to JSON Conversion in C#
Creating Delegates Manually VS Using Action/Func Delegates
Winforms | C# | Autocomplete in the Middle of a Textbox
Can't Get SQL Server Compact 3.5/4 to Work with Asp .Net MVC 2
Path.Combine Absolute with Relative Path Strings
Fast Creation of Objects Instead of Activator.Createinstance(Type)
Could Not Find an Implementation of the Query Pattern
Can't Convert Value Type Array to Params Object[]
Loading a Full Hierarchy from a Self Referencing Table with Entityframework.Core
How to Convert C# Nullable Int to Int
How to Check All Properties of an Object Whether Null or Empty