Could not load file or assembly 'Oracle.DataAccess

Posts   
 
    
Krish66
User
Posts: 1
Joined: 24-Aug-2009
# Posted on: 24-Aug-2009 18:15:16   

I am using llblgen trial version v2.6 Demo with Oracle 10g Express Database. The following is the code snippet using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using xxx.DataEntity.EntityClasses; using xxx.DataEntity.DatabaseSpecific; using SD.LLBLGen.Pro.ORMSupportClasses; using xxx.DataEntity.HelperClasses; using xxx.DataEntity.FactoryClasses; using xxx.ExceptionHandling; namespace xxx.BusinessLayer.CaseNotes { public class CaseNotes { public DataTable GetCaseNotesForCase(int CaseId) { DataAccessAdapter adapter = new DataAccessAdapter(); DataTable dynamicList = new DataTable(); ResultsetFields fields = new ResultsetFields(2); try { fields.DefineField(GvsStandardNotesFields.NoteType, 0, "NoteType"); fields.DefineField(GvsStandardNotesFields.NoteDescription, 1, "NoteDescription"); adapter.FetchTypedList(fields, dynamicList, null, 0, null, true, null); } catch (Exception ex) { ..........} return dynamicList; } } }

I am getting an error on the adapter.FetchTypedList line. Error: Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.

I have the Oracle.DataAccess, Version=2.102.2.20 in the bin/debug folder of DataEntity.DatabaseSpecific project. Stack Trace: at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchTypedList(IEntityFields2 fieldCollectionToFetch, DataTable dataTableToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, Boolean allowDuplicates, IGroupByCollection groupByClause, Int32 pageNumber, Int32 pageSize) at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchTypedList(IEntityFields2 fieldCollectionToFetch, DataTable dataTableToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, Boolean allowDuplicates, IGroupByCollection groupByClause) at xxx.BusinessLayer.CaseNotes.CaseNotes.GetCaseNotesForCase(Int32 CaseId) in C:\GVS\BusinessLayer\CaseNotes\CaseNotes.cs:line 30

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 25-Aug-2009 05:18:10   

Hi there,

Are you sure you have installed that version? Could you please double-check the installed version?

Also, these links should be helpful on this: http://walaapoints.blogspot.com/2007/06/odpnet-llblgen-pro.html http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=15855 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=13997

David Elizondo | LLBLGen Support Team