Contributing to ASP.NET 5 Documentation

If you’re looking to learn ASP.NET 5, the best place to start today is the documentation site at It’s hosted on ReadTheDocs and the source is all in GitHub (/aspnet/docs). Since it’s all open source, you can contribute to the documentation yourself, which is a great way to learn ASP.NET 5 and help your […]

Using Reverse Package Search in ASP.NET Core

Using Reverse Package Search in ASP.NET Core

ASP.NET 5 provides a much more granular way of specifying the dependencies your applications has. This is done in the project.json file, like so:

But what happens if you can’t remember where some package is located? Maybe you’re building an ASP.NET 5 application and you want to add logging to it. You remember that […]

Find Debug Assemblies using Glimpse

Find Debug Assemblies using Glimpse

A new feature in Glimpse.AspNet 1.9.2 will display whether each assembly in your web site’s bin folder was compiled in Debug or Release mode. At development time, Debug mode is fine, but you want to avoid shipping Debug assemblies to production since there are performance costs associated with these assemblies.  You can determine for yourself whether […]

Wiring Up TimeAgo and ASPNET MVC

Imagine you want to display something on a page so that instead of raw dates, the user is shown something more relative to the current time. You’ve probably seen this in some of the applications you use. “Last Updated: A moment ago” or “about an hour ago”. There are a variety of ways you can […]

Favor Privileges over Role Checks

A very common practice in web applications, especially those written using the ASP.NET built-in Role provider (circa ASP.NET 2.0 / 2005), is to perform role checks throughout the code to determine whether a user should have access to a particular page or control or command. For instance, you might see something like this:

The […]

Beyond Role Based Authorization in ASPNET MVC

A fairly frequent requirement in applications is to check for authorization to perform an action. At the most basic level, this might just involve seeing if the user is authenticated (at all) or checking a flag to see if they are an Admin. However, more complex requirements frequently include a variety of roles, and it’s […]