I'm afraid that's a bit of a mystery. Have you tried stepping through the code form the top? If you add a breakpoint below that loop, does the IDE indicate that it won't be hit? Have you tried running this on a different machine? Have you tried deleting the contents of your 'bin' folder and rebuilding?