It appears that the code you're executing is not the code you're looking at. That would suggest that your build is failing but you're running the old output anyway. Are there any entries in the Errors window? If you build, does it say Succeeded or Failed? If you delete the bin folder, will the project still run?