I just successfully converted my web application to VS 2010 from VS 2008 and found out that when there are session variables in the code behind file for a web form, the design form view encounters an error in rendering the page on the design form. The following link explains this: