5 Ways to Redirect Request ASP.NET Core

In ASP.NET Core applications it is possible to redirect to a specific URL in several different ways. In this article, we will learn about these techniques and the code required to redirect a request in ASP.NET Core There will always be a need for redirection to another URL based on some conditions like redirecting a […]

Read more
How to Reduce Connection Pools Hitting Multiple Databases

Microsoft’s connection pooling built in to the .Net Framework greatly improves performance by allowing hundreds of database calls to share the same pool of connections used to connect to the database. The .Net Framework creates a new pool of connections for each unique connection string. This works fantastic when your web application connects to a […]

Read more
How to Make Your ASP.NET Application Pool Keep Alive

Somehow what you need is to have IIS keep website alive. You need to keep your ASP.NET website and application pool always running. Regardless of application pool, website, IIS web server, or the entire server restarting. Perhaps the main reasons could be that you need to initialize some code at the global asax at application start up. To fire […]

Read more
Choosing Right Cybersecurity for Your Business

Organizations frequently need to adjust and update their cybersecurity approach as environmental threats, and attack surfaces change. For increased cyber resilience, many companies rely on new resources, technologies, and collaborators. It is difficult to stay on top of the most recent threats, which are always evolving and becoming more complicated, and it can be difficult […]

Read more
How to Implement Distributed Cache in ASP.NET Core

A distributed cache is a cache shared by multiple app servers, typically maintained as an external service to the app servers that access it. A distributed cache can improve the performance and scalability of an ASP.NET Core app, especially when the app is hosted by a cloud service or a server farm. This article will […]

Read more
How to Send Email Using Gmail in ASP.NET Core

In previous post, I have explained how to send email using Mailkit in ASP.NET Core. In this post, I will explain about how to send email using Gmail in ASP.NET. The .NET framework has built-in namespace for handling email settings, which is System.Net.Mail namespace. In the following example, I’ll use two classes from the System.Net.Mail namespace: For email settings, […]

Read more
How to Use ILogger in .NET Applications to Trace Logging Output

.NET’s greatest strength is its long history of supporting developers through each industry paradigm shift, but just because there’s a new way of doing things doesn’t mean the established method goes away. It’s also a source of confusion and frustration for many. Developers spend time trying to merge the past with the present while also […]

Read more
How to Host ASP.NET Core Website with ASPHostPortal

In this article I will walk through the process of setting up an ASP.NET web application on a shared ASPHostPortal Windows server. I will mainly walk through a typical ASP.NET or .NET MVC deployment using shared hosting on ASPHostPortal. For me, it is very easy to use Windows hosting environment to publish ASP.NET Core application. […]

Read more
How to Fix Worker Process Shutdown in IIS

Internet Information Service (IIS) is a pain for developers and may cause more troubles for them on a shared host where they don’t have full access. One of the usual problems that I encounter is the IIS Application Pool’s Idle Timeout which I can’t update the settings due to insufficient permissions. Let’s see which problem […]

Read more