An unhandled exception of type 'System.MissingMethodException' occurred in sd.llblgen.pro.dqe.sqlserver.net11.dll

Posts   
 
    
Sam avatar
Sam
User
Posts: 95
Joined: 30-Jun-2004
# Posted on: 12-Sep-2005 20:08:23   

I just rebuilt my computer and now I am getting this error in one of my apps when I try to run it. I have tried deleting and regening the class and still get the problem any ideas? Exact error: An unhandled exception of type 'System.MissingMethodException' occurred in sd.llblgen.pro.dqe.sqlserver.net11.dll

Additional information: Method not found: Void SD.LLBLGen.Pro.ORMSupportClasses.TraceHelper.WriteLineIf(Boolean, System.String, System.String).

Stack trace:


>   tamprospects.sql.dal.dll!TAMProspects.SQL.DAL.DaoClasses.DatabaseDAO.CreateAndRunMultiInstanceRetrievalQuery( SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields fieldsToReturn = {SD.LLBLGen.Pro.ORMSupportClasses.EntityFields}, SD.LLBLGen.Pro.ORMSupportClasses.ITransaction containingTransaction = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection collectionToFill = {TAMProspects.SQL.DAL.CollectionClasses.DatabaseCollection}, long maxNumberOfItemsToReturn = 0, SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression sortClauses = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IEntityFactory entityFactoryToUse = {TAMProspects.SQL.DAL.FactoryClasses.DatabaseEntityFactory}, SD.LLBLGen.Pro.ORMSupportClasses.IPredicate selectFilter = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IValidator validatorToUse = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection relations = <undefined value>, int pageNumber = 0, int pageSize = 0) Line 560 + 0xac bytes C#
    tamprospects.sql.dal.dll!TAMProspects.SQL.DAL.DaoClasses.DatabaseDAO.GetMulti( SD.LLBLGen.Pro.ORMSupportClasses.ITransaction containingTransaction = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection collectionToFill = {TAMProspects.SQL.DAL.CollectionClasses.DatabaseCollection}, long maxNumberOfItemsToReturn = 0, SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression sortClauses = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IEntityFactory entityFactoryToUse = {TAMProspects.SQL.DAL.FactoryClasses.DatabaseEntityFactory}, SD.LLBLGen.Pro.ORMSupportClasses.IValidator validatorToUse = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IPredicate selectFilter = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection relations = <undefined value>, int pageNumber = 0, int pageSize = 0) Line 222  C#
    tamprospects.sql.dal.dll!TAMProspects.SQL.DAL.CollectionClasses.DatabaseCollection.GetMulti( SD.LLBLGen.Pro.ORMSupportClasses.IPredicate selectFilter = <undefined value>, long maxNumberOfItemsToReturn = 0, SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression sortClauses = <undefined value>, SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection relations = <undefined value>, int pageNumber = 0, int pageSize = 0) Line 272 + 0x5f bytes C#
    tamprospects.sql.dal.dll!TAMProspects.SQL.DAL.CollectionClasses.DatabaseCollection.GetMulti( SD.LLBLGen.Pro.ORMSupportClasses.IPredicate selectFilter = <undefined value>) Line 192 + 0x3a bytes    C#


Breaks in this method:


        private void CreateAndRunMultiInstanceRetrievalQuery(IEntityFields fieldsToReturn, ITransaction containingTransaction, IEntityCollection collectionToFill, 
            long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicate selectFilter, IValidator validatorToUse, 
            IRelationCollection relations, int pageNumber, int pageSize)
        {
            ****IRetrievalQuery selectQuery = DynamicQueryEngine.CreateSelectDQ(fieldsToReturn, DbUtils.DetermineConnectionToUse(containingTransaction), 
                selectFilter, maxNumberOfItemsToReturn, sortClauses, relations,  !((relations!=null) && (relations.Count > 0)), null, pageNumber, pageSize);
            base.ExecuteMultiRowRetrievalQuery(selectQuery, containingTransaction, entityFactoryToUse, collectionToFill, false, validatorToUse);
        }

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 12-Sep-2005 20:22:31   

10 to 1 it's because you build against the .NET 1.0 version of the runtime libs.

Frans Bouma | Lead developer LLBLGen Pro
Sam avatar
Sam
User
Posts: 95
Joined: 30-Jun-2004
# Posted on: 12-Sep-2005 21:23:10   

Not really sure what you mean. I deleted the DAL project, regenerated and compiled it. The sd.llblgen.pro.dqe.sqlserver.net11.dll is the referenced assembly in the DAL project. Not sure what else could be wrong? I am sure that it is something stupid but I cannot seem to track it down disappointed

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 12-Sep-2005 22:25:49   

Sam wrote:

Not really sure what you mean. I deleted the DAL project, regenerated and compiled it. The sd.llblgen.pro.dqe.sqlserver.net11.dll is the referenced assembly in the DAL project. Not sure what else could be wrong? I am sure that it is something stupid but I cannot seem to track it down disappointed

Also the ormsupport classes are the .net 11 versions? Could you also check they're both of the same runtime pack? (e.g.: not al old dqe and a new ormsupportclasses dll for example) ?

Method not found errors come from the fact that the dll referenced at compile time, isn't the one used at runtime.

Frans Bouma | Lead developer LLBLGen Pro
Sam avatar
Sam
User
Posts: 95
Joined: 30-Jun-2004
# Posted on: 13-Sep-2005 00:15:15   

must have been an old assemblie somewhere. I deleted all the bin directories / recompiled and it worked!