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
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