when i register other services it work like services.AddSingleton<GeneratingData, GeneratingData>() but when i add services.AddSingleton<ApplicationDbContext, ApplicationDbContext>(); it does work
this error shows up
enter image description here this is the code i write in startup file adding ApplicationDbContext for dependency injection