Live Chat Icon For mobile
Live Chat Icon

Issue—Blazor – System.InvalidOperationException: Object of type

Platform: Blazor| Category: Troubleshooting

‘BlazorDataBinding.Pages.Counter’ has a property matching the name ‘IncrementValue’, but it does not have [ParameterAttribute] or [CascadingParameterAttribute] applied.

You must mention the [Parameter] attribute for the component attributes.

 [Parameter]
 private int IncrementValue { get; set; } = 5; 

Share with

Share on twitter
Share on facebook
Share on linkedin