Localization in ASP.NET Core 1.0 and MVC 6

Previous ASP.NET localization approach was quite old. It was just based on resources and there was nothing wrong with this but lot of projects uses other sources of localized texts (for example database). In ASP.NET Core 1.0 it’s completely rewritten! Configuring Localization middleware The localization is configured in Startup class, where we need to enable Localization middle…

By Dawid on (tags: asp.net core 1.0, localization, mvc6, categories: code)

Error handling in ASP.NET 5

There is a lot of changes since MVC5 regarding error handling. I will show you how to catch and handle some basic errors. Here is a nice article by Krzysztof about error handling in MVC5. First of all let me explain what “middleware” is…. or even better – here is the definition of middleware provided by OWIN from here: Middleware is our component which we can plug in to request…

By Piotr on (tags: ASP.NET5, error, mvc6, web, categories: web)