Grow Your ASP.NET Website with ASPHostPortal

This trustworthy seller lost out on a sale due to a bad user experience, specifically a slow website. This is both a significant and solvable issue. In fact, Google has long claimed that a website’s ranking in its search engine results pages (SERPs), particularly on mobile devices, depends on a variety of factors, including how […]

Read more
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: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:4200’ is therefore not allowed access. The […]

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
Why HostForLIFE.eu for Your ASP.NET Hosting in 2023?

When working as a web developer, it is important to use the most updated software and tools in order to provide the best service for your clients. While there are plenty of options that you can use for ASP.NET hosting, HostForLIFE.eu hosting has emerged as one of the most beneficial options you can use. With […]

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 Solve Refresh Tokens in ASP.NET Core Web Api

One thing that comes to mind when using access tokens to secure a web api is what do you do when the token expires? Do you ask the user for credentials again? That’s not really a good option. This blog post is about using refresh tokens to solve this problem. Specifically in ASP.NET Core Web […]

Read more
The Difference Between Middleware and Filters Power in ASP.NET Core

In ASP.NET core, Middleware and Filters are two concepts which are very useful & powerful but often confuses also on which one to choose. Middleware and Filters serves similar purpose and both can be used to achieve the common tasks like exception handling, localizations, authentications etc… but both has certain difference in a way it […]

Read more