ssteenkiste / nettiers

Automatically exported from code.google.com/p/nettiers
1 stars 0 forks source link

"Unable to load NetTiers Service Section" error when dragging a user control on to a form in VS Designer #363

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Visual Studio project, and reference the required NetTiers DLLs.
2. Create a user control.  In the user control's New constructor, enter 
statements that utilise NetTiers data objects.  eg Dim ps As TList(Of Payment). 
 Save the User Control and rebuild your project.
3. Create a form.  Drag the user control on to the form.  You will see the 
above error.

What is the expected output? What do you see instead?
Expected - user control appears on form.  Instead - error.  Also, if you add 
the New Constructor statements to the user control AFTER you have already added 
the user control to the form, you will get an error in the form designer.

What version of .netTiers and CodeSmith are you using?
NetTiers 2.3, CodeSmith 3.2

Please provide any additional information below.
Workaround: Put all the user control's initialising code that uses 
NetTiers(populating combo boxes etc) in a Public Sub.  Then call that Sub from 
the user control's parent form's New constructor.

See this thread for more info:
http://community.codesmithtools.com/nettiers/f/16/t/7771.aspx

Original issue reported on code.google.com by ad...@theblues.org.au on 13 Jan 2011 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 13 Jan 2011 at 3:03

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 18 Jan 2011 at 6:50