Problem With User Control

Posts   
 
    
havoc1
User
Posts: 8
Joined: 06-May-2005
# Posted on: 18-May-2005 14:38:43   

Hi, I have created a simple Winforms.Net User Control with a Janus datagrid to show some records in an EntityCollection. however, when I try to drag and drop the control onto a form in the Visual Studio.Net designer I get the following error:


 An exception occurred while trying to create an instance of BankingClientTest.BankControl. The exception was "Method not found: SD.LLBLGen.Pro.ORMSupportClasses.IRetrievalQuery SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.CreateSelectDQ( SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldCore[], SD.LLBLGen.Pro.ORMSupportClasses.IFieldPersistenceInfo[], System.Data.IDbConnection, SD.LLBLGen.Pro.ORMSupportClasses.IPredicate, Int64, SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression, SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection, Boolean, SD.LLBLGen.Pro.ORMSupportClasses.IGroupByCollection, Int32, Int32).".

If I comment out the LLBLGen code in the control, the drop it onto the form, uncomment the code and run the app, it works fine. But when I switch back to design view on the form, the control falls over and it won't then run again. Help please!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 18-May-2005 15:17:37   

The project you use the control in, does that project have a reference to the SqlServerDQE? If you add that reference (just for testing) does it work then?

Frans Bouma | Lead developer LLBLGen Pro
havoc1
User
Posts: 8
Joined: 06-May-2005
# Posted on: 18-May-2005 15:22:11   

Aha - that fixed it, thanks smile