To avoid these issues, I would recommend to start with a fresh glass Template (you can get it in the visualstudio gallery. Search for 'ESRI').
Compile it and check that the design surface is working well. Then you'll be able to add your application files.