For a typical .NET developer, building a distributed application of web pages and services involves using IIS. But do you really need a full blown web server like IIS? Building a functional distributed application outside IIS is possible and quite easy. Inspired by lightweight frameworks like Java's Jetty and Python's Bottle, we'll look at creating lightweight sites and services in .NET using NancyFx. We'll see how using lightweight frameworks allow you to focus on your business logic without letting heavyweight frameworks and processes get in the way. This hands on lab will get you started with a self-hosted NancyFx application. We'll also look at incorporating Razor views, Forms Authentication, default error pages, dependency injection, and much more.
David Hoerster, a C# MVP, is a recovering corporate financial analyst and has been working with the Microsoft .NET Framework since the early 1.0 betas. He is the co-founder of BrainCredits (www.braincredits.com), a recent start-up that is hoping to change the way people learn on the web. David is an organizer of Pittsburgh TechFest, the organizer of Pittsburgh SteelCloud (a distributed application meetup), the former president of the Pittsburgh .NET User’s Group (PGHDOTNET) and is also an occasional speaker at Pittsburgh and regional user group events and conferences. David can be found rarely blogging at http://geekswithblogs.net/DavidHoerster and also is an occasional Tweeter (@DavidHoerster).