i am trying to upgrade nopcommerce from 4 to 4.6 and i am using custom plugin
and need to upgrade it too.
whene i am trying to call its component from Nop.Web
it rais error
InvalidOperationException: A view component named 'PayTabsViewComponent' could not be found. A view component must be a public non-abstract class, not contain any generic parameters, and either be decorated with 'ViewComponentAttribute' or have a class name ending with the 'ViewComponent' suffix. A view component must not be decorated with 'NonViewComponentAttribute'.
my ViewComponent is
[ViewComponent(Name = "PayTabsViewComponent")]
public class PayTabsViewComponent : NopViewComponent
{}
and my code in view is
@await Component.InvokeAsync("PayTabsViewComponent")
how he can get this component from plugin as i didnt had the referance of this plugin inside Nop.Web.
how to fix this?
thanks