473,382 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Upgrade To 2003: Cannot Load Web Forms Designer; Using Page Descendent

I've created a page ancestry (framework) for our application so that all
pages in our app would have the same look and feel. To do this, I created
several user controls (header, footer, menu, etc.) and then a C# class which
inherits from System.Web.UI.Page. In the OnInit() method of this class, I
dynamically load these user controls using the 'this.Controls.AddAt()'
method (as well as call the base.OnInit() method to load the objects from
the descendent). All my application pages inherit from the C# class
('AppBasePage') instead of the Page class. This worked well in .Net 2002.
In .Net 2003, none of the descendent pages can load the Web Forms Designer
and when the descendent page is opened, they all get the following error
message:
The file could not be loaded into the Web Forms designer. Please correct
the following error and then try loading it again:

The designer could not be shown for this file because none of the classes
within it can be designed. The designer inspected the following classes in
the file:

DesendentPageBeingOpened --- The base class 'AppBasePage' could not be
loaded. Ensure the assembly has been referenced or built if it is part of
the project.

Make sure all of the classes used in the page are built or referenced in
the project. Click Help for more information.
Obviously, this page and these objects are in the project and should be
being built with the project. As a work around, if the developers need to
get to the Designer, I've asked them to change the ancestry of the page back
to System.Web.UI.Page, close the page and then reopen it. This allows them
back into the Designer. Pretty messy. I'm hoping there's a better
resolution. Has anyone seen this behavior with 2003? Can anyone suggest a
(hopefully easy) fix?

Thanks.

LWS
Nov 18 '05 #1
0 1307

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition 1.0 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the first release of a fully-managed reporting tool for the...
36
by: Tim | last post by:
Is there a way to upgrade from Visual C++ Net 2002 to Visual C++ Net 2003? The 2002 version does not provide a Windows Forms Designer. I can't find any upgrade package on Microsoft's website. ...
3
by: Rik Moed | last post by:
Hi, I am having a problem with Excel 2003 worksheets when I upload them using the HtmlIputFile. After the upload, I start to download the worksheet and it appears to be currupt. I recieve the...
4
by: john | last post by:
I'm having some Interop problems. I really need someone's help on this, i'm running out of ideas. I have upgraded my Data access controls to the latest ver. Now then i have a form with these...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
4
by: Dennis | last post by:
I just lost some user controls for no reason using VB.Net 2003. I had added the controls thru the Design IDE and all was working ok but for some reason, they just disappeared. The form module...
0
by: fish | last post by:
Hi, I have a VB.net application that will save attachments to a directory on my local pc. I need to run this component on our exchange 2003 server and also save the attachments to a local DIR. ...
9
by: Elliot Rodriguez | last post by:
WinXP Pro Let me preface this by saying I have developed with the .NET IDE since its release, and I consider myself reasonably savvy with it. I have a medium sized form with about 120 controls...
4
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.