How to enable Unobtrusive Client Validation using JQuery in ASP.NET 5

In previous versions of ASP.NET MVC we have enable unobtrusive client side validation using JQuery in simple way by adding two keys in AppSettings of your config file: <configuration> <appSettings> <add key=”ClientValidationEnabled” value=”true” /> <add key=”UnobtrusiveJavaScriptEnabled” value=”true” /> </appSettings> </configuration>   In ASP.NET MVC 6 process of enabling client side validation is even more simpler. […]

Getting user-friendly routes with Aurelia in ASP.NET 5

If you want to use Aurelia framework inside ASP.NET 5 application you have a great tutorial from Scott Allen that will help you to jump start. When you finish configuring Aurelia app files to reside in wwwroot folder of your ASP.NET 5 application you can run Aurelia app easily by typing for example http://localhost:5000/index.html The problem […]

Using classic ADO.NET in ASP.NET 5

For some projects where performance makes a difference we usually use classic ADO.NET approach instead of EntityFramework or some other modern way to communicate with the database. In this post I will try to explain how to fix some common issues with using ADO.NET in ASP.NET vNext. If you have created ASP.NET 5 or ASP.NET […]

Read Config file in ASP.NET 5

ASP.NET vNext has a new configuration system. With the new version of ASP.NET more than one file type is supported. Currently, there are 3 different file types that are supported: Json, Xml and Ini. For example, we can define connection string in config.json file: { “Data”: { “DefaultConnection”: { “ConnectionString”: “Server=(localdb)\\mssqllocaldb;Database=DbName;Trusted_Connection=True;MultipleActiveResultSets=true” } } } You […]

ASP.NET Identity 2.1 implementation for MySQL


In this blog post I will try to cover how to use a custom ASP.NET identity provider for MySQL I have created. Default ASP.NET Identity provider uses Entity Framework and SQL Server to store information’s about users. If you are trying to implement ASP.NET Identity 2.1 for MySQL database, then follow this guide. This implementation […]

Don’t read Non-Fiction, never!


I just read few non-fiction books. I wanted to share my experience with you. After reading few non-fiction books in short period of time I have realized that only a fraction of the information in these books is important. If we apply the Pareto principle to this: 20% of Non-Fiction book produce 80% value of […]

Fixing issue with HTTPClient and ProtocolViolationException: The value of the date string in the header is invalid

When you parse a large number of sites / RSS feeds using Microsoft HTTPClient or WebClient you can get an exception :”ProtocolViolationException: “The value of the date string in the header is invalid” This error usually occurs when you try to access LastModified date in a response. var response = (HttpWebResponse)httpRequest.GetResponse(); var lastModified = response.LastModified; […]

1 2 3 7