I am trying to get the page mode that sitefinity 4.0 beta 2 is running under. I have tried the following
Telerik.Cms.Web.CmsPageBase page = this.Page as Telerik.Cms.Web.CmsPageBase
however every time I attempt to debug this project is complains that it is looking for version
Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'
of Telerik.Web.UI. Currently I have version 2010.2.826.40 that came with beta 2 referenced in the project. What telerik assembly is looking for this old version? I have no version of Telerik.Web.UI in my GAC and no version number specified in my web config. Any help would be appreciated.