ASPNETCOMPILER error ASPCONFIG Could not load file or assembly Oracle.Data

I have migrated my .Net solution from 3.5 to 4.0 which consist of a class library and a web service. Web serivice is dependent on class library and the class library uses oracle.dataaccess.dll version 4.112.3.0. I have installed ODAC 11.2.0 in my machine.
When I try to build the solution using MSBUILD.EXE I am getting the below error on my build machine.
ASPNETCOMPILER : error ASPCONFIG: 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. [D:\VEROS_BuildFolder\CDDS_MERGE_CODEDROP_.NETUPGRADE\WEB Services\AppraisalSubmission\AppraisalSubmissionService.metaproj]
And I try to build from VS2010, it is building successfully.
But we need to build only using MSBUILD.EXE which resides in "C:\Windows\Microsoft.NET\Framework\v4.0.30319" path. While building using MSBUILd.EXE the Oracle.DataAccess.dll is getting copied into the BIN folder of the web service. It should reference from GAC location. My build serveer is 64 bit win2008 server. when I checked the dll version install using GACUTIL , I got the below result
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools>gacutil /l oracle.dataaccess
The Global Assembly Cache contains the following assemblies:
oracle.dataaccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=AMD64
oracle.dataaccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=AMD64
oracle.dataaccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86
Previous the application was building successfully using framework 3.5 and Oracle.DataAccess.dll version 2.112.3.0.
Please help to build my applicaiton using MSBUILD 4.0 version.

Typically, when you get the "load a program with an incorrect format" exception, it's a mismatch in the bit-ness of the Oracle client you're using and the project you're building. By default, .net builds in AnyCPU mode. That means if you do it on a 64 bit system, you'll get a 64 bit (x64) program. That doesn't work with a 32 bit Oracle client. Usually, you'll need to force MSBUILD to build a 32 bit (x86) result. That will use the 32 bit Oracle client successfully. There's probably a command line switch for that. When building in Visual Studio, you can do it from the Build > Configuration Manager menu.
Now in this case it looks like you actually have both 32 and 64 bit versions of Oracle.DataAccess in the GAC, so I'm not sure if you have both Oracle clients or not. If you have one in the \bin with Copy Local = True, you could be getting the wrong one. You'll want to set Copy Local = False on the properties of the reference and remove that file from the \bin.

