'Oracle.DataAccess error

Hi All,
I have just updated my oracle client from 10g to 11g. After that, I built my windows based application together with a setup project. I install the application in my own laptop and it work fine but when i install the application in other computers(oracle client 9i) and i got the following error:
Could not load file or assembly 'Oracle.DataAccess, Version=10.2.0.100, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Anyone can help me to solve this problem? Please advice. Many thanks in advance.

Hi All,
I have just updated my oracle client from 10g to 11g. After that, I built my windows based application together with a setup project. I install the application in my own laptop and it work fine but when i install the application in other computers(oracle client 9i) and i got the following error:
Could not load file or assembly 'Oracle.DataAccess, Version=10.2.0.100, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Anyone can help me to solve this problem? Please advice. Many thanks in advance.

Similar Messages

  • Could not load file or assembly 'Oracle.DataAccess error on server

    I have been building a.NET application on my local Machine Windows 7 and have the 32-bit ODT installed on my machine which works nicely with VS 2010.
    I placed it on the server and when I open the page that accesses data from Oracle, I get the below error. Both the server and my local computer have the Oracle.DataAccess
    dll installed and both have the same public token 89b483f429c47342. I changed the target CPU from Any CPU to x86 and published a Release build of my project to the server.
    Why am I getting the below error?
    ==========================================================================================================
    Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Stack Trace:
    [FileNotFoundException: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.]
    antac.dashboard.Page_Load(Object sender, EventArgs e) in C:\Users\George\Documents\Visual Studio 2010\Projects\antac\antac\dashboard.aspx.cs:92
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
    System.Web.UI.Control.LoadRecursive() +71
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    This was definitely the right answer, I thought ODAC was already installed on the server, but apparently not. I installed the 64-bit OCAC XCopy version on the server and now it works.

  • Parser Error Message: Could not load file or assembly 'Oracle.DataAccess, V

    I'm working on a 64 bit windows 7 ultimate system and I can't get the Oracle.DataAccess and Oracle.Web to load on the helloworld web page
    See error below. At the very end i have the gacutil output. Also, the same dll's work on a 32 bit windows 7 system. I've also tried to load the beta version of the odac 64 bit
    but it it gets a "java stopped working error"
    Thanks in advance
    WEB PAGE ERRORVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
    Server Error in '/test/helloworld' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
    Source Error:
    Line 37:                     <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    Line 38:                     <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    Line 39:                     <add assembly="Oracle.DataAccess, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
    Line 40:                     <add assembly="Oracle.Web, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89B483F429C47342"/></assemblies>
    Line 41:           </compilation>
    Source File: C:\inetpub\wwwroot\test\helloworld\web.config Line: 39
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89b483f429c47342' could not be loaded.
    === Pre-bind state information ===
    LOG: User = IIS APPPOOL\DefaultAppPool
    LOG: DisplayName = Oracle.DataAccess, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/wwwroot/test/helloworld/
    LOG: Initial PrivatePath = C:\inetpub\wwwroot\test\helloworld\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\inetpub\wwwroot\test\helloworld\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: Oracle.DataAccess, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89b483f429c47342
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/test_helloworld/480589f5/895d06ab/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/test_helloworld/480589f5/895d06ab/Oracle.DataAccess/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/test/helloworld/bin/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/test/helloworld/bin/Oracle.DataAccess/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/test_helloworld/480589f5/895d06ab/Oracle.DataAccess.EXE.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/test_helloworld/480589f5/895d06ab/Oracle.DataAccess/Oracle.DataAccess.EXE.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/test/helloworld/bin/Oracle.DataAccess.EXE.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/test/helloworld/bin/Oracle.DataAccess/Oracle.DataAccess.EXE.
    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
    gacuil output
    VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
    C:\Users\Administrator>C:\"Program Files"\"Microsoft SDKs"\Windows\v6.0A\Bin\x64
    \gacutil.exe /l Oracle.DataAccess
    Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.21022.8
    Copyright (c) Microsoft Corporation. All rights reserved.
    The Global Assembly Cache contains the following assemblies:
    Oracle.DataAccess, Version=2.112.1.1, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=x86
    Edited by: burk_s on Jun 6, 2010 2:42 PM

    Hi Mubarak,
    Please firstly make sure you installed SharePoint Foundation 2010 with SP2 in a Windows Server 2012 R2. Since only SP2 slipstream installations are supported on Windows Server 2012 R2
    http://blogs.technet.com/b/stefan_gossner/archive/2014/05/03/sharepoint-2010-sp2-and-windows-server-2012-r2.aspx
    http://blogs.technet.com/b/stefan_gossner/archive/2013/09/19/slipstream-version-of-sharepoint-foundation-2010-with-sp2-included.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Service Error: File or assembly name Oracle.DataAccess not found

    Hi, everyone.
    I knew someone had post the similar question before. However, the discussion is not be able to solve my problem. Please give some suggestion.
    I got a net1 application use the oracle.dataAccess.dll as reference.
    I compiled it on my location machine and updated on the test server.
    But the event viewer shows the following error
    'Could not load file or assembly' Oracle.DataAccess, Version=1, Version=1.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342, or one of its dependenices. the system cannot find the file specified.
    Then I checked my application I realize, the oracle.DataAccess.dll I reference on my local machine is version10g. So I remove the reference and add the dll again (correct version 9i that match the testing enviroment). Becuase the testing environment got 9i installed.
    p.s I done the permission stuff for the ora92 folder and reboot is before I update the service.
    When I start the service again. I still have the same error. So after whole bunch of checking , re-add the reference and recomplie. I am running out of the solution.
    Please if anyone can kindly give a hand before I shoot myself. =(
    Thanks in advance
    null

    after long wait and there still no reply or suggestion from any one. Finally, I managed to solve this problem myself.
    Check your oracle.dataaccess.dll which you reference in the project and make sure the oracle.dataccess.dll version whould match the one you want to use.

  • Error: Cannot find the assembly Oracle.DataAccess

    Hi, I've this problem when any program use a connection with Oracle provider over any server (2 distinct server access to Oracle 9i with forms applications).
    The specific error is:
    Cannot find the assembly Oracle.DataAccess, Version=1.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342.
    This problem is resolve (temporary) executing:
    Alter Procedure <<Any procedure valid name>> compile
    But this is not an elegant solution.
    Please, ODP save something else in memory than executing this sentence clear an resolve this situation ??
    Exists any solution for this problem ??
    Thank for advance..
    Claudio

    This sounds odd - I don't see how compiling an Oracle procedure would help .NET to locate an assembly - you're not trying to run an assembly inside Oracle are you?
    Tell is more about what you're trying to do. If this is just a common program that is running on a server and trying to connect to Oracle, it sounds like ODP is not installed on the computer that is running this code. You should see Oracle.DataAccess in the GAC.
    Eric

  • Oracle.DataAccess.Client.OracleException ORA-29875 - ODCIINDEXINSERT error

    Hi,
    We are migrating data into our GIS repository using an application witch uses ODP fro .NET.
    Yesterday, when we were importing parcels from a certain geographic zone we have got this error:
    4430528 [4028] ERROR DBCommand - Error Executing Command [PARCELA.WRITE]
    Parameters:
    ResValue: [Int32]
    POP_ID: [Int64]35397
    PAR_ID: [Varchar2]
    BLO_ID: [Decimal]836170
    PAR_NUM: [Varchar2]1480296132900
    geometry: [Blob]System.Byte[]
    PAR_PON_ETI: [Blob]System.Byte[]
    Oracle.DataAccess.Client.OracleException ORA-29875: failed in the execution of t
    he ODCIINDEXINSERT routine
    ORA-29400: data cartridge error
    ORA-14450: attempt to access a transactional temp table already in use
    ORA-06512: at "MDSYS.SDO_IDX", line 161
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 332
    ORA-06512: at "SIG.PARCELA", line 354
    ORA-06512: at "SIG.PARCELA", line 479
    ORA-06512: at line 1 at pt.inga.db.Command.Execute(IDbConnection connection,
    IDbCommand command, Boolean& closeConnection) in C:\code-base\inga\isig\src-1.0.
    0.2\pt\inga\db\Command.cs:line 234
    at pt.inga.db.Command.Execute(IDbConnection connection, OracleCommand command
    , IDataRecord parentRecord, IDataRecord dataRecord, IOperationData operation, Bo
    olean& closeConnection) in C:\code-base\inga\isig\src-1.0.0.2\pt\inga\db\Command
    .cs:line 334
    The error seems to be related with temporary tables manipulation, does it?
    Has we didn’t know what to do we try to import those parcels after dropping a spatial index over the parcel’s table and we succeed with the import.
    Those any one has any ideas about this?
    And about spatial indexes internals?
    Thanks in advance,
    Vitor
    Versions:
    Client:          Oracle10g Data Provider for .NET 10.1.0.2.0
    Client’s OS:     Windows 2003 server
    Server:          Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Server’s OS:     AIX 5.2.0.0

    Vitor,
    Yes, Oracle uses temporary tables as part of inserts/
    deletes/updates on a table with a spatial index.
    Temporary table usage internally should not
    have any issues and we are not sure why this problem
    surfaces. Opening a TAR on this with a simplified
    testcase (and all config details: # of concurrent
    sessions etc.) might help in a better understanding/
    resolution of this issue.
    In the meanwhile, as a workaround, you can do the
    following:
    - drop the spatial index
    - migrate (insert) the data into the table from the
    application
    - recreate the spatial index
    This will avoid the temporary table issue at hand.
    - Ravi.

  • Parser Error Message: Access is denied: 'Oracle.DataAccess'.

    Has anyone else encountered this issue at all?
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: Access is denied: 'Oracle.DataAccess'.
    Source Error:
    Line 197: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    Line 198: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    Line 199: <add assembly="*" />
    Line 200: </assemblies>
    Line 201: </compilation>     
    Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 199
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess' could not be loaded.
    === Pre-bind state information ===
    LOG: DisplayName = Oracle.DataAccess
    (Partial)
    LOG: Appbase = file:///C:/inetpub/wwwroot/MobilityMachine
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Post-policy reference: Oracle.DataAccess
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/mobilitymachine/44efa7b9/c87ec767/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/mobilitymachine/44efa7b9/c87ec767/Oracle.DataAccess/Oracle.DataAccess.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/MobilityMachine/bin/Oracle.DataAccess.DLL.
    LOG: Publisher policy file is found at C:\WINDOWS\assembly\GAC\policy.9.2.Oracle.DataAccess\9.2.0.401__89b483f429c47342\Policy.9.2.Oracle.DataAccess.config.
    LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
    LOG: Post-policy reference: Oracle.DataAccess, Version=9.2.0.401, Culture=neutral, PublicKeyToken=89b483f429c47342     

    Yes on both of your questions. This is why I am confused as to why this is happening and the really strange this it happens maybe 2 times out of 10 (give or take).

  • Oracle.DataAccess.Client.OracleException - How do I look up error numbers?

    We are getting an intermittent error that doesn't help much and I would like to read up on the error to figure out what to do to fix it. Do any of you know how or where to look up error numbers for this? The error we are getting is: Oracle.DataAccess.Client.OracleException Data provider internal error(-3000)
    I have searched www.Oracle.com and done a Google search and the only hit I get is a similar error (error(-3001) for them) that has to do with connection pooling. They didn't get a solution to their post. There are no reference links that come back on my searches.
    So, can you help?

    Hi,
    -3000 means something bad happened internally in the provider. It's a catchall "you should never get here" error. As such, it's usually something the ODP team needs to fix, as opposed to something you can fix in your code.
    My best suggestion is to make sure you're using the latest and greatest provider and see if it still occurs. If it still occurs on current versions, you'll probably want to open up a SR with support, enable tracing to generate a "mini dump" when the behavior occurs, and have the dump analyzed.
    Cheers,
    Greg

  • Migrating System.Data.OracleClient to Oracle.DataAccess.Client - XSD error

    Hi, I'm a newbie using Oracle ODP.NET provider for .NET.
    We have a web application that uses XSD to connect to Oracle using the provider System.Data.OracleClient.
    We want to migrate from System.Data.OracleClient to Oracle.DataAccess.Client.
    Installing and referencing the Oracle.DataAccess.dll all works fine.
    Then I changed all the references from System.Data.OracleClient to Oracle.DataAccess.Client and removed the System.Data.OracleClient.dll assembly from the web.config file.
    All compiles well, until I run the application, looks like the problem is the parameter use in the XSD file... the error I get is:
    Server Error in '/src' Application.
    Value does not fall within the expected range.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.ArgumentException: Value does not fall within the expected range.
    Source Error:
    Line 8864: global::Oracle.DataAccess.Client.OracleParameter param = new global::Oracle.DataAccess.Client.OracleParameter();
    Line 8865: param.ParameterName = "Original_TIPOCOMISIONID";
    Line 8866: param.DbType = global::System.Data.DbType.VarNumeric;
    Line 8867: param.IsNullable = true;
    Line 8868: param.SourceColumn = "TIPOCOMISIONID";
    Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs Line: 8866
    Stack Trace:
    [ArgumentException: Value does not fall within the expected range.]
    Oracle.DataAccess.Client.OracleParameter.set_DbType(DbType value) +134
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.InitAdapter() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8866
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.get_Adapter() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8797
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.GetData() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8993
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
    System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
    System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +488
    System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1247
    System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +95
    System.Web.UI.WebControls.ListControl.PerformSelect() +34
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
    System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +18
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
    I'd like some help on how to make the XSD compile with the new provider, Oracle.DataAccess.Client.
    Many thanks in advance for any help!
    Pieter

    MS OracleClient binds parameters by name. ODP.NET binds by position. If you want to change ODP.NET's default parameter binding behavior, set:
    OracleCommand.BindByName = true;
    Do this for every OracleCommand that binds parameters.

  • Oracle.DataAccess.dll Error upon Deployment

    Hi,
    I have an application which has an optional Database Source setting (SQL | Oracle). The Oracle Database is used only when the application is set to run on Oracle Mode. My problem is when I deploy the application it seems that I need to install Oracle ODP.net even if I desired to run on SQL mode. I tried some work around, I copied Oracle.DataAccess.dll (without installing ODP.net) to the BIN folder of my application and deleting the Oracle reference at the assemeblies in the WebConfig. On the first run I get an error about oracle versions.. but when i refresh the page this error is gone.
    Please advise me on what shall be done in this case. I want the on first load the error will be gone.
    Thanks

    The Oracle.DataAccess.dll is variously located at
    client 9i it's at C:\oracle\ora9i\bin
    version 10.1 it's at C:\oracle\product\10.1.0\Client_1\BIN
    Version 10.2 it's at C:\oracle\product\10.2.0\client_1\ODP.NET\bin\2.x for the .net 2.0 version.
    There is also C:\oracle\product\10.2.0\client_1\ODP.NET\bin\1.x for the .net 1.1 version.
    I don't have version 11.x so I can't say for that release.
    If you used different Oracle Home directories then your locations would be slightly different.

  • Upgraded to 64 bit Oracle DataAccess.dll and now more open cursors errors

    Hi, We recently converted from .net framework 1.1 application to .net 4.0 framework for 64 bit. We installed the 64 bit version of Oracle DataAccess dll. It now seems like we are getting many more open cursor error messages in our application. The open_cursor value set in the database has not changed and other than the 64 bit Oracle and .net 4.0 framework nothing has changed. I was just curious if anyone else that has converted to the 64 bit Oracle DataAccess dll has experienced an increased number of open cursor errors? If so, what was the resolution.
    I apprecieate any feedback.
    Thanks

    What do you have /32BIT flag set to in the assembly? Ie, was it compiled with AnyCPU, x86, etc? You can use corflags.exe with the .net sdk to find out.
    Prior to VS2010, the default was AnyCPU which meant it ran as 64 bit on 64 bit OS, and 32 bit on 32 bit OS.
    As of VS2010, the IDE defaults to x86, which means it runs as 32 bit no matter what.
    32 bit apps need 32 bit odp/client. 64 bit apps need 64 bit odp/client.
    The error you're getting usually means you have the wrong bits (32/64) of the Oracle client installed.
    Assuming you have the wrong client bits installed, you could either
    a) make the app run as the other bits by setting/clearing the 32BIT flag (also by using corflags.exe)
    b) install the other bits of Oracle client software. a 32 bit home and a 64 bit home play rather nicely together for the most part, but you need to install them into separate homes.
    Hope it helps,
    Greg

  • Unable to load Oracle.DataAccess

    Hi ,
    I have created a website project on .net framework 4.0 in Visual Studio 2010 . But I am unable to add reference the Oracle.DataAccess dll. It is continously throwing the error " unable to load assembly Oracle.DataAccess . The system cannot find the file specified. "
    But when I tried adding the reference in a web application project , it gets added. But when run the project it is throwing the same error. On the web page the error thrown is this :
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess' could not be loaded.
    === Pre-bind state information ===
    LOG: User =***********
    LOG: DisplayName = Oracle.DataAccess
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: Oracle.DataAccess | Domain ID: 2
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    Any help on this , please.. I have been trying all sorts of things and nothing seems to workl.

    BadImageFormatException occurs when you have a bit mismatch.
    1) What is the TargetCPU set to when you compiled?
    2) Are you running the app on 32 bit or 64 bit OS?
    3) Confirm whether the app is running as 32 bit or 64 bit in the problem environment (open task manager, click the process tab, is there a *32 next to the name?)
    4) Did you install 32 bit Oracle client or 64 bit Oracle client?
    Cheers,
    Greg

  • Unable to get the  Oracle.DataAccess namespace

    I'm trying to connect to remote 11g Oracle database using Oracle.DataAccess; working on Visual Studio 2008 installed on Windows XP.
    I have downloaded and installed Oracle 11g ODAC and Oracle Developer Tools for Visual Studio 11.1.0.7.20 .
    I have also installed OracleXEClient.
    I have successfully connected to the database in the Server Explored -> Data connection.
    I have successfully connected using the Sql data source. The connection String Provider is providerName="Oracle.DataAccess.Client".
    But I cant import - use the Oracle.DataAccess;
    using Oracle.DataAccess;
    I get this error
    Error     1     The type or namespace name 'Oracle' could not be found (are you missing a using directive or an assembly reference?)     
    How can I solve this problem?
    Edited by: Daniel Dimov on Apr 29, 2010 10:26 PM

    Hi Ershad,
    Check the value of the ORACLE_HOME variable.
    Also check other oracle variables.
    Please check this link:
    /community [original link is broken];jsessionid=8d92200630d63622db0ec9a0476182d4ea3eddad1206.e34Tb34Lb34PbO0Lb3eTahiPc3yNe0?messageID=1104338&#1104338
    Regards,
    Siddhesh

  • Oracle.DataAccess.dll on Windows 7 64 bit

    Hi,
    I am migrating a .Net 3.5 windows class library from WinXP 32 bit to Win7 64 bit. I use Oracle 11g 64 bit client to connect to database.
    my code works in Debug build but not in Release build. here is the error message:
    "An attempt was made to load an assembly with an incorrect format:"
    I did not complete uninstall by Oracle Deinstall, and re-install it.
    Debug build have a waring:
    "Assembly generation -- Referenced assembly 'Oracle.DataAccess.dll' targets a different processor."
    Release build still the same incorrect format error.
    here is more information:
    under C:\Windows\assembly
    Oracle.DataAccess     2.112.1.0     89b483f429c47342     AMD64
    Oracle.Web          2.112.1.0     89b483f429c47342     AMD64
    How should I fix it? should I download and install "64-bit Oracle Data Access Components (ODAC)"? What's difference between ODP.net in Oracle client and in ODAC?
    Thank you,
    Wes
    Windows 7 Pro, 64 bit, Visual Studio 2010, Oracle 11g 64 bit client

    What do you have /32BIT flag set to in the assembly? Ie, was it compiled with AnyCPU, x86, etc? You can use corflags.exe with the .net sdk to find out.
    Prior to VS2010, the default was AnyCPU which meant it ran as 64 bit on 64 bit OS, and 32 bit on 32 bit OS.
    As of VS2010, the IDE defaults to x86, which means it runs as 32 bit no matter what.
    32 bit apps need 32 bit odp/client. 64 bit apps need 64 bit odp/client.
    The error you're getting usually means you have the wrong bits (32/64) of the Oracle client installed.
    Assuming you have the wrong client bits installed, you could either
    a) make the app run as the other bits by setting/clearing the 32BIT flag (also by using corflags.exe)
    b) install the other bits of Oracle client software. a 32 bit home and a 64 bit home play rather nicely together for the most part, but you need to install them into separate homes.
    Hope it helps,
    Greg

  • App.config tag oracle.dataaccess.client not recognized on windows 7...

    Hi all,
    I have an application that is working fine on windows XP. On windows 7, the same application cannot work cause of the tag oracle.dataaccess.client you can see below which is not recognized by the system. As soon as I start the application I get an error
    message
    Unrecognized configuration section oracle.dataaccess.client. Can someone help please before I get  nuts.
    <oracle.dataaccess.client>
    <settings>
    <add name="&quot;EA_SERVICES&quot;.&quot;SLI_SECURITY_PKG&quot;.&quot;SEC_GROUPS_ADD&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'"/>
    <add name="&quot;EA_SERVICES&quot;.&quot;SLI_SECURITY_PKG&quot;.&quot;SEC_GROUP_MEMBERS_ADD&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'"/>
    <add name="&quot;EA_SERVICES&quot;.&quot;SLI_SECURITY_PKG&quot;.&quot;SEC_OBJECTS_ADD&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'"/>
    <add name="&quot;EA_SERVICES&quot;.&quot;SLI_SECURITY_PKG&quot;.&quot;SEC_RIGHTS_ADD&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'"/>
    <add name="&quot;EA_SERVICES&quot;.&quot;SLI_SECURITY_PKG&quot;.&quot;SEC_RIGHT_GROUPS_ADD&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'"/>
    <add name="&quot;EA_SERVICES&quot;.&quot;SLI_SECURITY_PKG&quot;.&quot;SEC_USERS_ADD&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'"/>
    </settings>
    </oracle.dataaccess.client>
    Sherman Body love

    Since this is an oracle section, I think you'll get more help over at the oracle forums.
    https://community.oracle.com/community/developer/english/oracle_database/windows_and_.net/oracle_developer_tools_for_visual_studio
    I would check the versions of the odp.net (oracle.dataaccess.dll) on both machines. The XP machine probably has the 11g client on it. And the windows 7 machine probably has the 12c client on it.  

Maybe you are looking for