Articles
Solved: Unable to resolve service for type microsoft.extensions.logging.ilogger
Table of contentsThe ProblemCommon Steps to ReproduceThe Solution The Problem A runtime error is triggered when using the Microsoft ILogger class in your .Net applications. System.InvalidOperationException: 'Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger' Common Steps to Reproduce Configuration 1 Console application Main configuration var services = new ServiceCollection() .AddLogging(logging =>... Read More
A Beginners Guide to GraphQL Dotnet CancellationToken
In the early 2000s, the REST API gained much fame in the technology sector due to its multipurpose functionality and responsiveness. However, despite the increased usage, the developer community encountered an issue of over-fetching data points. The data holds core importance in any web or mobile application. Apart from it,... Read More
The Best Practices for Exception Handling in C#
No matter how efficient your software application runs, one exception due to bad code can crash the application and make it unavailable for even millions of users. That is simply why exception handling is a critical requirement for any code. This article explains the best practices you should follow when... Read More