Similar Messages

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

  • 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

  • Deploy Web Site Error:Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies

    I have created a ASP.NET web Site (not Web application), using Visual Studio 2012 Ultimate and "SQL Server Compact 4.0 Local Database" in my C# Code.
    I am able to successfully compile & publish the website to another IIS Web Server, with Operating System Windows Server 2008 R2 Standard. I can even test, successfully, this website on the machine I developed it in.
    I am publishing the website, from within Visual Studio, to a Network web server running IIS.  To Publish I am using Build-> "Publish Web Site".  In the Publish Profile, I am using Web Deploy Method. Even though I am using, successfully,
    "SQL Server Compact 4.0 Local Database" in my website, the "settings" (in Publish Profile) does not detect any Databases in the project. Which may not be a problem.
    When I try to bring up the web site on the IIS Web Server machine I get the following error..    
    Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies .
    As my project is a Web Site, not Web Site Application, I do not have a references node in the Solution Explorer. I think the System.Data.SqlServerCe.dll, which is type GAC in my project, is not getting published to the webserver, which is causing this Error.
    Can I copy this .dll over manually ? If yes, where to put on the ISS Web Server ? I do not see any bin folder.
    Any help to resolve this error will be appreciated.
    diana4

    Hello.. I went ahead and created web application project and have gone past that error. But I have a new error now
    System.Data.SqlServerCe.SqlCeException: Unable to load the native components of
    SQL Server Compact corresponding to the ADO.NET provider of version 8876.
    Install the correct version of SQL Server Compact. Refer to KB article 974247
    for more details.
    Compiling and Publishing (Deployment) are both successful 
    In my project, when adding reference to SQL Server Compact Edition , there are 2 possible locations to reference the DDL from:
    C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Private
    C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Desktop.
    I have tried both. I get the same error as shown above.
    Interestingly, in My WebConfig, I do not see any reference to System.Data.SqlServerCe.
    Yet, the Website works when I click on Ctrl+F5 
    diana4

  • Parser Error Message: Could not load file or assembly 'DreamweaverCtrls

    Hi,
    After attempting to view my first asp.net page I was greeted
    with the following error:
    Parser Error
    Description: An error occurred during the parsing of a
    resource required to service this request. Please review the
    following specific parse error details and modify your source file
    appropriately.
    Parser Error Message: Could not load file or assembly
    'DreamweaverCtrls, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=836f606ede05d46a' or one of its dependencies. The
    system cannot find the file specified.
    Source Error:
    Line 1: <%@ Page Language="VB" ContentType="text/html"
    ResponseEncoding="iso-8859-1" %>
    Line 2: <%@ Register TagPrefix="MM"
    Namespace="DreamweaverCtrls"
    Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutra l"
    %>
    Line 3: <MM:Insert
    Line 4: runat="server"
    Source File: /s4/admin/wiki1/detail.aspx Line: 2
    Assembly Load Trace: The following information can be
    helpful to determine why the assembly 'DreamweaverCtrls,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a'
    could not be loaded.
    I have deployed the files using dreamweaver and it says "no
    files to deploy". I have a bin folder with the correct .dll in it,
    in the correct root folder. So whats happening??
    Please help
    Cheers
    G

    Are you testing on the server or locally. If the latter is
    true make sure
    that a copy of the controls is in a bin folder at the
    C:\inetpub\wwwroot
    level.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "graham6117" <[email protected]> wrote in
    message
    news:e2ngbc$sib$[email protected]..
    > Hi,
    >
    > After attempting to view my first asp.net page I was
    greeted with the
    > following error:
    >
    > Parser Error
    > Description: An error occurred during the parsing of a
    resource required
    > to
    > service this request. Please review the following
    specific parse error
    > details
    > and modify your source file appropriately.
    >
    > Parser Error Message: Could not load file or assembly
    'DreamweaverCtrls,
    > Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=836f606ede05d46a' or one
    > of
    > its dependencies. The system cannot find the file
    specified.
    >
    > Source Error:
    >
    >
    > Line 1: <%@ Page Language="VB"
    ContentType="text/html"
    > ResponseEncoding="iso-8859-1" %>
    > Line 2: <%@ Register TagPrefix="MM"
    Namespace="DreamweaverCtrls"
    >
    Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,cultu
    > re=neutral" %>
    > Line 3: <MM:Insert
    > Line 4: runat="server"
    >
    >
    > Source File: /s4/admin/wiki1/detail.aspx Line: 2
    >
    > Assembly Load Trace: The following information can be
    helpful to determine
    > why
    > the assembly 'DreamweaverCtrls, Version=1.0.0.0,
    Culture=neutral,
    > PublicKeyToken=836f606ede05d46a' could not be loaded.
    >
    >
    > I have deployed the files using dreamweaver and it says
    "no files to
    > deploy".
    > I have a bin folder with the correct .dll in it, in the
    correct root
    > folder. So
    > whats happening??
    >
    > Please help
    >
    > Cheers
    >
    > G
    >

  • Parser Error Message: Could not load file or assembly 'Microsoft.Office.Access.Server.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies,

    Dear All,
       I have installed Sharepoint Foundation 2010 in my server 2012 R2 machine. and I restore my existing content database backup into new site collections. and I'm trying to browse the site collection in window, the below error shown.. 
    Parser Error
    Message: Could not load file or assembly 'Microsoft.Office.Access.Server.UI, Version=14.0.0.0,
    Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.
    <add assembly="Microsoft.Office.Access.Server.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
     I tried to checked the assembly folder having the DLL or not. but its
    not available in the C:\Windows\assembly location. and I'm tried to resolved this issue by HOTFIX. but unfortunately, I can't find out the patch file for MOSF 2010 in server 2012 r2.
    Please help me on this issue. I'm very new to sharepoint...
    Any help will be more appreciated.
    Thanks,
    Mubarak

    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]

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

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

    I am getting the following error whenever I try to run ANY .NET Web application. It looks like the ODP.NET installer pooched IIS.
    Could not load file or assembly 'Oracle.Web, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
    I searched for and copied the C:\oraclexe\app\oracle\product\10.2.0\client_1\ASP.NET\bin\2.x\Oracle.Web.dll file into C:\Windows\assembly, but that didn't help.
    TIA,
    Miles

    One thing might be if the web server has multiple versions of Oracle installed, then check to see which is first in the path. Another would be that at the least IIS would need to be restarted after the Oracle install, for the path to take effect, possibly the whole machine would need a re-boot for this.

  • Could not load file or assembly 'Oracle.ManagedDataAccessDTC'

    I'm a little bit stuck... I've been trying to replace System.Data.OracleClient in my application for a while now, and was very encouraged to see a managed DLL option.
    I have followed the quick start instructions in the readme file, but my site returns this error on every page:
    Could not load file or assembly 'Oracle.ManagedDataAccessDTC' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    My development machine is 64 bit, and my server is 32 bit. I've tried to include either version into the /bin directory in my web application, but there is no change to the error message. I've also tried setting "promotable transaction=local" in my connection string to try and mitigate the need for this assembly, and that doesn't change the error.
    Interestingly (to others... to me it's terrifying) my application will no longer run even if I remove all references to the managed DLL, remove all 'using' statements, and try to revert my site back to the way it was... I am still getting the same error on load for any page.
    As you might expect, I am a complete, total noob with Oracle. I'm about as lost as can be.

    As a followup to this - I deleted everything off the server and republished. Then, watching the video, I followed along step by step. Everything appeared to work fine for my test page.
    I am a little bit lost however, trying to implement this in the rest of my application. The documentation doesn't have an example (that I can see, anyway) for how to reference the managed client in the <connectionStrings> section of my web.config file.
    I am also not too clear, if I need to have the tnsnames.ora file in my /bin/debug folder, if I have defined a connection string like this.
    <add name="MYNAME" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MYHOST)(PORT=MYPORT))(CONNECT_DATA=(SERVICE_NAME=MYSERVICENAME)));User Id=USERID;Password=PASSWORD;Persist Security Info=False" providerName="Oracle.ManagedDataAccess.Client" />
    (actual values in the above tag removed to protect the innocent...)
    Is Oracle.ManagedDataAccess.Client the preferred providerName for this tag?
    Currently, I am getting the following error:
    Unable to find the requested .Net Framework Data Provider. It may not be installed

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

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

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

    I have a C# windows application that started to give me the error when I try to run it:
    Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20.
    I was adding and removing references and re-build when this started. The builds are successful Is there anything I can do to correct it? Other apps that I uses ODT are fine. The full error is below.
    Thanks,
    Kim
    System.IO.FileLoadException was unhandled
    Message="Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)"
    Source="perdiem_snapshot"
    FileName="Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342"
    StackTrace:
    at perdiem_snapshot.frmDataGrid..ctor()
    at perdiem_snapshot.Program.Main()
    at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
    at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
    at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
    at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
    at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()

    Hi There,
    Were you able to resolve the issue. I am getting the same kind of error , when i am trying to deploy the application on a handheld device (symbol Mc9000g).
    Do let me know if you were able to resolve it.
    I am getting below message.
    Could not load type 'Oracle.DataAccess.Client.OracleConnection' from assembly 'Oracle.DataAccess, Version=10.1.0.400, Culture=neutral, PublicKeyToken=89B483F429C47342'.
    Kiran
    Message was edited by:
    Kpatel

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

    Hello Everyone,
    I am simply trying to insert into an oracle database table. When I try to run the insert from my visual studio program after a button is clicked the program stops and I get "Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0" error.
    Why is this? I have added the reference and put "using Oracle.DataAccess;" in the file. The code is below. Any suggestions?
    OracleConnection Con = new OracleConnection(ConfigurationManager.ConnectionStrings["ConnectionString1"].ToString());
    OracleCommand sqlCmd = new OracleCommand();
    //OracleDataReader dr;
    sqlCmd.Connection = Con;
    Con.Open();
    sqlCmd.CommandText = "INSERT INTO FGID values (0, 0, 0, ' ', sysdate)";
    sqlCmd.ExecuteNonQuery();
    sqlCmd.Clone();
    MessageBox.Show("Record Inserted!");
    M.N.

    Hi Boa_nerges,
    >>Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0" error.
    Whether all projects have the same issue?
    Please make sure that it is not the platform target issue in your project property. Or the setup version issue.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/9827bb73-a58b-415d-ad93-8e08f3a1258b/need-urgent-help-could-not-load-file-or-assembly-39oracledataaccess-version411220?forum=csharpgeneral
    http://forums.asp.net/t/1661229.aspx?How+to+change+assembely+reference+to+Oracle+DataAccess+in+prod+
    In addition, if still no help, since the oracle is the third party tool, I suggest you post this issue to the Oracle forum:
    https://community.oracle.com/community/database
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How can i transfer my iphone music to a new computer?

    I have a new work computer and I want to put my iPhone music in my iTunes on that machine, but it won't let me.  Why???

  • What is a database?

    This question recently arose: "What's an Oracle database?" It's a common question for someone new to Oracle to have. I was going to answer in the thread, but I decided to put this thread here, where others can point to it in the future. It's a common

  • Motion menus just with audio

    Hi, I'm trying to create a "motion" menu using just an audio file associated with the menu. The idea is to have a static menu with a background music. I tried to to do this but when I build the DVD, Encore (CS4) complains about the pixel aspect ratio

  • Print Server 2012 R2

    Hi, I am planning to implementation of Print server 2012 r2, but I am little confusion, below futures are available in 2012 r2? Machine Name User Name Document Name Date /Time Printer Name Page count  Limitation of printing  Thanks,

  • Procedure for upgrading to 3.5?

    Assuming version 2 is legally installed on my machine, Will I encounter any problems considering verion 2 does not run on intel macs? Does it simply have to be installed, and then the 3.5 upgrade will install fine after that? Also, just so I have thi