Getting to know the new ASP.NET 5 configuration framework

.NET applications traditionally relied on System.Configuration components for accessing and managing configurations from the machine wide settings down to application and user settings. The components were designed to work with XML based configuration files. Although you can easily extend the files with custom sections you are bound to a standard way of doing configuration. This is a good thing »

Doing async the right way

I’ve stumbled upon a couple of methods in the server side code of a project I happened to be involved in that were trying to accomplish their tasks in an asynchronous manner but in a way that made me want to fix them right away when I saw them. Both methods belonged to the data layer of the server »

What if you need to run a plug-in in full trust?

In my initial scratch of the Skinner I unwillingly ignored the security issues and the resulting code is only going to work in a full trust environment. There are few things that raise a security concern: we need to scan for available skins in arbitrary directories (initial version of Skinner used MEF to do the job); as we require a »

Reading ad-hoc JSON string in .NET

If you’re a web developer you’re probably familiar with System.Web.Script.Serialization.JavaScriptSerializer that's heavily used by ASP.NET AJAX framework and of course you can use it to convert managed objects to JSON so it can be consumed by JavaScript. Also, since .NET 3.5 there is System.Runtime.Serialization.Json namespace that includes DataContractJsonSerializer that »

Uploading a file over HTTP in .NET

You program a client that needs to upload a file to the server. What are the options? You should probably look into System.Net namespace where you can either program at WebRequest/WebResponse level or make use of one of the convenient methods on the WebClient class. The 1st approach is described here and WebClient provides a bunch methods with »