all groups > asp.net building controls > october 2003 >
You're in the

asp.net building controls

group:

The file failed to load in the Web Form designer ... Unable to cast object of type myServicedComponentClass ...


The file failed to load in the Web Form designer ... Unable to cast object of type myServicedComponentClass ... Henry
10/20/2003 12:01:28 PM
asp.net building controls:
I have a user control that inherits from a base user control class. I can
view and edit the base user control in the designer. However, my child user
control fails to load in the web form designer. The error looks like this:

The file failed to load in the Web Form designer. Please correct the
following error, then load it again: An exception occured while trying to
create an instance of baseUserControl. The exception was "Unable to cast
object of type myServicedComponentClass to type myServicedComponentClass. "
..

I get no build errors, and my webforms with all their user controls function
properly when browsed.

Re: The file failed to load in the Web Form designer ... Unable to cast object of type myServicedComponentClass ... Henry
10/20/2003 12:10:36 PM
Nevermind, i fixed it. In my 'baseUserControl' i moved the
'myServicedComponentClass' from being a class member to within a function.
VS.Net can now modify all the child classes in the designer.

[quoted text, click to view]

AddThis Social Bookmark Button