Data set in Data not fill properly using ODP(Oracle.DataAccess.dll 64bit)

public void BindFun()
            OracleParameter[] o_OracleParameters;
            OracleConnection o_Connection = new OracleConnection(VRODPConnection());
            OracleCommand o_OracleCommand = new OracleCommand();          
            OracleDataAdapter o_OracleDataAdapter;    
            DSSearchResults = new DataSet();
            // Narendra : 03/11/2014
            o_OracleParameters = new OracleParameter[16];
            o_OracleParameters[0] = new OracleParameter("iv_LastName", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[0].Value = "";
            o_OracleParameters[1] = new OracleParameter("iv_FirstName", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[1].Value = "";
            o_OracleParameters[2] = new OracleParameter("iv_MiddleName", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[2].Value = "";
            o_OracleParameters[3] = new OracleParameter("iv_MotherMaidenLastName", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[3].Value = "";
            o_OracleParameters[4] = new OracleParameter("v_SearchRangeFrom", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[4].Value = "01-01-2014";
            o_OracleParameters[5] = new OracleParameter("v_SearchRangeTo", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[5].Value = "12-01-2014";
            // "01-12-2014";//Narendra 04/11/14 14:17//
            o_OracleParameters[6] = new OracleParameter("v_RecordTypeId", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[6].Value = "2,4,5";
          // IN this
            o_OracleParameters[7] = new OracleParameter("v_PagingRequired", OracleDbType.Int32, ParameterDirection.Input);
            o_OracleParameters[7].Value = 1;
            o_OracleParameters[8] = new OracleParameter("v_PageNum", OracleDbType.Int32, ParameterDirection.Input);
            o_OracleParameters[8].Value = 1;
            o_OracleParameters[9] = new OracleParameter("v_PageSize", OracleDbType.Int32, ParameterDirection.Input);
            o_OracleParameters[9].Value = 1000;
            o_OracleParameters[10] = new OracleParameter("v_SortFieldName", OracleDbType.Varchar2, ParameterDirection.Input);
            o_OracleParameters[10].Value = "VitalRecordsLastName";
            o_OracleParameters[11] = new OracleParameter("v_Sealed", OracleDbType.Int32, ParameterDirection.Input);
            o_OracleParameters[11].Value = 1;
            o_OracleParameters[12] = new OracleParameter("v_CurrentRecordsOnly", OracleDbType.Int32, ParameterDirection.Input);
            o_OracleParameters[12].Value = 0;
            o_OracleParameters[13] = new OracleParameter("v_AccessID", OracleDbType.Int32, ParameterDirection.Input);
            o_OracleParameters[13].Value = 5;
            o_OracleParameters[14] = new OracleParameter("v_TotalRecs", OracleDbType.Int32, ParameterDirection.Output);
            o_OracleParameters[14].Value = 0;
            o_OracleParameters[15] = new OracleParameter("pResult", OracleDbType.RefCursor);
            o_OracleParameters[15].Direction = ParameterDirection.Output;
            o_Connection.Open();
            o_OracleCommand.Connection = o_Connection;
            o_OracleCommand.CommandText = "VR_AllGeneral_Search";
            o_OracleCommand.CommandType = CommandType.StoredProcedure;
            o_OracleCommand.Parameters.AddRange(o_OracleParameters);      
            o_OracleDataAdapter = new OracleDataAdapter(o_OracleCommand);o_OracleDataAdapter.Fill(DSSearchResults);
           dataGridView1.DataSource = DSSearchResults.Tables[0];
            o_Connection.Close();
            o_Connection.Dispose();
          // 2 pass than ans total record =127 than after pass 4 ans =413 than after 5 ans=413
          // 4 pass than ans total record =286 than after pass 2 ans =413 than after 5 ans=413
           // 5 pass than ans total record =0 than after pass 2 ans =127 than after 4 ans=413
What is the problem of above code pls info 

Hi,
but when i install oracle express edition 10g on that machine i am able to connect to the remote database
Does the client machine have an Oracle Client installed before you do this at all? An Oracle Client is required in some fashion to use ODP.NET - either a full-client or the instant client if you are using a version that supports instant client.
- Mark

Similar Messages

  • Oracle.DataAccess.dll not fetching data inside deployed (IIS 6.0) server

    Hi all
    I am fetching data from oracle data base in asp.net application. To achieve this functionality i have used Oracle.DataAccess dll . In my developement environment it working fine.
    But once I deployed this code on IIS 6.0 it is stopped working and I checked my log and found connection not get established . Then I make sure Oracle.DataAccess.dll present in to bin folder also I try to put this dll in side GAC, but still my code is not working on deployed server.
    Any help is highly appreciate
    Thanks
    Vikram

    Hi Jenny,
    Thanks a lot for quick reply
    Here is below stack exception detail
    System.TypeInitializationException was caught
    Message="The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception."
    Source="Oracle.DataAccess"
    TypeName="Oracle.DataAccess.Client.OracleConnection"
    StackTrace:
    at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
    InnerException: Oracle.DataAccess.Client.OracleException
    DataSource=""
    ErrorCode=-2147467259
    Message="The provider is not compatible with the version of Oracle client"
    Number=-11
    Procedure=""
    Source="Oracle Data Provider for .NET"
    StackTrace:
    at Oracle.DataAccess.Client.OracleInit.Initialize() at Oracle.DataAccess.Client.OracleConnection..cctor()
    InnerException:
    Thanks
    Vikram

  • What is data sets,parent data,child data in generic technology connector..

    Hi All,
    I am a new learner to OIM. Please try to give a brief details of data sets,child data,parent data,providers in Generic Technology Connectors..
    Thanks in advance..

    Description:
    You get this error, if you are passing reserved key words to the XML Parser or the XML syntax is wrong.
    Cause:
    I suppose, you are getting this error from tcImportOperationsIntf's addXMLFile() method. From your error message it looks like, when a file is submitted to XML Parser during the import operation, syntax is wrong.
    Solution:
    Check the code that is generating the xml file. Easy way to test is : open the xml file in IE. If there is syntax error, IE will throw you the error.
    Hope this helps you.
    Cheers,
    Raghavendra

  • Blue Screen. Your explorer set top is not authorized for use.

    07/25/14Your explorer set top is not authorized for use.  Please call 1-800-266-2278.  Calling doesn't work, I select tech support (#1) and the phone does not recognize it.  The blue screen with the words explorer set top is not authorized for use has come on the screen quite a few times in the last 3 months, but the TV seems to correct itself.  But today it doesn't.

    Hi lyraele, reviewing your account I am seeing poor upstream signal issues that are likely causing your video issues.  Please follow JayInAlg instructions and I will private message you to schedule a technician if you are still having issues.
    Thank you

  • 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.

  • 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

    Server Error in '/' 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.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
    Source Error: 
    Line 31: <compilation debug="true">
    Line 32: <assemblies>
    Line 33: <add assembly="Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89B483F429C47342" />
    Line 34: <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    Line 35: <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    Source File: D:\AverySignatureBinders\httpsdocs\ASBNet\web.config    Line: 33 
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=2.102.2.20, 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].

    For Adapter Pack 2013 the following Oracle Client(s) are needed:
    Supported client versions: Oracle Data Access Components for Oracle Client 12.1, Oracle Data Access Components for Oracle Client 11.2.0.1
    And please bear in mind that both the 32- and 64 bit versions are needed.
    Morten la Cour

  • Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20

    I have visual Studio 2008 and ODAC installed on Winows 7, my VS2008 application retrieves data from Oracle Db 10g xe. I get this error report wih every attempt to connect and interact wih the database:
    "Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20,
    Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies.
    The system cannot find the file specified."
    What could be the issue? The same code that worked on Vista is the one returning this error report.

    I wonder if you could try the following command:
    gacutil.exe /l Oracle.DataAccess
    This should display the version number of the current assembly that it is GACed. In case that does not correspond to the version 2.111.6.20 then try:
    gacutil.exe /u Oracle.DataAccess
    and then find the path to the Oracle.DataAccess.dll assembly and issue the following command:
    gacutil.exe /i {path}/Oracle.DataAccess.dll
    The first command will display the version of the newly GACed assembly. If it still not what you are looking for please pass along the version that it is displayed.
    In case the version will match 2.111.6.20, then retry to use VS2008 to connect to your Oracle DB.

  • Problem using oracle.dataaccess.dll

    Hi,
    I have an web application which uses Oracle.DataAccess.dll to communicate with and Oracle db. The web application deployed on 32 bit windows system works but not on windows server 2008 64 bit. I installed 10204_vista_win2k8_x64_production_db package, referenced the installed dll (version 2.102.4.0) from the project but I get the following error:
    Could not load file or assembly 'Oracle.DataAccess, Version=2.102.4.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
    Any help is appreciated. Thanks in advance.

    I had this problem too.
    I have not found any way to get ODP to work on a 64 bit machine. I have gone through more than 30 permutations of install combinations and all have their problems.
    Your's is one I remember.
    The error message does not give a good description of the problem. It CAN find it, but it can't load it.
    The main problem in my opinion is that Visual Studio is a 32 bit app and so are its tools. MS will say that is no big deal because they don't want to rewrite native code sooner than they have too. It is going to stay that way for 2010. Visual Studio is going to load a .dll to connect to Oracle in server explorer and in any datasets you have created with the designer...its going to use a 32 bit .dll now your application wants a 64bit .dll... see the problem? I beleive that when you install the ODP registry settings are made for viual studios sake, but I don't know what happens under the hood.
    Does visual studio give you any option at all to choose what assemblies to use for the IDE tools? nope
    I have tried 32 bit client, 64 bit client, ODACwithODP and every combination of them in every version oracle offers on their download site. Nothing worked 100%.
    I got
    1) "cannot load file x" when x is at the specified path
    2) BadImageFormat exception
    3) App worked but visual studio tools crashed the IDE
    4) installed all 3, but used the old system.data.oracleclient and tools worked sluggish or crashed.
    You can also combine the problem of Oracle provider along with the fact that 1/2 of Visual Studio's tools don't care about 64 bit programming. For example, I made a wcf service that as going to access my database. Well, guess what you can't use Visual Studio's WCF debugger because WcfSvcost.exe is 32 bit. Will it give you an informative error message? nope. Just a BadImageFormat Exception with no clue which file is causing the problem. spent a week of precious time on that one and thought it was an oracle provider issue.
    I have given up using ODP for now and am forced to use (4) System.Data.OracleClient just for the sake of getting any coding done at all instead of hacking my environment. It sucks. I got that working by installing 11r2 64 bit client in one home and 11r2 64bit client in another, then ODP in a 3rd. That way I can still use more friendly tools made for Oracle and let VS use the 32 bit client with the old System.Data.OracleClient dll.
    If anyone has the magic step but step to get both a working IDE with its tools remaining functional along with a working application on Windows 7 64bit, than please please let me know!

  • Could not load file or assembly Oracle.DataAccess, Version=4.112.2.0

    Hi There..
    I'm running the follows:
    1. OS : XP SP3
    2. VS 2010
    3. ODP Net 11.2.0.2.0
    When I set the ASP NET target framework to .NET 4 all running normally. However, if the set target to .NET 2 appears error "Could not load file or assembly Oracle.DataAccess, Version=4.112.2.0".
    What could be the problem ?
    Thanks,
    Iqbal

    Just figure it out..
    use assembly binding when targetted framework is 2.0
    <runtime>
              <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                   <dependentAssembly>
                        <assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89b483f429c47342"/>
                        <bindingRedirect oldVersion="4.112.2.0" newVersion="2.112.2.0"/>
                   </dependentAssembly>
              </assemblyBinding>
         </runtime>
    .. and all running back normally :D

  • 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]

  • Oracle.DataAccess.dll not loading in 64 - bit OS

    Hi All
    I have a console application that needs to be scheduled in task manager. My system is 32-bit operating system and I’m using Oracle.DataAccess.dll in my application to establish connection to the oracle db. The version is 2.112.1.0 and the processor architecture of this dll in C:\Windows\Assembly is x86. In my local m/c this dll works fine with all 3 build and target platforms – x64, x86 or AnyCPU. But when I copy the files to my staging server which is a 64-bit OS I’m getting the following exception. (Note: I’m also having Oracle.DataAccess version 10.2.0.100 which is also x86 available in C:\Windows\Assembly)
    System.BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    File name: 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' at
    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable D:\ProjectFolder\MyExecutable.exe
    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable D:\ ProjectFolder\MyExecutable.exe
    --- A detailed error log follows.
    === Pre-bind state information ===
    LOG: User = UserId
    LOG: DisplayName = Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    LOG: Appbase = file:///D:/ ProjectFolder/
    LOG: Initial PrivatePath = NULL
    Calling assembly : MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: D:\ ProjectFolder\MyExecutable.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    LOG: Attempting download of new URL file:///D:/ ProjectFolder/ Oracle.DataAccess.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    I have tried to build the application to target AnyCPU / x64 / x86. It fails in all 3 scenarios.
    There are other applications in the staging server where Oracle connection can be established. So ODP.Net should be registered in the server. So looks like problem with my console app. Does anyone have any idea what could be the problem?
    Thanks & Regards,
    Sree

    If I'm reading your post correctly, your application is built using ODP.net 2.112.1.0 (an 11gR2 client) and your other system has 10.2.0.100 (a 10g client).
    That's your problem. When .net tries to load the assembly, it looks for 2.112.1.0. Policy files that get installed when you install the client would allow it to use a newer version instead (like 2.112.3.0), but not to use an older version. So .net doesn't think you have a compatible Oracle client installed.
    You could manually add assembly binding redirects to force it to load 10.2.0.100, but I really don't recommend that given some differences between 10g and 11g (I tried that once and had some weird problems). You could also build the application using 10.2.0.100 instead.
    The best fix for this is to install 2.112.1.0 on the other system, or try out the managed client when it's out of beta (which doesn't need to be installed at all).

  • Could not load file or assembly 'Oracle.DataAccess' Windows Vista x64

    Ok now here is the funny part, this works fine when i'm developing ASP.NET applications ( i assume that is puts the dev web server into x86 mode), but when im trying to use Oracle.DataAccess DLL in a console application i get a '+Additional information: Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.+' error in visual studio when i try and debug and also when i try and run the console app.
    Using the latest ODP.NET 11.1.0.6.20, Windows Vista x64 SP1 (all updates installed), Visual Studio 2008 SP1

    never mind, figured it out, the Platform target in studio was on "Auto" and was defaulting to x64....

  • VS2008 - Could not load file or assembly 'Oracle.DataAccess...

    Hi all,
    After installing the ODAC 11g I am getting the following error when I try to run in debug mode a VS 2008 Win Form app that uses DataAccess.dll. The app is the HR_Connect.
    Here is the error -
    System.IO.FileNotFoundException was unhandled
    Message="Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."
    Source="HR_Connect"
    FileName="Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342"
    Do I need to install ODT as well?
    I thought I found the answer to my problem in another thread but alas the below does not help. After installing the ODAC 11g the file mentioned below is in both places already so nothing to move.
    Here is the reply.
    We believe we have found the solution to the package load failure errors in ODT 11g.
    Assuming that you received no errors or warnings during the installation, try the following:
    After installing ODAC 11g on a machine with Visual Studio 2005 and/or Visual Studio 2008:
    1) Close Visual Studio
    2) Copy over the MSVCR71.dll from%ORACLE_HOME%\oui\lib\win32 to %ORACLE_HOME%
    ..where %ORACLE_HOME% would be the directory where you installed ODAC 11g, for example C:\app\user1\product\11.1.0\client_1
    3) Restart Visual Studio, and attempt to use ODT.
    Please let me know if this fixes your problem!Thanks

    Hi the solution you posted is for "Package Load Failure" errors with Visual Studio. It doesn't sound like you are receiving that error, so that solution does not apply to you.
    Some suggestions:
    1) Repost this to ODP.NET forum. They likely have seen this before.
    2) Make sure when you are doing the install of ODAC that you are not getting any warnings or errors. If you are, make sure not to proceed, and instead resolve those install errors first.

  • Could not load file or assembly Oracle.DataAccess

    Hi, I have a web project in Visual Studio 2008 for .NET Framework 3.5 using ODP.NET. The app has been working under a 32bit machine with the 10.2 client for a few years. We are moving to new servers which are 64bit and require the 11.2 client. I am trying to get the project built and running on my laptop but it fails at the build. I have a 64bit laptop (Windows 7) and have installed the Oracle 11.2 64 bit client. I have confirmed in the c:\windows\assembly that the Oracle.DataAccess.dll says it is AMD64. However, when I try to build my project it says:
    Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b473f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format
    From the many posts I have read this happens when you are mixing 64bit and 32bit but from everything I see, all my stuff is 64bit and it should be ok. I can say I have uninstalled and reinstalled the client a few times but I think it's ok as I can connect to the database through sqlplus ok.
    Any ideas?
    Edited by: user6726317 on Aug 20, 2012 5:27 PM

    As has been mentioned, this problem is caused by conflicting 64/32 bit issues where you try to load the wrong type of assembly.
    In this case, since the project already was 32 bit I'd recommend you simply install the 32 bit version of ODP.net. This installs alongside the 64 bit one, and will let you run the application in 32 bit mode (which it was designed for). Make sure to change the build settings to x86 in Visual Studio.
    edit - For a web project, it'll either debug inside IIS or the Visual Studio development server, depending on how you have it configured in Visual Studio. I believe the development server is 32 bit like VS itself. IIS is 64, but an application pool can be configured to enable 32 bit applications. Either way, I wouldn't try changing the application from 32 bit to 64 bit without a good reason. Just run it as 32 bit with the 32 bit version of ODP.net 11.2.
    Edited by: Tridus on Aug 24, 2012 9:41 AM

  • Could not load file or assembly 'Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.

    Hi All,
    While trying to access oracle database from SharePoint facing "Could not load file or assembly 'Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."
    How to fix this issue?  Thanks in advance!

    Hi,
    According to your post, my understanding is that you get error while access oracle database in SharePoint.
    You can set “Enable 32-bit Applications” to true in the application pool for the web application, then check whether it works.
    For more information:
    https://www.learningpenguin.net/myblog/2014/02/03/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/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • Safari (and all other browsers) crashing!

    Hi, folks. Recently inherited a Power Mac: Mirrored Doors G4 Dual 867 512 RAM 60GB Hard Drive Tiger 10.4.11 Worked just fine for a couple of months, but has developed a weird problem where every browser likes to crash (Safari, Opera, and Firefox). I

  • AQ Native Correlation

    I've tried to used AQ native correlation, but I can't get it to work. Using the supplied example "AQOutboundCorrelation", I get the following output when receiving a reply (apparently native correlation is failing, but why?): <2006-11-15 12:18:41,923

  • Looking for Mac that can handle CPU intensive apps (Music & Video)

    Hi everyone, I am looking to get a new mac in the near future but wanted to know which Desktop mac is best for music and video? I was thinking of the new iMac but not sure if they are powerful enough? I need something that can handle CPU intensive st

  • Using Time Capsule as an external drive (media server)

    I know the answer is out there somewhere but I've been googling longer than it would take some one in here to answer my newbie question I'm making a total switch from PC to Mac. So I'll be getting a Macbook Pro and a Time Capsule for back up. Since m

  • Replacing Monitor on ibook

    Hi: A friend of mine dropped her ibook G4 and the monitor stopped working. Took it to the Apple store and they said it was just the monitor. Not wanting to pay the amount that Apple quoted, she purchased an LCD screen on ebay. She talked to the perso