How To Building Microservices with ASP.NET Core

ReviewCoreASPHosting.NET | Best and cheap ASP.NET Core hosting. There are several reasons why it makes sense to build super-lightweight HTTP services (or, despite all the baggage the word brings, “microservices”). I do not need to go into all the operational or architectural benefits of such approach to system development, as it has been discussed a lot elsewhere. It feels natural that when building such HTTP services, it definitely makes sense to keep the footprint of the technology you chose as small as possible, not to mention the size of the codebase you should maintain long term. In this point I wanted to show a couple of techniques for building very lightweight HTTP services on top ASP.NET Core, without the use of any framework, and with minimal code bloat.Prerequisites What I’ll be discussing in this article is based on ASP.NET Core 1.2 packages which at the time of writing have not shipped yet. I am using the CI feed of ASP.NET Core, so my Nuget.config...
Read More
Server implementations in ASP.NET Core

Server implementations in ASP.NET Core

ReviewCoreASPHostingg.NET | Best and cheap ASP.NET Core 1.0 Hosting. An ASP.NET Core application runs with an in-process HTTP server implementation. The server implementation listens for HTTP requests and surfaces them to the application as sets of request features composed into an HttpContext. ASP.NET Core ships two server implementations:Kestrel is a cross-platform HTTP server based on libuv, a cross-platform asynchronous I/O library. WebListener is a Windows-only HTTP server based on the Http.Sys kernel driver.Kestrel Kestrel is the web server that is included by default in ASP.NET Core new-project templates. If your application accepts requests only from an internal network, you can use Kestrel by itself.If you expose your application to the Internet, we recommend that you use IIS, Nginx, or Apache as a reverse proxy server. A reverse proxy server receives HTTP requests from the Internet and forwards them to Kestrel after some preliminary handling, as shown in the following diagram.The most important reason for using a reverse proxy for edge deployments...
Read More
How to Setting ASP.NET Core RC 2 for TypeScript Development

How to Setting ASP.NET Core RC 2 for TypeScript Development

ReviewCoreASPHosting.NET | Best and cheap ASP.NET Core RC 2 hosting. Whether you are starting with Angular 2 and TypeScript or pure TypeScript development in with ASP.NET Core project, you will need to setup Visual Studio project to developer the code in.  In this post I will describe how easy it is to do so. First of all, you will need to install Visual Studio 2015.  You can use Community edition if you do not have MSDN subscription.  Then you need to install RC 2 of .NET Core.  We are ready to begin. Start by creating a new project in VS.  You will need to pick ASP.NET Core Web App under .NET Core node as you can see on the screenshot below.On the next page just pick Empty Application for now.  Then give it a minute for project to be created. Now we need to configure TypeScript.  Right-click on the project (not solution), pick new item, then find TypeScript JSON Configuration File from item...
Read More
How To Authentication ASP.​NET Core for your Web API and Angular2

How To Authentication ASP.​NET Core for your Web API and Angular2

ReviewCoreASPHosting.NET | Best and cheap ASP.NET Core 1.0 hosting. So today we will explains about Authentification ASP.NET Core. Authentication in a single page application is a bit more special, if you just know the traditional ASP.NET way. To imagine that the app is a completely independent app like a mobile app helps. Token based authentication is the best solution for this kind of apps. In this post I'm going to try to describe a high level overview and to show a simple solution. There are many ways to protect your application out there. The simplest one is using an Azure Active Directory. You could also setup a separate authentication server, using IdentityServer4, to manage the users, roles and to provide a token based authentication. And that's the key word: A Token Based Authentication is the solution for that case. With the token bases authentication, the client (the web client, the mobile app, and so on) gets a string based encrypted token after a...
Read More
Problem Troubleshooting when Install ASP.NET Core 1.1

Problem Troubleshooting when Install ASP.NET Core 1.1

ReviewCoreASPHosting.NET | Best and cheap ASP.NET Core 1.1 hosting. I was planning on playing with the latest .NET Core 1.1 preview recently, but I ran into a few issues getting it working on my Mac. As I suspected, this was entirely down to my mistakes and my machine's setup, but I'm documenting it here in case any one else runs into similar problem! Note that as of yesterday the RTM release of 1.1 is out, so while not strictly applicable, I would probably have run into the same problems! I've updated the post to reflect the latest version numbers.TL;DR; There were two issues I ran into. First, the global.json file I used specified an older version of the tooling. Second, I had an older version of the tooling installed that was, according to SemVer, newer than the version I had just installed! Installing ASP.NET Core 1.1 I began by downloading the .NET Core 1.1 installer for macOS from the downloads page, following the...
Read More
How To Reset Password in Windows Server 2016

How To Reset Password in Windows Server 2016

ReviewCoreASPHosting.NET | Best, cheap and Reliable Windows Server 2016 hosting. Windows Server 2016 brings a host of new features that greatly enhance the functionality of the operating system. Many of these improvements expand on existing capabilities of Windows Server 2016.  The new product also benefits from having the capability of performing at a much higher level than previous servers and comes equipped with an integrated virtualization platform.In this article I will tell you about how to reset Windows Server 2016 R2 lost admin password. The answer is not absolute. For example, if you have password reset disk or another administrator available, Windows server 2016 r2 lost admin password would be reset instantly. Or if you have backup Windows system status with disk, such as Windows system restore disc, you could restore Windows server 2016 r2 to early system point. Even though there are not anything available for recovering server 2016 r2 password, Windows system 2012 r2 installation disk and third-party recovery tool...
Read More
How To Migrating from ASP.NET 5 RC1 to ASP.NET Core 1.0

How To Migrating from ASP.NET 5 RC1 to ASP.NET Core 1.0

ReviewCoreASPNETHosting.NET | Best and cheap ASP.NET Core 1.0 hosting. ASP.NET 5 RC1 apps were based on the .NET Execution Environment (DNX) and made use of DNX specific features. ASP.NET Core 1.0 is based on .NET Core, so you must first migrate your application to the new .NET Core project model.Update Target Framework Monikers (TFMs) If your app targeted dnx451 or dnxcore50 in the frameworks section of project.json, you must make the following changes: [su_table]DNX .NET Corednx451 net451dnxcore50 netcoreapp1.0[/su_table] .NET Core apps must add a dependency to the Microsoft.NETCore.App package:"dependencies": { "Microsoft.NETCore.App": { "version": "1.0.0", "type": "platform" }, Namespace and package ID changesASP.NET 5 has been renamed to ASP.NET Core 1.0 ASP.NET MVC and Identity are now part of ASP.NET Core ASP.NET MVC 6 is now ASP.NET Core MVC ASP.NET Identity 3 is now ASP.NET Core Identity ASP.NET Core 1.0 package versions are 1.0.0 ASP.NET Core 1.0...
Read More