Web Form Inheritance Error (Non-Abstract Superclass)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Scott Simms (msdn_at_sdg.beacon.com.au)
Date: 06/11/04


Date: Thu, 10 Jun 2004 18:15:01 -0700

Implementing the page controller pattern in Visual Studio 2003 cause the Web Forms Designer to give the following error.

"The file could not be loaded into the Web Forms Designer. … The class 'App.Web.Client.Common.UI.BasePage' could not be loaded."

Specifically the code behind page inheritance is changed from System.Web.UI.Page to our own class App.Web.Client.Common.UI.BasePage which inherits from System.Web.UI.Page.

App.Web.Client.Common.UI.BasePage is NOT abstract and exists in the same assembly as the subclass.

I have attempted numerous things to get this working including:

* Installing the assembly that contains App.Web.Client.Common.UI.BasePage into the GAC
* Deleting the contents of C:\Documents and Settings\<UserName>\VSWebCache.

This is behaviour that was implemented and worked in Visual Studio 2002 on a number of project we have worked on.

Any ideas would be appreciated.

Thanks,

Scott Simms.



Relevant Pages

  • Web Form Inheritance Error (Non-Abstract Superclass)
    ... Implementing the page controller pattern in Visual Studio 2003 cause the Web Forms Designer to give the following error. ... Deleting the contents of C:\Documents and Settings\\VSWebCache. ...
    (microsoft.public.vsnet.ide)
  • Re: how does this still work??
    ... can't understand code that is written for you by a designer. ... Visual Studio includes a set of Templates, ... >language my first exercise which happens to be a windows form looks quite ... >and what entered also goes into label box but on top of previous message. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Thinking Clearly
    ... known as "Data Dude" which integrates into Visual Studio 2005 Professional ... new compiler but there are new compiler for WinFX. ... The Expression Interactive Designer aka Sparkle will be a commercial product ... but for some developers this adoption may also have a positive ...
    (borland.public.delphi.non-technical)
  • Re: Thinking Clearly
    ... undoubtably require some kind of design-time support. ... designer outside of Visual Studio. ... Knowing how much you envy and admire the Visual Studio IDE I thought you ...
    (borland.public.delphi.non-technical)
  • Re: ListView in a UserControl
    ... and Visual Studio ... As far as I don't close the designer, I can see my columns on my form ... Two, when you make it public, you will want to name it MyColumns, as ... I'm creating a control including a listview. ...
    (microsoft.public.dotnet.languages.csharp)