Consultor Eletrônico



Kbase P141459: Form fails to visualize with error "Visual Designer cannot load this class Could not find type ''."
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/02/2009
Status: Unverified

SYMPTOM(s):

Form fails to visualize with error "Visual Designer cannot load this class Could not find type '<type name>'."

Visual Designer cannot load this class
Could not find type '<type name>'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.

FACT(s) (Environment):

Attempting to instantiate a new instance of the class via the InitializeComponent method
No errors reported in the code
Code will execute as expected i.e. the form will be visualized
OpenEdge 10.2A
Windows

CAUSE:

InitializeComponent method has been manually edited to include a statement initializing the class listed in the error message. The InitializeComponent method should not be manually modified as doing so can affect how the Visual Designer processes the code. As stated in the InitializeComponent code:

/* NOTE: The following method is generated by the OpenEdge Advanced GUI Visual Designer.
We strongly suggest that the contents of this method only be modified using the Visual Designer to avoid any incompatible modifications.
Modifying the contents of this method using a code editor will invalidate any support for this file. */

FIX:

Undo manual changes to the InitializeComponent method and move statements to another part of the form.
For example, to instantiate a new instance of a class, move the statement to the form's Constructor, or a method called from the Constructor, or the form's Load event hander, etc.