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

Similar Messages

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

  • 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

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

    Hi,
    I am using windows 7 64 bit Enterprise Edition, Visual Studio 2010 Premium, and my app is built using .net framework 4.0. I downloaded and install ODP.NET 11.2.0.32 but when I add reference Oracle.DataAccess to my app, its giving me the following error, *"Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."*
    I have checked other threads on this same topic, but I found that I have proper version (64bit) of ODP.NET as per my OS, Visual Studio & .net framework.
    Am I missing something, please help.

    Hi,
    I manage to resolve the error, the error is though due to a different reason,
    I was trying to add ODP.Net 64bit reference directly to a Web Site project in Visual Studio 2010, then find out that this is not possible as the web site builds based on aspnet worker process, and that is 32bit, hence there was a problem referencing the 64bit ODP.NET assembly.
    So I created a class library project for any cpu and refer the 64bit assembly in there, and refer the class library project in the main web site, and the problem solved.

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

    can any one provide a patch or way around on windows 7 64bit amd, for odp.net 11g, as the policy doesnt dot get registered for amd64 bit platform in c:/windows/assembly, one can see policy for 'Oracle.DataAccess 2.111.7.20 0n x86 but not for amd64.
    help in this regard would be highly appreciated

    11.1.0.7.20 simply does not exist for x64.
    The highest x64 version is currently 11.1.0.7.0.
    If you need 11.1.0.7.20 functionality, you'll need to run the app as 32 bit, at least until 11.2 comes out (due out Q1CY2010)
    Hope it helps,
    Greg

  • 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' 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" or one of its dependencies

    Hi All,
      I am trying to run this web application. I keep getting this error
    "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."
    Exception details: System.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."
    Below are the things that I already tried.
    1) replaced all the oracle dll's with 32 bit oracle dll i.e 2.112.3.0
    I have 32 bit client installed on 64 bit machine. The operating system is windows 7.
    2) compile each individual project individually. Deleted all the oracle dependent files dll and then added the 2.112.3.0 dll's individually and then compiled each project
    3) Register the 32 bit dll on GAC using this statement
    gacutil /i %ORA_HOME4%\odp.net\bin\4\Oracle.DataAccess.dll
    gacutil /i %ORA_HOME4%\asp.net\bin\4\oracle.web.dll
    for the above two statements, I copied the gacutil.exe from c:\Program Files(x86)\Microsoft sdk\windows\v7.0A\Bin\NETFX4.0 Tools\X64
    to C:\ drive and then
    I executed the above two statement:
    gacutil /i %ORA_HOME4%\odp.net\bin\4\Oracle.DataAccess.dll
    gacutil /i %ORA_HOME4%\asp.net\bin\4\oracle.web.dll
    when I excecuted the above two statements, I didn't get any message, I exceuted them in Dos windows under administrator privilege.
    4) I also deleted all the Temporary ASP.net files from this location
    c:\windows\Microsoft.Net\V4.0.30319\temporary ASP.net files
    I also changed the web application build Platform target to X86, Originally, it was at "ANy CPU". out of frustration, I also tried changing the platform target to X64 and then I got the error message saying
    " Cold not load file or assemble . webapp" or one of its dependencies. An attempt was made to load a program with an incorrect format.
    I don't have IIS installed on my computer, I am running this application in visual studio 2010 so I think it will be using the inbuild IIS that comes with visual studio.
    I spend lot of hours resolving this issue, but still getting the same error again and again.
    any help or hint will be highly appreciated.

    You have a 32/64bit mismatch going on.
    Possibly the bit where you said you replaced the .dll's with 32 bit Oracle dll's is the source of the problem.
    You needs that Oracle.DataAccess managed wrapper to be able to locate the underlying oci client dlls of the appropriate version.
    The ODP .net install guide is very very good and thorough and straight forward to read and use and understand and explains how to achieve this.
    Also what is the target compile type of your VS project? That'll have to be 32 bit, or any as well.

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

Maybe you are looking for

  • Setup Cluster using Solaris Container data service

    We have a two-node cluster that we would like to use to create either a zone cluster or use the Solaris Container data service that would create a scalable (or multiple master) data service of two zones, one on each node. We have an app running in th

  • Incremental Backups are Cumulative Vs Differential??

    Dear all, The followings are Weekly Full Backup and Daily Backup scripts: CONFIGURE CONTROLFILE AUTOBACKUP ON; CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS; allocate channel ch1 type disk format '/u02/db/backup/RMAN/backup_%d_%t_%s_%p_%U.b

  • Need video in ppt - QT choppy

    I need to insert a 15 min. video in a powerpoint presentation. The iMovie works great but when I exported it "Movie to Quicktime Movie" with default settings, the qt playback is at times choppy. This is before and after inserting into PPT. Using 10.4

  • Viewing PDF Portfolio's

    Hello, I have created a PDF Portfolio and am trying to send it to various people. How can they view it without Adobe Pro?? Thank you

  • Live site with mobile site under construction

    I have developed a desktop site which has been uploaded to a local server and is now live. I am now working on the smartphone version of the site which may take a few weeks to complete. I notice that once the mobile version is opened in the Muse file