Binding Form at design time

Posts   
 
    
Posts: 5
Joined: 11-Jun-2010
# Posted on: 28-Jun-2010 16:12:21   

I've got this message when try configure entityCollection in EntityCollection's Designer :

========================================== "Error Invoking "Set EntityFactory to use".Details = Unable to cast object of type = 'Northwind.DAL.HelperClasses.EntityCollection' to type =

'SD.LLBLgen.Pro.ORMSupportClasses.IEntityCollection2'. =

What's happen on this?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 29-Jun-2010 06:42:39   

Please try recompiling the code before add the collection. Read this: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7560

David Elizondo | LLBLGen Support Team
Posts: 5
Joined: 11-Jun-2010
# Posted on: 29-Jun-2010 11:19:14   

This is my first time using LLBLGen so the situation : 1. download the example project (Northwind complex databinding using adapter) 2. build and everything its ok

after that I would like explore the CollectionEntity and it's work. Then I closed VS and try to open project again.

Now when i click on the Set CollectionEntity to use option in the smart tag..I got following error. I am try hard in this situation and did'nt work.Please...

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 29-Jun-2010 20:50:42   

Which version of LLBLGen are you using ?

Matt

Posts: 5
Joined: 11-Jun-2010
# Posted on: 30-Jun-2010 08:35:15   

SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll ver 3.0.10.526

And @Daelmo How to see if the dll is correct version between Northwind.DAL and GUI?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 30-Jun-2010 08:52:07   

And @Daelmo How to see if the dll is correct version between Northwind.DAL and GUI?

The SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll is suppossed to be referenced in both the of the projects, the gneerated DAL and your GUI application. You can open the properties of the reference in each project and check the version number, or make sure they are pointing to the same path.

(Edit) Please try to rebuild the entire solution. (DAL + GUI).

Posts: 5
Joined: 11-Jun-2010
# Posted on: 01-Jul-2010 15:32:12   

I try to delete all the compiled dll in bin folder. Rebuild each project and the issue is still the same.Sorry for this...

But when I Unzip project example, and build DAL and GUI it's succes... I'dont know what happen.Because I've compare the reference of each dll and its ok

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 01-Jul-2010 21:04:00   

Please can you attach your failing code - we'll try and reproduce it here. We only need source files, not the binaries.

Thanks

Matt

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 02-Jul-2010 07:26:58   

Also, this sound like VS irregularity. What VS version are you using? Please install any missing service pack.

David Elizondo | LLBLGen Support Team
Posts: 5
Joined: 11-Jun-2010
# Posted on: 02-Jul-2010 17:35:48   

The project have been send.Maybe I'll try to uninstal my VS 2008. But for now I still using servicing and it's ok for me.Thanks ...

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Jul-2010 20:04:16   

The project you attached, it's ok for me, I rebuild and I can view/edit the data controls in design view.

I tested with VS 9.0.30729.1 SP. Please update to the latest version. I will close this thread for now but please come back if you have any further questions/problems.

David Elizondo | LLBLGen Support Team