By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,262 Members | 2,664 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,262 IT Pros & Developers. It's quick & easy.

Error Rendering Control: unable to cast object of type "System.Web.UI.Page"

P: n/a
I have a series of custom controls developed under ASP.NET 1.1, and
I've successfully migrated to ASP.NET 2.0. I have also developed a
custom class dervied from System.Web.UI.Page, called qbo.Web.Page.
All of these controls compile and run correctly under ASP.NET 2.0.

However, several of these controls throw an error in the design mode
of VS.NET 2005. Specifically, controls that include a property
override of Page (to cast as a qbo.Web.Page, instead of a
System.Web.UI.Page) throw the following error:

Error Rendering Control
An unhandled exception has occurred.
Unable to cast object of type 'System.Web.UI.Page' to type

In addition to the annoying display in VS.NET 2005'd design mode,
these controls are not detected and creates in the
{page}.aspx.designer.cs partial class.

Apr 9 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
I suppose I failed to ask any questions in my post. Thus: any
suggestions for working around this issue?

Apr 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.