-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidOperationException: EditForm requires a Model parameter, or an EditContext parameter, but not both. #14869
Comments
You didn't create an instance of private ExampleModel exampleModel { get; set; } = new ExampleModel(); ... or assign it to |
@guardrex - What a really obscure exception message.. Thanks! |
Wow ..... yeah ... that number of 👍 means that devs are hitting this one BIG TIME. It needs special attention in the topic to avoid more 🤕 pain 🤕. |
The same issue!Who can help me? This Delete Page working well, but if for testing I want to delete the not existing row Id, I got the same issue @page "/IndOrg/ContactDelete/{CurrentID}" <AuthorizeView Roles="@admSer.GetRolesList("ContactDelete")" Context="authContext" >
@code{
} |
@khayol ... We don't have the staffing to provide product support. Open your question on one or more of the open dev support forums out there, such as ... |
var model = new BlazorTable();
|
I am using .NET Core 3.0.100 , Blazor Server web-app, Microsoft Visual Studio 2019 Community Preview.
I follow this guide https://docs.microsoft.com/en-us/aspnet/core/blazor/forms-validation?view=aspnetcore-3.0
File
ExampleModel.cs
and file
Foo.razor
I go to https://localhost:44333/foo
error
Raw exception detail
Maybe related to this content dotnet/aspnetcore#11331 (comment)
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: