BBIS Custom Part problem... There was an error reflecting type

Okay I'm trying to get a custom part developed and I'm getting an error when I try saving.


There was an error reflecting type 'UNC.SimpleEventRegistration.SimpleEventRegistrationV2Properties'.


The error is happening at this line:


Me.Content.SaveContent(MyContent)


So it appears it doesn't like converting my content to XML to store in the DB but i don't know why.

Comments

  • A little more information.... it appears that this line of code in my properties is causing a problem.


    Public QUESTIONS As List(Of SimpleEventRegistrationQuestion)


    I had that commented out... then I created a part and saved it fine.... I could go back in and edit it and re-save it.


    Then, I uncommented that and rebuilt... now when I go in and edit the part, there's no data..


    I can add other normal variables to my properties but not this...
  • And now I've answered my own question. I had two constructors in the question class and I'd forgotten to remove a parameter from one of them.


    So.. NEVER MIND! lol
  • I've definitely included IEnumerables in BBIS part properties before. I wonder if that property name ("QUESTIONS") conflicts with some internal name in an undocumented way. Can you try it with just a slightly different name, like QSTN or whatever? Just a shot in the dark, but maybe.


    Joseph Styons

    https://www.styonssoftware.com