Thanks guys for your responses. I have installed VS2010 and everything is working fine now. /* I was using VS2005 */