I was comparing two asp.net site folders in WinMerge. The both were tied to source safe. The difference was showing .dll, .pdb and .scc files.
My colleague was getting this error. When the code was placed in a test page, it worked but as soon as he added it to the relevant page, it stopped working.