Custom Output Caching in ASP.NET Core

Background Once a page has been cached in the browser (or proxy), the server cannot make the cached copy be utilized in place of the updated version. Pages that are likely to change cannot, therefore, be cached at the client for very long. There is nothing we can do to change this. We should have […]

Read more
4 Simple Steps to Deploy ASP.NET Core in IIS

Deploying an ASP.NET Core app to IIS isn’t complicated. However, ASP.NET Core hosting is different compared to hosting with ASP.NET, because ASP.NET Core uses different configurations. IIS, on the other hand, is a web server that utilizes the Windows OS and the ASP.NET framework. IIS’s function in this situation is to host ASP.NET Core-built apps. […]

Read more
How to Fix No ‘Access-Control-Allow-Origin’ .NET API CORS

In this article, I will discuss about the error message that you might found when calling a CORS protected .NET Core Api. The following is the full error message:

How to Fix Error No ‘Access-Control-Allow-Origin’ 1. Allow Method “Options” A preflight request is one that the browser sends to see if the CORS settings […]

Read more
How to Use ASP.NET Identity in a Console Apps

Your apps may implement authentication quite easily with the help of Microsoft’s ASP.NET framework. Hardly little has to be done to create a standard web application. You need to do little more than tick a few boxes to proceed. You may not be aware, though, that ASP.NET user authentication may be added to console applications. […]

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
How to Build Web Application Using Blazor

This tutorial introduces the Blazor framework by guiding you in building a simple Web application with C#. What Is Blazor? Blazor has been gaining in popularity, especially after the release of .NET Core 3.0, which enriched it with many interesting features. Subsequent versions of .NET consolidated its foundations, and the interest around it is growing so […]

Read more