Write your First API with ASP.NET Core and Entity Framework Core

In this post I will quickly describe how to create a simple API in ASP.NET Core that supports a set of CRUD operations on a database.  Before we get started, make sure to download and install ASP.NET Core on your machine.  You can find the installer here.  Let’s get started. Start Visual Studio and create …

Continue reading ‘Write your First API with ASP.NET Core and Entity Framework Core’ »

Setting Up VS 2015 for ASP.NET Core RTM 1.0 and Angular 2 RC 3

In this post I will explain how to setup Visual Studio 2015 in order to develop an Angular 2 RC3 application hosted inside ASP.NET Core project.  I of course read the quick start first.  You need to make sure to install VS 2015, you can use Community edition of you want.  You would also need …

Continue reading ‘Setting Up VS 2015 for ASP.NET Core RTM 1.0 and Angular 2 RC 3’ »

Setting Up VS 2015 for ASP.NET Core RC2 and Angular RC

In this post I will explain how to setup Visual Studio 2015 in order to develop an Angular 2 RC application hosted inside ASP.NET Core project.  I of course read the quick start first.  You need to make sure to install VS 2015, you can use Community edition of you want.  You would also need …

Continue reading ‘Setting Up VS 2015 for ASP.NET Core RC2 and Angular RC’ »

Setting ASP.NET Core RC 2 for TypeScript Development

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.  …

Continue reading ‘Setting ASP.NET Core RC 2 for TypeScript Development’ »

Getting Started with Elastic Search in .NET

I have been working on many application during my career.  Many if not all had some searching capabilities.  The more complex the search got, the harder it was to control its performance and impact on database transactions.  If you also would like to support full text search, your problems become larger.  We could use Full …

Continue reading ‘Getting Started with Elastic Search in .NET’ »

Setting up Reverse Proxy for Web Api in IIS

Say, you are are working on a web application that includes Web Api and a client component, such as Angular.  It is time for you to deploy the app onto front facing web server in DMZ.  Your friendly security guy comes over and say “You cannot reach into our database server from DMZ.  Figure something …

Continue reading ‘Setting up Reverse Proxy for Web Api in IIS’ »

Troubleshooting Assembly Binding

Today I was testing something with third party assemblies in our web site and saw a familiar error: Could not load file or assembly ‘XXXX.DLL’ or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for …

Continue reading ‘Troubleshooting Assembly Binding’ »

Git Extensions for Visual Studio and .gitignore

I have been using Git extensions with Visual Studio 2015 for a while.  I started a new .NET Core sample project recently, set it up with Visual Studio and did a few checks ins.  Then I wanted to exclude wwwroot folder, so I added it to the .gitignore file.  However, the files from that folder …

Continue reading ‘Git Extensions for Visual Studio and .gitignore’ »

Elastic Search Stuck in Recovering Phase

We have been working with Elastic Search for a number of months now.  We noticed that sometimes CPU spikes to 100% for a single index and the only way to solve the issue is to delete and rebuild the index.  Last time this happens to me  I decided to dig deeper.  What I found that …

Continue reading ‘Elastic Search Stuck in Recovering Phase’ »