I created the helper class
namespace SEM.API.Helpers
{
public static class Navigation
{
public static string BuildSomething(this HtmlHelper helper)
{
return "empty";
}
}
}
And added the namespace to webconfig <add namespace="SEM.API.Helpers" />
but I still getting an error:
CS1061: “System.Web.Mvc.HtmlHelper”
It isn’t solved after a lot of rebuilds
Make sure you did this in
~/Views/web.configand not in~/web.config.Another thing to try is to add the
@usingdirective to your view: