Tag Archives: asp.net

Minimalist’s build script for ASP.NET projects

When deploying ASP.NET web sites you have a number of options ranging from full blown (up) MSI installers, MSDeploy or the KISS option: xcopy deployment. If the target IIS set up this is a very clean way to redistribute your application. First download a 7za.exe archiver and put it in your solution root. Then create a [...]

How to: Simple Facebook login in ASP.NET

I’ve been looking all over the net for a simple and efficient way to use Facebook to handle authentication of users on my ASP.NET web site. I’ve looked at the DotNetOpenAuth project that has implemented an feature rich implementation of OpenID and OAuth, and sample code for Twitter. I didn’t find an easy way to [...]

ASP.NET XSLT Control

Here’s a highly scalable ASP.NET control that uses the fast Data Contract Serializer to generate XML for an object and transforms it using a cached instance of XslCompiledTransforms. I find it a very versatile little tool for generating content that doesn’t post back. using System; using System.IO; using System.Runtime.Serialization; using System.Text; using System.Web; using System.Web.Caching; [...]

URL Rewriting Module for WCF

Your WCF services have the .svc extension. So a request could be http://yourserver/golden.svc/echo/helloworld With this simple HTTP module for the IIS pipeline you can avoid the .svc extension, as it automagically adds it to redirects requests with no extension specified. public class ServiceRedirectorHttpModule : IHttpModule { public void Init(HttpApplication context) { const string dummyAuthority = [...]

Site refresh

Well I have no intention of the hassle with setting up Apache/php and installing Wordpress.net, so I built an HttpHandler to proxy the contents from my Wordpress blog to my web site, and modify the contents a bit on the way.

Follow

Get every new post delivered to your Inbox.