George V. Reilly

Building a REST Web Service, day 1

The REST Triangle

My first project at Cozi is to build a simple REST-style Web Service. Nobody here has done that before.

The first thing that I’m trying to get going is a simple URL rewriter, using an ASP.NET HttpModule.

I’m running Vista as my de­vel­op­ment desktop for the first time. So far, not bad, but there are lots of new quirks to get used to. I’ve been a good boy so far and I’ve left the User Access Control stuff enabled, so that I’m not running with ad­min­is­tra­tive privileges by default.

It’s my first exposure to IIS 7. I must say that the IIS UI is much improved (a low bar to surmount).

My first problem was that Skype was squatting on port 80, preventing browser requests going to localhost. This happens to me about once a year on a new dev machine, and I always forget.

To get the HttpModule going, I had to follow Mark Rasmussen’s detailed in­struc­tions on making URL rewriting on IIS 7 work like IIS 6. The code will be deployed on Windows Server 2003, so IIS 6 com­pat­i­bil­i­ty is more important to me than IIS 7 purity.

I was trying to get some debug output appearing in DebugView, but my Trace.WriteLines were not showing up. Some Googling eventually showed me that I had to enable Capture Global Win32, which I never had to do before. Presumably because ASP.NET is executing in a different desktop session.

blog comments powered by Disqus
Review: The Honourable Schoolboy » « Review: Rumpole and the Penge Bungalow Murders