I came across this problem this week, and wrote about it here:
http://dotnetjunkies.com/WebLog/cbryan/articles/30388.aspx
Ah...the joys of changing jobs. I'm back to doing more C# coding after a stint of SQL Development. Yeah. Happy Happy, Joy Joy. Diving back into C#, I've been indebted to the blogging community and web sites in general for helping me come up to speed, so, to pay back, I'm going to start posting coding problems that I have encountered, and how I resolved them.