We do this in all our apps, all you need to do is inherit from
Web.UI.Page, which you'vre obviously done.

The only time I have seen a VS.NET error is when the extended class
refers to an assembly that has not yet been loaded, this some times
happens in a multi-project solution is loading into VS and I have a
number of web pages open, but the error resolves as soon as the
offending assembly has loaded.

The error only persists if extended class refers to an assembly cannot
be loaded, or the extended class cannot compile correctly for some
reason.  Make sure any any dependent assemblies are in the bin
directory.

On 8/23/05, Falls, Travis D (HTSC, CASD) <[EMAIL PROTECTED]> wrote:
> I have created a class that extends Page named BasePage.  When I inherit
> from this instead of Page for any aspx I get a VS.Net error that states 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:
> FileWatcherMaintenance --- The base class
> 'com.TheHartford.HTSC.RAFT.RAFTAdmin.Utilities.BasePage' 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.
> 
> Everything is built and if I simply extend Page instead of BasePage it
> works.  Do I have to add something to BasePage to make it work with the
> designer?
> 
> Travis D. Falls | Consultant   RAFT.Net   IT | 860.547.4070 |
> [EMAIL PROTECTED]
> 
> 
> *************************************************************************
> PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information.  If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited.  If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 


-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hck5mei/M=362131.6882499.7825260.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124812935/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to