Consultor Eletrônico



Kbase P159649: Can't add User Controls to toolbox with recursive Defs
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/3/2010
Status: Unverified

SYMPTOM(s):

Can't add User Controls to toolbox with recursive Defs

Adding a User Control to the Visual Designer's toolbox doesn't work and results in error: Duplicate type name within an assembly

If a user control has a variable definition that references a class which also has a variable definition pointing back to the original user control cannot be added to the Visual Designer toolbox

Stack trace found in OpenEdge Architect error log (<workspace>\.metadata\.log):

System.Reflection.Emit.AssemblyBuilderData.CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType).(Unknown Source)
at System.Reflection.Emit.TypeBuilder.Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, Module module, PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType).(Unknown Source)
at System.Reflection.Emit.ModuleBuilder.DefineTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces).(Unknown Source)
at System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces).(Unknown Source)
at Progress.ClrBridge.ProxyFactory.a(IAblClassInfo A_0, Int32 A_1).(Unknown Source)

FACT(s) (Environment):

Windows
OpenEdge 10.2B

CAUSE:

Bug# OE00195116

FIX:

Comment out the variable definition and restart Architect and the control should be able to be added to the toolbox.