How to change assembely reference to Oracle.DataAccess in prod

Ok -
In development I installed "ODAC Entity Framework and LINQ Beta (11.2.0.2.30)" so that we could have a 32 bit version of Oracle.DataAccess for ODP.Net.
In Visual Studio 2010 (on Windows Server 2008 R2) I made a reference to:
C:\Oracle\odp.net\bin\4\Oracle.DataAccess.dll.
This adds:
<add assembly="Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89B483F429C47342" />
to the assembly in the web.config.
We set the AppPool to Enable 32 bit applications and everything works great.
For anyone who doesn't know the story here, we do this because Visual Studio 2010 runs in 32 bit so you need the 32 bit ODAC/ODP.net components to get a development environment running.
I then publish the files and move to a 64 bit machine.
I downloaded the "ODAC112021Xcopy_x64.zip"
Then ran:
install.bat odp.net4 c:\oracle odac and I can see the Oracle.DataAccess.dll file at:
C:\Oracle\odp.net\bin\4\Oracle.DataAccess.dll.
Then added c:\oracle;c:\oracle\bin\;c:\oracle\bin\4 to the System Path.
At this point I would think I just replace the version and PulbicKeyToken in:
<add assembly="Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89B483F429C47342" />
on production to the versioin installed on prod.
So first thing I do is just remove that line on production to see what error I will get.
And I still get the same error:
System.IO.FileLoadException: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Actually this is if I move the new dll into the applicaitons bin directory.
If I remove the dll from the directory I get:
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.
So I put the line back in.
I right click on on the new Oracle.DataAccess.dll and click properties.
In the details tab I see verion is 4.112.2.0.
That makes sense. The 64 bit XCopy version is an earlier build then the 32 bit Beta that comes with Entity Framework and LINQ(Version=4.112.2.30).
So on production I change the Version attribute to: 4.112.2.0.
But now I get the same error:
System.IO.FileLoadException: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
(This is with the new dll back in the web app's bin directory as is the rest of the thread).
It's still looking for the same version of the assembly. Why is it doing that?
The web.config has a connection string with the ODP.Net provider type (Oracle.DataAccess.Client).
Which would take from the assembly reference.
It should not care what the version number is.
Could there be something in code somewhere that is specifically looking for the old dev box version?
Just what is the way to make it use the new assembly?
I would think the system would just know where to find the new dll.
Just as in development the add reference dialog knew that the dll was in c:\oracle\... rather then c:\program files(x86)... like out-of-the-box Microsoft assemblies. Because the system knows, right?
Edited by: 842453 on Mar 7, 2011 1:17 PM

Hi,
The .NET runtime will always attempt to load the exact version of the ODP assembly that the application was compiled with unless you have some sort of binding redirection in place. We do provide forward redirection in the way of publisher policy files but we do not provide backward redirect, you would have to add this binding redirect to your app.config file. We generally do not recommend you redirect to use an older version although I dotn see any real reason why it shudl not work as long as you are not using any 4.112.3.0 specific features. Loading the assembly that the application was compiled with is a security thing and is the way it works.
The only thing you are doing by adding that reference to the configuration file for 4.112.2.0 is to have that preloaded by the runtime, your application is still compiled with 4.112.3.0 and expects to find that exact version unless you tell it otherwise because we only provide forward redirection when ODP gets installed.
HTH
Jenny

Similar Messages

  • How to change autocommit property in Oracle 8.1.6 server

    Can anybody tell me how to change autocommit property in Oracle 8.1.6 server?
    Thanks in advance.
    Matthew
    null

    Hi,
    SET AUTOCOMMIT OFF
    thanks,
    Boby Jose Thekkanath,
    Consultant,CWO,
    NSW-AUS.

  • Can't add reference to Oracle.DataAccess in VS2008 project on Windows XP

    I'm experiencing a very frustrating problem that I'm hoping someone can help me with. Originally ODP.NET was installed on my system with the Oracle Express Client. In VS2008 I could add a reference to Oracle.DataAccess using the .NET tab of the Add Reference dialog. Things worked great.
    Unfortunately, everyone else on our development team installed ODP.NET using the latest ODTwithOCAC1020221.exe file. Since we are all working on a shared project they would have to update the reference on their machine, and every time I checked out the latest version of the project from our TFS server, I'd have to update the reference. Total pain . . .
    So I uninstalled the Oracle Express Client on my system and installed ODP.NET using the same executable everyone else used. The problem I have now is that Oracle.DataAccess no longer shows up as a choice under the .NET tab of the Add Reference dialog.
    I have verified that Oracle.DataAccess is in the GAC. I have also manually run gacutil to make sure it was installed without any problems. But no joy, it just doesn't show up in the dialog box to allow me to add it.
    Any suggestions?

    Yes, I know I can set a reference to it via the file system. The problem comes in somewhere in the unit tests. Even though the reference is there and everything compiles, the unit tests fails because they can't find the reference in the GAC.
    Originally when I had the express client installed I was able to add a reference to it using the .NET tab of the Add Reference dialog box in VS2008. After uninstalling the express client and installing the latest version it no longer shows up under the .NET tab which tells me that VS2008 doesn't see it in the GAC. Even though it is there.
    It's in the GAC. I can open the assemblies folder on my system and see it in the GAC. I can use gacutil to remove it and reinstall it without any problems. I can create a file reference to it by browsing to the installed location of the dll. But because VS2008 doesn't recognize it in the GAC, my unit tests never find it.
    This is very frustrating. My work around for now is to use the MS Oracle driver.

  • How to change the reference of a Workbook to a Query

    I have a Query Q1 and I have a workbook W1 for this query in 3.5,  I copied query Q1 to a new Query Q2,  and copied workbook W1 to a new workbook W2. (using RSZC)
    Now I have Queries Q1 and Q2 and Workbooks W1 and W2. But as the workbook W2 is a copy of W1, it still has the reference to query Q1. Is there any way to change the reference of a workbook to a query ?
    My requirement is, workbook W2 should refer to query Q2.
    Appretiate your help.
    Regards,
    R. Vodnala

    Go to design mode of the second workbook and change the query using the edit option to Q2 then your workbook W2 will refer to query Q2
    Just to get the idea go through this link here it is shown how to change the query.
    https://wiki.sdn.sap.com/wiki/display/BI/Issue%20with%20Migrating%20BEx%20Query%20and%20Workbook

  • Jdeveloper 11g: how to change the extension library Oracle JDBC

    Hello
    We use JDeveloper 11g for our desktop (swing) projects. When I debug the project in IDE, the classpath includes this jar: C:\Oracle\jdevstudio1117\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar
    The ojdbc6dms.jar is in Oracle JDBC extension library. We actually want to use ojdbc14dms.jar as our jdbc library jar. I exclude the ojdbc6dms.jar in the project classpath setting and add a user library for ojdbc14dms.jar. When I run the project, the IDE still use ojdbc6dms.jar in the classpath. I try to use "Manage Libraries" under "Tools" menu to change the jar file in Oracle JDBC extension library, but it cannot be changed.
    Can I ask how to change ojdbc6dms.jar to ojdbc14dms.jar in Oracle JDBC? Or, how can I let the IDE not use ojdbc6dms.jar when I run the project? Thank you
    Leaf

    Replace the ojdbc6dms.jar with ojdbc14dms.jar in C:\Oracle\jdevstudio1117\oracle_common\modules\oracle.jdbc_11.1.1
    The ojdbc14dms.jar may be required to be renamed to ojdbc6dms.jar in the C:\Oracle\jdevstudio1117\oracle_common\modules\oracle.jdbc_11.1.1 as the pre-configured settings are for ojdbc6dms.jar.
    Edited by: dvohra21 on Jun 3, 2013 5:47 AM

  • How to change the name of Oracle Intractive Dashboard and my Dashboard

    Hi,
    can any body help me out. how to change Oracle Intractive Dashboard whis is top left on the dashboard page.
    and also please tell me how to remove my dashboard page.
    Thanking you
    Phani Babu

    Have a look here :
    http://obiee101.blogspot.com/2009/06/obiee-new-portal-banner.html
    regards
    John
    http://obiee101.blogspot.com

  • How to change the Schema (DB2, Oracle) in CommandTable at run time

    Dear all,
    I have a problem as below:
    I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable? 
    Please help me on this.
    Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
    Thanks,
    Nha

    Dear Ted,
    I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
    I also use the parameter to do it, but it can not be at run time, just correct when designing.
    Could you please help me on this. You can post the code if any.
    Thanks,
    Nha

  • How to change Storage Repository on Oracle VM 2.2.2

    Dear All,
    Please help to provide me the procedure how to change storage repository from old one to new one.
    I have 2 VM Servers connected to Sun Storage 6140 (SAN) on the same Server Pool and enabled HA both VM Servers and Virtual Machines.
    [root@vmserver1 ~]# sfdisk -s
    /dev/sda: 143235540
    /dev/sdb: 71162880
    /dev/sdc: 71162880
    /dev/sdd: 292444160
    total: 578005460 blocks
    [root@vmserver1 ~]#
    New Storage Repository
    [root@vmserver2 ~]# fdisk -l /dev/sdd
    Disk /dev/sdd: 299.4 GB, 299462819840 bytes
    255 heads, 63 sectors/track, 36407 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdd1 1 36407 292439196 83 Linux
    [root@vmserver2 ~]#
    Old Storage Repository
    [root@vmserver2 ~]# fdisk -l /dev/sdb
    Disk /dev/sdb: 72.8 GB, 72870789120 bytes
    255 heads, 63 sectors/track, 8859 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1 1 8755 70324506 83 Linux
    [root@vmserver2 ~]#
    Storage Repository mount point
    [root@vmserver2 ~]# /opt/ovs-agent-2.3/utils/repos.py -l
    [ * ] 4f681824-20d3-4acd-9e53-5dff6bb923ab => /dev/sdb1
    [root@vmserver1 ~]# /opt/ovs-agent-2.3/utils/repos.py -l
    [ * ] 4f681824-20d3-4acd-9e53-5dff6bb923ab => /dev/sdb1
    [root@vmserver1 ~]#
    I wan to move storage repository from sdb1 to sdd1
    Now my Server Pool Master is on VM Server 2
    Thanks,
    Best regards,
    Heng

    Dear Alll,
    I just have new shared disk from Storage on my VM Servers. I have formatted it and now I try to configure it with repos.py script.
    [root@vmserver1 ~]# /opt/ovs-agent-2.3/utils/repos.py -l
    [ * ] 4f681824-20d3-4acd-9e53-5dff6bb923ab => /dev/sdb1
    [   ] c0c26a2a-eb86-44e7-8593-9d142ce33bbc => /dev/sdd1
    How to move all resources from /dev/sdb1 to /dev/sdd1 ?
    Any affected to Virtual Machines?
    Please give advice,
    Thanks and regards,
    Heng

  • How to change NLS parameters in Oracle XE?

    Hi
    I have to change some parameters in database using Oracle XE server but I don't know how to do it. I must change these parameters:
    NLS_CHARACTERSET
    NLS_NCHAR_CHARACTERSET
    How to do it?
    Thanks for help.

    Thanks, but I'm newbie and I have to ask you about more details :)
    What do you mean when you saying: init file (or spfile)? Where can I find these files?
    Registry entry (NLS_LANG) is correct, but when I'm using web based administration application I can see more NLS settings. Unfortunately I can't change them :(
    Using XE version I can't (I'm not sure about that) create another instance, there is only one instance created by installer. Is it possible to change NLS settings in this case?

  • How to change DataSource runtime in Oracle ADF.

    Hi All,
    In my requirement,Its seems to selecting dynamic data-source.let me explain my requirement i have a table in database username,passwords and schema name. from the login page i ll pass username,password and as drop-down I ll select schema.once i successfully logged-in can i access (execute, display data from ) selected schema from UI.in all sachems tables remain same but data is different.
    how to execute/change selected data-sources at run time if i am using Bc4J.
    please give me some solution.
    regards
    Siva

    Check Jobineshs blog http://jobinesh.blogspot.de/2011/04/modifying-application-modules-jdbc.html and Andrejus blog http://andrejusb.blogspot.de/2012/08/sample-application-for-switching.html
    Timo

  • How to change DataSource dinamically in Oracle ADF.

    Hi All,
    I have some requirement.to deal with different Database schemes. Here I am creating one ADF application which will accept username and password after validation Its need to redirect other page where I can perform CRUD operations.yes i can able to execute this same.here I have three there schemes(inside schema tables are same.) name as dev,test,prod respectively.
    thing is that i need to dynamically select the data source based on the selected environment(from UI I am selecting username,password and environment).let me know how to maintain variables in memory and how to create Appmodule for to achieve this requirements.
    please give me solution.

    http://www.oracle.com/technetwork/developer-tools/jdev/dynamicjdbchowto-101755.html

  • How to change image resolution in oracle forms.

    Hi Experts,
    I am working on oracle forms 10g (Windows7 OS). Can we get the image resolution of an image item in oracle forms? Can we resize the image in terms of resolution?
    I have a requirement where user can upload only 1280x720 size images. Either i have to validate the image resolution and give them a message saying 'Only 1280x720 size images are allowed' or simply i have to convert the image to be upload to 1280x720 size and save in the database. If someone could give the solution for the above problem that would be very much appreciated.
    Thanks,
    Pramod SR

    1. You need to resample.
    2. You can automate the process.
    1.
    Open one of the images.
    Go to Image > Image Size
    Set the units to Percent (100)
    Change the resolution to 300 ppi (not cm!)
    Make sure Resample is checked
    2. automation
    Test the above steps to make sure it works.
    Record the steps as an action.
    Make a droplet from the action.
    Drag the folder with the images to the droplet.

  • How to Change Company Address In Oracle EBS

    Hi,
    We several reports where Company Address is Showing.
    Our Company Address Has been Changed,
    Where is that location in Oracle Financial to Change Address
    Version 12.X
    Regards
    NEWCOM

    Hi;
    Please see implementation guide:
    http://docs.oracle.com/cd/E18727_01/doc.121/e13425/T348488T391474.htm
    Regard
    Helios

  • How to change error messages in Oracle Portal 3.0.9.8

    I have errors such as "No row returned" and etc.
    How can I change this error messages.
    Urgent
    HELP

    about report:
    select field1,field2,...,fieldn
    from table
    where table.date_insert<sysdate
    union
    select null field1, null field2, ...,null fieldn
    from dual
    order by field1...
    about other err:
    solve this problem by writing portlet manually

  • How to change the Program in Oracle Session

    When I create or use a JDBC connection, I want to set the value of something 'in' the connection so that it shows when I do a query like:
    select SID, Program, Machine, Module, client_info
    from v$session
    For example, how do I set the 'Client_Info' column of v$session? Or the, 'Program' column?
    Or can you do this in JDBC?
    I am using the thing 8.1.x driver ( where x = 6, I think).
    My server, is 8.1.7.4 on Solaris...
    Thanks

    Thanks a lot for your answer.
    Do you know how to implement that when using the Oracle ADF framework?
    JClient dynamic credentials and Struts/ADF => Application module with configuration file.
    see thread (JDeveloper forum)
    JClient 2Tiers/JDBC Security question
    Regards
    Fred

Maybe you are looking for