I had the same problem.
This is how i fixed it... It's stupid, really...
Under VC++ 2008 Project > Properites > Configuration Properties > General
I had this "$(SolutionDir)$(ConfigurationName)" in Output directory field.
So I typed there "Debug". There's field below with "$(ConfigurationName)", so i typed "Debug" too. And it works now... But only under debug mode.