Quantcast
Channel: All About ASP.NET and ASP.NET Core 2 Hosting BLOG
Browsing all 427 articles
Browse latest View live

ASP.NET Core Hosting - Understanding File uploads in ASP.NET Core

Uploading file or image in ASP.NET Core is very easy. ASP.NET MVC actions support uploading of one or more files using simple model binding for smaller files or streaming for larger files. In this...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core 2 Hosting :: How to Create Simple Shoutbox Using ASP.NET Core...

ASP.NET Core 2 comes with Razor Pages that allow developers to build simple web applications with less overhead compared to MVC. The emphasis is on the word “simple” as Razor Pages doesn’t come with...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core 2 Hosting :: How to Fix Error 502.5 When Deploy Your ASP.NET Core

I decide to make this tutorial as most of our users also experience same problem when deploying their ASP.NET Core application. I recently hit this problem after manually modifying the web.config file....

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core Hosting :: How to Fix Error "An error occurred while starting...

Previously, we have written tutorial about how to fix 502.5 error that you face when publishing your ASP.NET Core application. Another issue that you might face when publishing your .net Core...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Hosting :: How to Setup URL Redirection

We have so many clients asking about this issue. So, we decide to write this tutorial and hope this information can help other people too. In this review, we will write simple tutorial about how to...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core Hosting :: Differences Between Kestrel and IIS Features

The Kestrel web server is a new web server as part of ASP.NET Core. It is now the preferred web server for all new ASP.NET applications. In this article, we will review what it is, how to use it, and...

View Article

ASP.NET Core Hosting :: How to Use StructureMap with ASP.NET Core

This example shows how to use Structuremap dependency injection framework with ASP.NET Core instead of framework-level dependency injection.ADDING STRUCTUREMAP TO ASP.NET CORE PROJECTFor Structuremap...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core Hosting :: 5 Reasons to Use ASP.NET Core

When it comes to web application development, there are multiple technologies available to choose from. There are open-source technologies like Java & PHP, and then, there is closed-source...

View Article


ASP.NET Hosting :: Alternative Localization for Asp.Net Core Applications

Asp.Net Core Built-In SupportThis is code fragment from official documentation how to localize content using built-in functionality.App Content Localization[Route("api/[controller]")]public class...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core Hosting :: How to Add Custom Processing to Request in ASP.NET

When a request comes in to your ASP.NET site, it's routed through a series of message handlers (in ASP.NET Web API) or modules (in ASP.NET MVC), each of which performs some operation on the request....

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core Hosting :: How to Implement Action Filters in ASP.NET Core

Filters in .NET offer a great way to hook into the MVC action invocation pipeline. Therefore, we can use filters to extract code which can be reused and make our actions cleaner and maintainable. There...

View Article

ASP.NET Core Hosting :: How to Set Headers and HTTP Status Codes in ASP.NET Core

I was working on an interesting issue in an ASP.NET Core recently. An external framework was responsible for creating an HTTP Response, and I was only in control of a little component that customized...

View Article

ASP.NET Core Hosting :: How to Send and Receive Email in ASP.NET Core Using...

Creating An Email ServiceIt’s always good practice that when you add in a new library, that you build an abstraction on top of it. If we take MailKit as an example, what if MailKit is later superceded...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core 3 Hosting :: ASP.NET Core 3 Preview

ASP.NET Core 3.0 App with .NET Core 3.0 preview 2 releaseBefore we create the application, first we need to install Visual Studio 2019 and .NET Core 3.0. Let’s first install .NET Core 3.0...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core MVC Hosting :: Dependency Injection Into Actions in ASP.NET Core...

In this tutorial, we will see configuration about dependency injection into actions in ASP.NET Core MVC 2.1The basic ideaJust in case what we are trying to achieve here is not obvious yet, here is an...

View Article


ASP.NET Core Hosting :: How to Access HttpContext Outside of Framework...

When developing web applications with ASP.NET, it is common to end up in situations where you require access to HttpContext. This wouldn’t be anything special, but outside of the context of framework...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core Hosting :: In Proces Hosting ASP.NET Core Applications

We discussed about ASP.NET MVC Core 2.1 and discussed some internal details about its deployment on IIS as a reverse proxy (which is recommended), and also took a look on using Kestrel as an Edge...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET Core Hosting :: How to Setup Project in IOptionsSnapshot using...

In this article, I want to explore IOptionsSnapshot and show how to work with IOptionsSnapshot in ASP.NET Core 1.1.We will use the dot-net CLI to create a new project and configure it using the reload...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core 3.0 Hosting :: An Early Look at gRPC and ASP.NET Core 3.0

In this post, I want to introduce my very early experience (after a few hours of experimentation) of gRPC and ASP.NET Core 3.0. I’ve conducted some experiments as part of our quarterly Madgex hack day....

View Article

ASP.NET Core Hosting :: How to Produce HTTP Response in ASP.NET Core Outside...

ASP.NET Core 2.1 introduced support for a little (or, should I say, not at all) documented feature called IActionResultExecutor<T>. It allows us to use some of the action results -those that we...

View Article
Browsing all 427 articles
Browse latest View live