I have recently converted my Kentico Web Site to a web application project (well worth doing BTW). One issue I started having after I converted is I would get an error on controls in the designer:
Error Creating Control - Session state can only be used when enableSessionState is set to ture.... etc.
If you're building a template aspx page and you're deriving from CMS.UIControls.TemplatePage (as you should be), then you will get this error as TemplatePage is derived from AbstractCMSPage which accesses the session on init. The work around is to add the following code in your page:
protected override void OnInit(EventArgs e)
{
if (!DesignMode)
base.OnInit(e);
}
This would be worth adding to the AbstractCMSPage code for Kentico v6.. :)