How to Find System.Web.Helpers, System.Web.Webpages, and System.Web.Razor

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.

  1. Check referenced version of System.Web.Helpers.
  2. 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.
  3. 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 dlls . 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



Leave a reply



Submit