Error creating control in Designer view

Posts   
 
    
cgray
User
Posts: 62
Joined: 25-Nov-2007
# Posted on: 05-Aug-2009 03:03:44   

Hello, I recently am getting an error with a datasource control, in the designer view only. The application sometimes builds and runs just fine (data is displayed in the gridview), but I get the error with the icon in the design view. I tried deleting and recreating the datasource, and again it first appears fine and then I get the error.

I am using LLBLGenPro 2.6.0.0 and Visual Studio 2005 Sp1. (.NET 2.0.05727)

I generated my classes using Adapter, with Template bindings SD.TemplateBindings.OracleMSSpecific.NET20

The datasource was created from a database view that was added to LLBLGen Pro as an Entity.

The datasource at first appears fine and I am able to choose the source and configure properties. And the application builds and runs. But then the error below appears and I am not able to access the properties box.

Error Creating Control- _ContactInfoschoolinfoDS 'cep.FactoryClasses.Contactinfoschoolinfoview_EntityFactory, cep' could not be set on property 'EntityFactoryTypeName'

Thanks for any suggestions, Carol

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 05-Aug-2009 06:06:49   
David Elizondo | LLBLGen Support Team
cgray
User
Posts: 62
Joined: 25-Nov-2007
# Posted on: 05-Aug-2009 07:50:49   

Thanks for the reference, I had seen something similar, although not exactly this posting.

Followed the suggestion which recommended:

  • close pages in vs.net, so no page is open in the design view
  • clean solution
  • Rebuild solution in full
  • open page in html
  • switch to designer

And I did try closing all pages, cleaning and rebuilding the solution, but still have the same problem. I also tried changing the data source configuration, in case there was a problem with the view I selected.

I will try regenerating the classes in LLBLGen and starting again with a new page--new gridview and datasource. But other than that, not sure what to do. I'm a bit of a Visual Studio novice.

Thanks! Carol

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 05-Aug-2009 09:04:36   

Please make sure your application references the same version of the OrmSupportClasses as the one used in Visual Studio toolbox.

cgray
User
Posts: 62
Joined: 25-Nov-2007
# Posted on: 05-Aug-2009 20:51:16   

I checked the little gear icon for the LLBLGenProDataSource2 in the toolbox, and this control for adapter is version 2.6.0.0, the same version as my OrmSupportClasses. I didn't go to the file structure to actually locate anything and verify further. Is there another place I should be checking the version of OrmSupportClasses used by the Visual Studio toolbox?

I also deleted the gridview I was using as well as the datasource, and after deleting everything, closing forms and rebuilding, and then adding back first the datasource and then a new gridview, things seem to be fine. It has worked all morning, so I think all is well.

I will try and document carefully if this problem comes up again, as I'm not sure just what changed to make things work.

Thanks for your help, Carol

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 06-Aug-2009 06:45:20   

I will try and document carefully if this problem comes up again, as I'm not sure just what changed to make things work.

Thanks Carol.

We will close this thread for now. If you have any feedback on this, please reopen the thread (posting automatically reopen the thread).

David Elizondo | LLBLGen Support Team