Hmm... I'm not entirely sure. I know VS 2003 utilizes an older .NET Framework. However, that shouldn't matter with what you're doing. Could you post the exact code you're using?

Also, when it does error, does the compiler point to a specific line? If so, which line?