❔ Razor Pages Session for revalidating Page Model
Can someone help me to configure the Session for Razor Pages, that I can use
TryValidateModel()
?
is throwing a InvalidOperationException: Session has not been configured for this application or request.
error?
I can't find any hint about the online
https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.razorpages.pagemodel.tryvalidatemodel?view=aspnetcore-7.0
The debugger is actually stepping over it, but the trace says:
The server side page Post method looks like this:
PageModel.TryValidateModel Method (Microsoft.AspNetCore.Mvc.RazorPa...
Validates the specified model instance.
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.