Cannot view aspx in Designer

G

Guest

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 project so I can't move code around (like in the
solutions I've found) or recreate web Forms.

Thanks.
 
M

Mythran

VMI said:
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 project so I can't move code around (like in the
solutions I've found) or recreate web Forms.

Thanks.

Is the page base class marked as abstract? If so, the designer can't create
the base classes in order to design on the derived class and you'll have to
remove the abstract from the classes.

HTH,
Mythran
 
G

Guest

It's not abstract.
I could see the pages in design view before, but somehow it stopped working
after installing VS 2005 and rebooting my PC.

Thanks.
 
G

Guest

I did notice that the page base class (it affects all the aspx) were derived
from two other classes and the last one is derived from System.Web.UI.Page
(i.e. c1 is derived from c2. c2 is derived from c3, and c3 is derived from
System.Web.UI.Page).
Before VS 2005 I was able to see the pages through the designer, so I know
there's nothing wrong with the code. Does installing VS 2005 change any
parameter that I may now know about?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top