StrataFrame Forum

Business Object Binding

http://forum.strataframe.net/Topic6788.aspx

By Guy - 2/14/2007

Hi,
When I try to bind a control at design time to a field in my business object I get the following message:

  • The selected business object name does not appear to be valid.  The fields could not be enumerated.

The strange thing is that originally it all worked correctly Crazy. The business object is declared in an application base page.

Also, it doesn't seem possible to populate a combo via an enum. At design time I can set the enum to be used but when running the page I get the following error:

  • The type "Name of enumeration" could not be found in any assemblies referenced by the entry assembly.

Thanks


By Trent L. Taylor - 2/15/2007

Are you using C# or VB.NET.  This matters when responding on a website application and BOs.  As for the assembly, is it in your GAC or Bin folder at runtime?
By Guy - 2/15/2007

C# is the language used for both the BO and the web application. The assembly is in the bin folder at runtime.
By Trent L. Taylor - 2/16/2007

Are you using a web project or a website?  Also, can you post a screen shot of the message?  Sorry for all of the questions, but nothing it just popping out.  Once thing you can try is to right-click on the solution and then click "Clean SOlution" then right-click again and click "Rebuild Solution."  SOmetimes assemblies get cached.  Many times this also requires that you exit Visual STudio and come back in.  Last question, are you putting your assemblies into the GAC or are they in the Bin folder only?
By StrataFrame Team - 2/16/2007

Is this a web project or a web site?  The type editors do not work properly with web projects (that were included with VS2005 SP1); it has to be a web site for the type editors to properly enumerate the fields.
By StrataFrame Team - 2/16/2007

And if you know the name of the field, you can simply type it in the blank... it will work at runtime.
By Guy - 2/16/2007

I noticed that this was the case, however it was handy to be able to choose from a list which also eliminate possible typos. Out of curiosity, any ideas why it might have stopped working?
By StrataFrame Team - 2/16/2007

Yes, if your're working with a web project instead of a web site, then it will fail.
By Trent L. Taylor - 2/16/2007

The type editors at the moment to not properly support a web project.  This is something that is on our list of "to-do" items since the web project is being used more and more again.