Ian,
>By converted I meant migrated. I may end up having to restore the version 2 business objects and manipulating them manually, but that seems counter productive.
>
>I tried creating a net new project and generating the business objects again and then just moving my code over. The result was the same. First off I selected dynamic SQL and the command type was still set to stored procedure and secondly the error persisted. When I issue a saverow I get the following error stream:
>
>[NullReferenceException: Object reference not set to an instance of an object.]
> OakLeaf.MM.Main.Business.mmBusinessRule.CheckRules(mmBindingList`1 entityList) +89
> OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.CheckRules(mmBusinessObjectGeneric`1 businessObject, mmBindingList`1 entityList) +747
> OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.CheckRules() +131
> OakLeaf.MM.Main.Business.mmBusinessObjectGeneric`1.CheckRules(mmBusinessObject businessObject, DataSet ds, String tableName) +169
> OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName, String databaseKey, IDbDataAdapter dbAdapter) +795
> OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName, String databaseKey) +101
> OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName) +159
> OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(String tableName) +126
> OakLeaf.MM.Main.Business.mmBusinessObject.SaveRow() +173
Can you zip up your business object project and send it to me? It will be easier for me to see what's going on. Also, if you can detach your SQL Server database, zip it up, and send it to me that would be helpful too.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com