473,659 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot view subclassed Page in Visual Designer

When I create a BasePage class in either the same or separate assembly,
create a Web Form that inherits from BasePage, and then attempt to view my
Web Form in the visual designer, I get the following error:

----------

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:

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

----------

This problem seems only to occur with Visual Studio 2003 on Windows XP. I'm
not sure whether its related to the service pack of either product.

Other posts with the same problem exist, and I have scoured the web, however
I have not seen a solution to the problem.

Has anyone solved this issue?

Thanks
Nov 19 '05 #1
4 1381
I assume your base class is abstract. It's a known issue. In order the
work, the visual designer [attempts] to create an instance of all relevant
classes...this is obviously not possible for abstract class. The best
option is to make your base class non-abstract...or use some other
technique..such as composition...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Slimeman" <Sl******@discu ssions.microsof t.com> wrote in message
news:E5******** *************** ***********@mic rosoft.com...
When I create a BasePage class in either the same or separate assembly,
create a Web Form that inherits from BasePage, and then attempt to view my
Web Form in the visual designer, I get the following error:

----------

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:

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

----------

This problem seems only to occur with Visual Studio 2003 on Windows XP.
I'm
not sure whether its related to the service pack of either product.

Other posts with the same problem exist, and I have scoured the web,
however
I have not seen a solution to the problem.

Has anyone solved this issue?

Thanks

Nov 19 '05 #2
Cheers for the reply Karl.

My base class is not abstract. The simplest of examples replicates the
problem. Do you know of a solution? A Web Form inheriting from a base page
class runs fine, its just the designer that is the problem.
Nov 19 '05 #3
No, I've tried the simple setup and the designer works fine for me. That
specific error, as I said, is known to happen when the base class is
abstract. I've not seen anyone else report it under different situations.
Have you tried it on a different machine? You are welcomed to zip up a
simple example and mail it to my email (remove all the removes ;) )

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Slimeman" <Sl******@discu ssions.microsof t.com> wrote in message
news:93******** *************** ***********@mic rosoft.com...
Cheers for the reply Karl.

My base class is not abstract. The simplest of examples replicates the
problem. Do you know of a solution? A Web Form inheriting from a base page
class runs fine, its just the designer that is the problem.

Nov 19 '05 #4
The solution that solved this problem for me was to adjust the Local Intranet
Zone's Trust Level to Full Trust in the .Net Configuration Tool. Just in
case, it can be found under Administrative Tools in the Start Menu. I'm
assuming that as my home directory is on a mapped network drive, the .Net
Code Access Sucurity Runtime was disallowing access.
Nov 19 '05 #5

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

Similar topics

5
1739
by: Francis Shanahan | last post by:
Folks, I have a base page which is the grand-daddy of all my pages. It inherits from System.UI.Web.Page From this I inherit a layout page. From this I inherit the individual pages themselves. The problem: My pages can no longer be brought up in the designer. I'm using Visual Studio 2002 and these pages are written in asp.NET with the code
1
2281
by: ericvdb | last post by:
Hi all, I'm trying to fill a PDF form with asp.net using the FDF Toolkit. I have a simple form with a textbox and a button. When the button is clicked, the pdf should open with the field filled from the textbox. When I open the page in IE (whatever version) i get : ############################################################ The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then
7
6176
by: Daniel | last post by:
Is there any other way can override this event, like javascript onchange added to the attribute of this dropdownlist? Thanks
2
2907
by: Chad | last post by:
I have a problem that I am desperate to understand. It involves dynamically adding controls to a Table control that is built as a result of performing a database query. I am not looking to avoid the problem by avoiding the table control or resorting to databound controls that better manage state for me. I hope to understand how to solve the problem by using the Table web control and sticking to the approach of building the table at run...
7
1419
by: chrisn | last post by:
Do real developers use the design view? Thought it would be interesting to start a debate on this subject. According to all the MCP materials (yes, I know a bit mickey mouse), the design view is the way to build your ASP.NET pages. Problem is: - it generates goddam awful HTML, certainly not standards-based. - use of absolute positioning and tables for layout.
1
4228
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get the example to work. I created the following two classes, provided with the example: *-*-**-*-*-*-*-*-*-*-*-*-**-*-*-*-*-CheckBoxColumn Class:-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-**-*-*-*
3
1578
by: VMI | last post by:
I posted this in the MS aspnet NG and nobody replied. Hopefully, I'll be luckier here... I have VS .net 2003 v1.1 and I'm trying to view some web pages in the designer form. When I try to do this, I get this error: "The designer could not be shown for this file because none of the classes within it can be designed." I could see these before, but then I rebooted my PC. The project compiles and runs. What's going on? This is a complete...
4
2641
by: Goran Djuranovic | last post by:
Hi all, I am experiencing a strange thing happening with a "designer.vb" page. Controls I manually declare in this page are automatically deleted after I drop another control on a ".aspx" page. - Why is this happening? - Can I disable automatic declaration and have everything be declared manually? - Any other options to fix this? Thanks in advance. Goran Djuranovic
1
2410
by: GS | last post by:
regoption in the regex table and the view RegexOption.regexoption are system.int32 what does the message below mean? --------------------------- Microsoft Visual Basic 2008 Express Edition --------------------------- Cannot create an association "viewRegexOption_Regex". Properties do not have matching types: "regexoption", "RegexOption". --------------------------- OK Help
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.