Inherited User Control Web Designer Issue

  • Thread starter George Economos
  • Start date
G

George Economos

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top