Search results
Suggest a FeaturePDF

How to resolve InvalidOperationException when creating a new application

Add the MemoryCache in startup file to resolve the InvalidOperationException when creating the new ASP.NET core application. You can find the following code for your reference.

public void ConfigureServices(IServiceCollection services)
{
    services.AddMemoryCache();
}
Having trouble getting help?
Contact Support
Having trouble getting help?
Contact Support