Could not load file or assembly 'Oracle.DataAccess'

Posts   
 
    
vn
User
Posts: 2
Joined: 01-Aug-2008
# Posted on: 01-Aug-2008 00:54:31   

Hi,

I have a LLBLGen project file (*.lgp) created using the LLBLGen Pro 2.0 version. I can open it using the 2.0 version but I cannot open it using the new LLBLGen 2.6 version. It said that it cannot loan the Oracle.DataAccess or its dependencies. I'm using Oracle DB 10g database. I have both versions running on the same computer. Please help. Thanks!

I got the following error:

Message: Exception has been thrown by the target of an invocation. 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.

Trace Stack: -----[Core exception]-------------------- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at SD.LLBLGen.Pro.ApplicationCore.DBDriverHelper.CreateDBDriverInstance(String assemblyFilename, String namespaceToUse, String className) at SD.LLBLGen.Pro.Gui.Forms.MainWindow.OpenExistingProject(String filenameToOpen) -----[InnerException]-------------------- at SD.LLBLGen.Pro.DBDrivers.Oracle10g.OracleDBDriver.FillDBTypeConvertArrays() at SD.LLBLGen.Pro.DBDrivers.Oracle10g.OracleDBDriver..ctor()

Source: mscorlib SD.LLBLGen.Pro.DBDrivers.OracleDBDriver10g

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 01-Aug-2008 07:12:08   

Hi vn. I can't reproduce your issue. What is the Oracle Data Provider client version you are using?

(Edit)

Please read this, and this.

David Elizondo | LLBLGen Support Team
vn
User
Posts: 2
Joined: 01-Aug-2008
# Posted on: 06-Aug-2008 01:49:19   

Thanks for the reply. I figured out the problem. I used ODAC v10.1 with the LLBLGen Pro v2.0. To fix the problem, I removed ODAC 10.1 and installed ODAC v10.2. Now I can load the LLBLGen projects (created by LLBGen Pro v2.0) with the new LLBLGen Pro v2.6.