-
ASP.NET MVC: How to use Apache’s log4net logging framework
This blog post will give an short overview of the steps needed to integrate the Apache log4net logging framework to an ASP.NET MVC 3 Web application. For simplicity, we are starting from a new ASP.NET MVC 3 Web application and choose the “Internet Application” template to have some default controllers and views. To include the […]
-
ASP.NET MVC 3: How to use the Unit of Work pattern with Unity 2.0
Update 2013-04-18 I’ve updated the EndRequest event handler to only commit the changes if no error occurred in the current HTTP request. In one of my last post, I showed how to set up the Unity 2.0 dependency injection container in an ASP.NET MVC 3 web application. In this post, I will show how to […]
-
ASP.NET MVC 3: How to stream files to clients
Streaming files to the client is very easy using ASP.NET MVC 3: The following code snippet shows an exemplary controller action “Download” that streams data to the client. If the client requests this action (e.g. by using the link [YOUR_CONTROLLER]/Download) the browser will (depending on it’s settings) start downloading the data or open the download […]