WPF. Host your own Web Server in your application using IIS 7.0 Hostable Web Core - CarlosAg Blog. IIS 7.0 includes a very cool feature that is not so well known called Hostable WebCore (HWC).
This feature basically allows you to host the entire IIS functionality within your own process. This gives you the power to implement scenarios where you can customize entirely the functionality that you want "your Web Server" to expose, as well as control the lifetime of it without impacting any other application running on the site. This provides a very nice model for automating tests that need to run inside IIS in a more controlled environment.
This feature is implemented in a DLL called hwebcore.dll, that exports two simple methods: WebCoreActivate. Drools.Net - Home. Using Git with Visual Studio.