Monthly Archives: September 2013

AOP with ASP.NET Web Api

This blog demonstrates the usage of filters and unity interface interception with an ASP.NET Web Api application. AOP = Aspect oriented programming. This programming paradigm can be used to add functionality to existing methods. In the following example, we wrap the controller method with diagnosis using filters and then we wrap the business manager with […]

Windows 8 App using Unity 3 IoC

Unity.3.0.1304.1 now supports Windows 8 Apps with the Microsoft.Practices.Unity.NetCore assembly. This is a reduced set of features compared with the full version of Unity. This blog demonstates how this IoC container could be used with a default Windows 8 App. Step 1: Get Unity using nuget: Step 2: Create a UnityHelper class which will be […]

WiX installer with parameter configurations

This blog continues on from the previous WiX/installation/deployment blogs. WiX Installer for MVC4 Project WiX installer with PowerShell scripts Creating a silent msi for Semantic Logging OUT-OF-PROCESS service using WiX In all of these blogs, WiX was used to create the setup. This is a free tool which plugs into visual studio. When creating a […]

Turning off validation for properties in a MVC model

Sometimes it is required that some properties in a MVC model should not be validated, but the rest are required and should be validated in the client view. Mostly I cannot turn off client validation for all properties in the model. Here is an example of a Model class. I need to validate 2 properties […]

MVC Async File Upload

To use the upload html control inside an ajax request, the following steps need to be taken: Define an ajax function for the upload button Define the form for the upload Add the input file control to the form Handle the file in the MVC controller Return the json result, wrapped in a text item […]

WiX installer for MVC4 project

This example shows how a MVC4 solution can be setup together with a WiX installation project. To create a msi installer for a MVC4 project, the solution needs to be built, then the web project must be published, the WiX project harvests the published output and creates an msi installer. The solution is configured so […]

WiX installer with PowerShell scripts

WiX is used to create installers. This tool is integrated into visual studio and can be used in any build process or for automatic deployment. No matter how good you software is, if you don’t have a good release/deployment process, you will reduce your client satisfaction and have extra costs for each deployment. This is […]