Inherited User Control Web Designer Issue

Discussion in 'ASP .Net Web Controls' started by George Economos, Oct 7, 2003.

  1. I apologize in advance for this post since I have seen it many times before,
    but never a adequate solution. Here is my situation:

    (1) Created an assembly that contains the following class: class
    MyUserControl : System.Web.UI.UserControl.

    (2) Created a web application that references the above assembly as a
    project and contains a class that inherits from MyUserControl.

    When I try to use the web forms designer I get the following error:

    "The file failed to load in the Web Form designer. Please correct the
    following error and open 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: {DeriveClassName} - The base class
    MyUserControl could not be loaded. Ensure that the assembly has been
    referenced or built if it is part of the project."

    I know I am referencing required assembly and that it builds correctly. Also
    this only occurs on some machines which is odd because supposedly all of our
    machines are identical( obviously not ).

    As a work around we can remove the @ Control directive when we want to
    visually design the control and add it back when we are done, but this is a
    hassle.

    We are using VS.NET 2002 any suggestions would be greatly appreciated.

    George Economos
    George Economos, Oct 7, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AP
    Replies:
    1
    Views:
    387
  2. George Economos

    Inherited User Control Web Designer Issue

    George Economos, Oct 7, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,455
    George Economos
    Oct 7, 2003
  3. Steve B.
    Replies:
    4
    Views:
    965
    Cheryl D Wise
    Jun 1, 2007
  4. Ron Vecchi

    Inherited DropDownList Designer problem

    Ron Vecchi, Sep 13, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    122
    Ron Vecchi
    Sep 13, 2003
  5. 7stud --
    Replies:
    11
    Views:
    407
    7stud --
    Nov 9, 2007
Loading...

Share This Page