In the umbraco 8 we did't find 'UmbracoHelper' does not contain a definition for 'Web' and no accessible extension method'
Severity Code Description Project File Line Suppression State
Error CS1061 'UmbracoHelper' does not contain a definition for 'Web' and no accessible extension method 'Web' accepting a first argument of type 'UmbracoHelper' could be found (are you missing a using directive or an assembly reference?)
Please help me.
We can use Umbraco Helper in the controller like below, if you want to use the helper in any services then you can pass it from the controller.
public async Task<HttpResponseMessage> Gender()
{
//Umbraco - you can access umbracohelper from Controller (and it's referenced from Umbraco.Web)
return Umbraco.GetDictionaryValue("Gender Male", "Male")
}
In the umbraco 8 we did't find 'UmbracoHelper' does not contain a definition for 'Web' and no accessible extension method'
Severity Code Description Project File Line Suppression State Error CS1061 'UmbracoHelper' does not contain a definition for 'Web' and no accessible extension method 'Web' accepting a first argument of type 'UmbracoHelper' could be found (are you missing a using directive or an assembly reference?) Please help me.
Hey,
We can use Umbraco Helper in the controller like below, if you want to use the helper in any services then you can pass it from the controller.
Regards DK ;)
is working on a reply...