Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Code Generation Error Adding User Control to Form
Versions des environnements
Hello all.
I have built a User Control that contains an MM Business Object and a grid to present the BO's data. When I go to place this UC on a form, I get the following error:
"Code generation for property 'State' failed. Error was: 'The value '0' is not a valid value for the enum 'mmBusinessSate'."
Anytime I change anything on the form, the error occurs and recurs each time I save or rebuild until I close and reload the Solution.
When I look in the Form's designer code, it has rendered/created the Business object in the form itself, which shouldn't be the case since the Business object is handled in the User Control.
I suspect this has something to do with Serialization and it may not be specific to MM, but any thoughts/feedback/workarounds for this issue would be much appreciated. Thanks very much...
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement