I\'m having this problem: No service for type \'Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory\' has been registered. In asp.net core 1.0,
In .NET Core 3.1, I had to add the following:
services.AddRazorPages();
in ConfigureServices()
ConfigureServices()
And the below in Configure() in Startup.cs
Configure()
Startup.cs
app.UseEndpoints(endpoints => { endpoints.MapRazorPages(); }