Prior versions of ASP.NET Core 1.0, have custom errors for error handling. With ASP.NET Core 1.0 and MVC, you can do the error handling via Middlwares. HTTP 404 is a very common error which comes when server can’t find the requested resource. In this post, we will see different ways to handle HTTP 404 error in ASP.NET Core 1.0 and MVC.
Read More
How to use image tag helper in ASP.NET Core MVC 1.0
Tag helpers are one of the new features in ASP.NET Core MVC 1.0 and previously I posted about how to use select tag helper in ASP.NET MVC Core 1.0. Image tag helper is an alternative for Html.Image
. And in this post, we will see how to use image tag helper in ASP.NET Core MVC 1.0.
Read More
Difference between Angular 1.x and Angular 2
Angular 2 is still in beta (at the time of writing this post), but it has already created a buzz in community. Angular 2 will be a huge learning curve for developers. It is written entirely in Typescript and meets the ES6 specification. And it’s not an update for Angular 1.x. As it’s rewritten and includes breaking changes. So the best way to learn is to compare with Angular 1.x and find out what’s new in Angular 2. In this post, find out difference between Angular 1.x and Angular 2.
Read More
How ASP.NET Core 1.0 Middleware is different from HttpModule
Earlier I posted about changes in ASP.NET Core 1.0 and one of the biggest change is in HTTP pipeline. We as ASP.NET developers are quite familiar with HttpHandler
and HttpModules
but with this new version of ASP.NET, they are gone. They are replaced with a new better, cleaner and easy to implement approach called “Middleware“. You can think of Middleware is a combination of HttpHandler
and HttpModule
. In this post, find out how ASP.NET Core 1.0 Middleware is different from HttpModule.
Read More
Difference between ASP.NET MVC 5 and ASP.NET MVC Core 1.0
The best way to learn new technologies is via comparing with the old and find out what has changed. In this post, find out the difference between ASP.NET MVC 5 and ASP.NET MVC Core 1.0 aka ASP.NET MVC 6. The difference list is quite long as ASP.NET Core 1.0 is re-written. The basic of MVC still remains the same and we can say that from coding perspective there aren’t many changes but there are framework level changes, project structure changes, hosting and deployment changes and many more. So let’s dive in.
Empty bin folder in ASP.NET Core 1.0
In this short post find out fix of issue where after building your ASP.NET Core 1.0 project, you find empty bin folder. (BTW in ASP.NET Core 1.0, “bin” folder is now moved in “Artifacts” folder). You don’t find your compiled binaries anywhere in the system.
Read More
Creating a Nuget Package from Class library Package
If you are following the progress of ASP.NET Core 1.0, then you must have realized the list of new features of ASP.NET Core 1.0 is quite long. I tried to cover some of them in my earlier posts here and here. And one of the new feature was introduction of a new Class library (Package) project template. This new project template allows you to create Nuget package of your class library, instead of DLL.
Read More