Why doesn't Oracle.DataAccess.Types classes support IConvertible?

Hello:
Is there a reason why the Oracle types don't support IConvertible?
It is really annoying. Especially when cmd.Parameters["PARM1"].Value is usually an Oracle type and cmd.ExecuteScalar returns a .NET type.
It essentially means I have to write different code for conceptually identical code. Is there are a way to tell Oracle classes what types I would like to recieve? Is there are way to get an integer, etc. without invalid cast errors and without needing to test my code first?
I would really like to know what to expect when I access a property or a method. However, it is really hard for me. Some times I am expecting an Int32, but I will get a Decimal/OracleDecimal - even when I say in the OracleDbType that I want and Int32.
If the Oracle type supported IConvertible I wouldn't have to worry about it and I could use the built-in .NET class Convert to do it for me. What am I to do? Am I missing something?
Thanks,
Travis

For example:
OracleCommand cmd = new OracleCommand("SCALAR_PROC", conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("PARAM1", OracleDbType.Int32, ParameterDirection.ReturnValue);
cmd.ExecuteNonQuery();
object o1= cmd.Parameters["PARAM1"].Value;
// What is o1 without needing to guess?
cmd = new OracleCommand("SELECT 123 FROM DUAL", conn);
object o2 = cmd.ExecuteScalar();
// What is o2 without needing to guess?
// Shouldn't these return conceptually the same type?
// How can I use the same code to get the type I want?
Now, if Oracle types supported IConvertible, I could write this simple line of code to get an Int32:
int i = (int)Convert.ChangeType(o1, typeof(int));
Ta da! However, Oracle types cause an error because they are not IConvertible.

Similar Messages

  • Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal'......

    I have some Oracle Tables with sequences for primary key and stored procs in packages to wrap up the insert commands. The sequences field are all declared as NUMBER.
    I also have Datasets based on the tables and a DataAdapter for each package. The Datasets see the primary keys as System.Decimal. The DataAdapter sees the output primary key parameter to the stored procs as OracleDecimal.
    tmp.Parameters.Add(new OracleParameter("P_ID", Oracle.DataAccess.Client.OracleDbType.Decimal, ParameterDirection.Output));
    tmp.Parameters["P_ID"].SourceColumn = "ID";
    When I call the Update on the DataAdapter the update happens on the DB and then I get the following error
    System.ArgumentException : Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal' to type 'System.IConvertible'.Couldn't store <231> in ID Column. Expected type is Decimal.
    ----> System.InvalidCastException : Unable to cast object of type 'Oracle.DataAccess.Types.OracleDecimal' to type 'System.IConvertible'.
    If I change the Oracle parameter to Oracle.DataAccess.Client.OracleDbType.Int32 or Oracle.DataAccess.Client.OracleDbType.Int64 it works fine - any ideas why that would be ? I would expect System.Decimal to map to Oracle.DataAccess.Types.OracleDecimal.

    Hi,
    If I change the Oracle parameter to Oracle.DataAccess.Client.OracleDbType.Int32 or Oracle.DataAccess.Client.OracleDbType.Int64 it works fine - any ideas why that would be ? I would expect System.Decimal to map to Oracle.DataAccess.Types.OracleDecimal.
    I'm trying to do the same, but no matter what I do, I get the OracleDecimal error. Parameter is defined as:
    bq. this._adapter.InsertCommand = new global::Oracle.DataAccess.Client.OracleCommand(); \\ this._adapter.InsertCommand.Connection = this.Connection; \\ this._adapter.InsertCommand.CommandText = "INSERT INTO PERSON\r\n                      (ID, SURNAME, NAME, BIRTHCITY, EMSO)\r\nV" + \\ +"ALUES (:ID, :SURNAME, :NAME, :BIRTHCITY, :EMSO) RETURNING ID INTO :ID";+ \\ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; \\ param = new global::Oracle.DataAccess.Client.OracleParameter(); \\ param.ParameterName = "ID"; \\ param.DbType = global::System.Data.DbType.Int32; \\ param.OracleDbType = global::Oracle.DataAccess.Client.OracleDbType.Int32; \\ param.Direction = global::System.Data.ParameterDirection.Output; \\ param.IsNullable = true; \\ param.SourceColumn = "ID"; \\ this._adapter.InsertCommand.Parameters.Add(param);
    But no luck...

  • Why doesn't Lion OSX 7.2 support Pando Calendar? Installed the Lion OSX7.2 and lost my calendar!

    Why doesn't Lion OSX 7.2 support Pando Calendar? Installed the Lion OSX7.2 and lost my calendar!

    Have you gone to the developers site? Do you have the latest version?
    If you're having problems with the software on Lion and you have the latest version you need to contact the developer.
    regards

  • WebDB 2.2/RedHat 6.1. For God's sake why doesn't Oracle release some documentation??

    Someone please tell me how to get past the
    "Enter your Oracle database SYS user password and a TNS names alias" page. My password doesn't show up as ****'s or spaces. Do I have termcap problem here? I've tried different term types and none of the obvious ones help.
    I enter change_on_install for the password and "oracle" (my SID) for the TNSNAMES alias. But I always get a "You entered an incorrect system password or an incorrect TNS names alias" error message. Which is it? Why doesn't it just say "Oracle doesn't work". Or "What you entered doesn't compute". Or "You f%$^ing dumb ass, don't you f$%^ing know anything about Oracle, you should have entered something else". These messages are equally as useful as the current response. Do I need to create a new TNS names alias? If so why? And where is the documentation on this?
    I'm guessing that because Oracle released Webdb on Linux it does actually work and that someone, somewhere got it to work. Otherwise Oracle is no better than Microsucks in their support effort ("Well it works on my system, you must be doing something wrong").
    Thanks for any help. I'd really like to use WebDB but if I have to spend any more than 2 days just to get it installed I might as well revert to Winblows NT and self installing, self configuring ZIP files or jump of the Brooklyn bridge and I'd rather do the later.
    Bren.

    I am a Product Manager for WebDB and I am concerned that you are having such a problematic experience.
    Below I have pasted an installation note that is available on MetaLink, this should walk you through the process.
    The reason your TNS connection is failing is because WebDB does not know where to connect to. WebDB uses 8.0.5 binaries and therefore cannot use the tnsnames.ora file in the 8i Oracle home. To get it to work you need to do one of two things, either copy the tnsnames.ora file from your 8i home to the new WebDB home you're about to create. Or create yourself an environment variable called TNS_ADMIN that points to [8i home/network/admin]
    Don't worry about not seeing asterisks as we don't display any, this is a 'feature' of the character based installer that we use.
    With WebDB 3.0 we will not have this problem as we are using 8i binaries and libraries and we will install using the Oracle Universal Installer, not a character mode one.
    Hope this helps.
    PURPOSE
    This document provides detailed installation notes for WebDB 2.2.0.0.4. It is
    focused on installing WebDB for an 8.1.5 (8i) database. Since WebDB is based
    off of the 8.0.5 binary and library files, it must be installed in a separate
    ORACLE_HOME than 8.1.5.
    SCOPE & APPLICATION
    This document is intended to guide you through every step of the WebDB
    installation process against 8i to prevent the most common issues.
    BEFORE YOU BEGIN
    Create a new directory for the new WebDB ORACLE_HOME separate from the 8.1.5
    database ORACLE_HOME.
    i.e. /u01/app/oracle/product/webdb/
    You must ensure that all of the appropriate environment variables are set before
    beginning the installation process. Unset any existing ORACLE environment
    settings and only set the following:
    ORACLE_HOME-->point this to the WebDB home
    i.e. setenv ORACLE_HOME /u01/app/oracle/product/webdb/
    LD_LIBRARY_PATH-->point this to the $ORACLE_HOME/lib where $ORACLE_HOME is the
    WebDB home
    i.e. setenv LD_LIBRARY_PATH $ORACLE_HOME/lib/
    SHLIB_PATH-->point this to the $ORACLE_HOME/lib as well where $ORACLE_HOME is the
    WebDB home
    i.e. setenv SHLIB_PATH $ORACLE_HOME/lib/
    LIBPATH (for AIX ONLY)-->point this to the $ORACLE_HOME/lib as well where $ORACLE_HOME is the
    WebDB home
    i.e. setenv LIBPATH $ORACLE_HOME/lib/
    PATH-->append the following $ORACLE_HOME/bin/ where $ORACLE_HOME is the
    WebDB home
    i.e. setenv PATH $ORACLE_HOME/bin/:$PATH
    TNS_ADMIN-->point this to the database home/network/admin directory.
    i.e. setenv TNS_ADMIN /u01/app/oracle/product/8.1.5/network/admin
    WV_GATEWAY_CFG-->point this to the $ORACLE_HOME/listener/cfg/wdbsvr.app where
    $ORACLE_HOME is the WebDB home
    i.e. setenv WV_GATEWAY_CFG $ORACLE_HOME/listener/cfg/wdbsvr.app
    BEGIN THE INSTALLATION
    From the unix prompt, cd to the staging area for your WebDB Media and go to the
    orainst director.
    i.e. cd /SD_CDROM/orainst/
    Run the orainst for the Oracle Installer to begin.
    i.e. ./orainst
    1.)'Oracle WebDB 2.1 Installation Requirements' Select OK.
    2.)'Environment Variable'
    ORACLE_BASE - this should be set already
    i.e. /u01/app/oracle/
    ORACLE_HOME - this should be set to the WeBDB home already
    i.e. /u01/app/oracle/product/webdb/
    Select OK.
    3.)'Relink All Executables?' Select NO.
    4.)'Software Asset Manager' - select Oracle WebDB 2.2.0.0.4 and Oracle WebDB
    Listener 2.2.0.0.4. Select INSTALL.
    5.)'WebDB Listener'
    Hostname --> provide the fully qualified host.domain as registered with DNS
    i.e. iprodhp2.us.oracle.com
    Data Access --> You can name your database access descriptor anything you
    would like but it is best if you take the default which is 'WebDB'
    WebDB Schema --> This is the schema that all WebDB packages will be installed
    under. It is recommended that you again take the default which is 'WEBDB'
    Listener Port -- > Ensure that you choose a port that is not already in use.
    Port 80 is the default http port. This port number can always be changed
    later when you start the WebDB listener.
    Select OK.
    6.)'Choose the Database' - Select Oracle 8i and Select OK.
    7.)Please provide the appropriate sys password and the TNSNAMES alias used to
    connect to the 8.1.5 database.
    8.)'WEBDB' --> Select the tablespaces you would like to install into.
    Installation = WEBDB
    Default = <USERS>
    Temporary = <TEMP>
    Document = <USERS>
    Select OK.
    9.)WebDB initial password is webdb --> Select OK.
    10.)'Choose Language' --> English is automatically installed but you may choose
    any additional languages. Select OK.
    11.)Installation of the WebDB schema may take a while. You may think your
    installer is hanging but in fact it is just installing a lot of information.
    Depending on your machine's resources, the average time to complete this
    task is usually around 45 minutes to 1 hour.
    12.)'WebDB Install Complete' --> Select OK.
    13.)It will then install support files.
    14.)'WebDB Listener Successfull' Select OK.
    15.)Exit Software Asset Manager
    Go to the unix prompt to start the listener:
    wdbstart host.domain port&WHERE host.domain is the fully qualified host and domain name with DNS
    AND port is the http port you would like the listener to start on
    i.e. wdbstart iprodhp2.us.oracle.com 22004&
    CONFIGURING THE LISTENER
    Go the following URL: http://host.domain:port/admin_/gateway.htm
    WHERE host.domain is the fully qualified host and domain name with DNS
    AND port is the http port you started the listener on
    i.e. http://iprodhp2.us.oracle.com:22004/admin_/gateway.htm
    Verify that your connect string is correct on the gateway.htm page. This should
    be the alias registered in your TNSNAMES.ORA file. Then click Apply. It is
    not neccessary to restart the listener after you make the change.
    ACCESSING THE WEBDB HOME PAGE
    Go to the following URL: http://host.domain:port/
    HERE host.domain is the fully qualified host and domain name with DNS
    AND port is the http port you started the listener on
    i.e. http://iprodhp2.us.oracle.com:22004/
    null

  • Why doesn't my keyboard type properly when I am using Googlemail for email?

    When I am using googlemail, my new Toshiba Satelitte L350 doesn't type properly - constantly missing letters/spaces - i have to slow down incredibly to check that each letter has registered on the screen. The laptop keyboard has this problem, as well as plug in keyboards. No other application is affected ie i can type at speed in word
    Anyone come across this problem?
    Cheers
    Katy

    >The laptop keyboard has this problem, as well as plug in keyboards.
    This issue has nothing to do with your notebook. This question is here on the wrong place. Try to contact Google support and ask them why this happen?
    To be honest I have noticed similar behaviour when I write mails on GMX mail. Some letters are simply missing.
    Believe me it has nothing to do with notebook functionality.

  • Why doesn't the AEBS 802.11n support NTFS?

    I am wondering why users need to go through hoops to make the $200 AEBS 802.11n recognize NTFS formatted disks. Is it really that complicated for Apple engineers to add this support? Is there any way to reach Apple tech and request this? Or is asking for NTFS support utterly ludicrous and fundamentally not feasible. If it is futile to hope for Apple to add support for NTFS to the AEBS 802.11n, then how does one go about returning - who to contact to return and get the money refunded.

    Hello durlov. Welcome to the Apple Discussions!
    ... how does one go about returning - who to contact to return and get the money refunded.
    Here is Apple's Return and Refund Policy.

  • Why doesn't Firefox 9.0.1 support Norton products, ie Norton Toolbar?

    Firefox 9.0.1 doesn't support Norton Toolbar.

    * Perform the suggestions mentioned in the Reply by '''senthilkumar''' in -> [http://community.norton.com/t5/Norton-360/Live-update-won-t-get-Norton-Toolbar-v2011-7-4-3-as-required-for/m-p/629909/highlight/true#M63757]
    * Perform the suggestions mentioned in the Last Reply by '''yank''' in -> [http://community.norton.com/t5/Other-Norton-Products/Norton-Comcast-security-suite-Ver-5-1-0-29-Norton-Toolbar-not/m-p/637223/highlight/true#M43664]
    Check and tell if its working.
    -> Update All your Firefox Plugins
    * https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    * Restart Firefox

  • Why doesn't my version of Photoshop support my camera's raw files?

    Sorry if this is the wrong forum for this question.  I just received Photoshop CS5 last week and I just started using it.  I was talking to someone the other day and they recommenced to shoot in the RAW format.  I did a few shoots today and saved them on my pc (Windows XP Home 32 bit).  The problem I am having is when I select a photo it shows in the dialog box, but I receive an error message saying "Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera RAW.
    Please visit the camera RAW help documentation for additional information.
    I am using a Nikon D5100.

    Ok.  We have a miscommunication here. I'll go see what I can find out.
    Yep. Confusion Reigns.
    ACR 6.7 Release Candidate is up on Labs
    http://blogs.adobe.com/lightroomjournal/2012/03/adobe-camera-raw-6-7-and-dng-converter-6-7 -available-on-adobe-labs.html
    Somehow "released" got mixed up in the messages around here (along with errant mentions of ACR 7 and other snafus).

  • Why doesn't Cisco add full IPv6 support to the firmware of the wrvs4400n small business router?

    I own a Cisco wrvs4400n. I love this router but have been unhappy that it is not ipv6 ready. I have been disappointed that Cisco has not developed/introduced a new follow-on router, an advanced version of this router adding AC wireless support and speeds, more wireless signal strength, true dual band as well as the full ipv6 for the web additional to the intranet (as they have finally added in the latest firmware update) - to name a few. What they are offering presently is embarrassingly weak. They seem to be ceding the small business arena but no one else seems to be bringing out a good product for this market either. If they would at least provide support for IPv6 on the web, I could wait until they finally wake up and develop a good follow-on wired/wireless gigabit router.
    Linksys, which they sold off for whatever reason, has been developing some impressive routers by hardware measures, but their firmware does not offer access to it to control and configure it that I would expect in a SBR, like they began in the wrvs4400n. Either I need Cisco to add that ipv6 so I can at least utilise the incipient roll-out of IPv6 from my ISP for time being or finally bring out an exciting new follow-on router with all the controls of that new architecture extending what they offered in the 4400!
    If anyone has information/knowledge about either of these two options, developing another firmware update with full ipv6 or developing and introducing a follow-on router, please inform me about it. I am a 1 to 6 person operation and want to move into the present, at minimum, or, preferably, future. Thank you any one who can enlighten me about this.

    Voskuil67 wrote:
    I have twice requested (paid) tech support for getting BB Desktop Software for Mac to work
    Sorry, I don't think I understand. You have initiated a "paid" per-incident support ticket with RIM, and paid for these services, and you are not getting a call back?
    When you paid for this, you should have been issued a case number or support incident file number. If you have that, you should contact RIM immediately for resolution. If you need a phone number, try 1-877-255-2377
    If the above is not your situation, could you please explain further?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Why doesn't/When will Apple TV support 24/192 audio streaming from iTunes???!  this is needed badly.

    apple tv truncates and resamples all files from itunes to 16bit/48k.  this is losing a large amount of audio information and very unwelcome for even neophyte audiophiles, just those of us who enjoy good music.  as music lovers we are forced to hop skip and jump around itunes and use other audio interfaces that don't play well with airplay or itunes and aren't nearly as flexible.  (like sonos or naim, or similar)  all just to get our higher rez music files to play at their intended bit depth and sample rate.  i have tried many solutions for this issue and still the very best would be to have apple make apple tv (which many of us use to stream audio) and the airport express output digital audio at full rates, ie. 24/192.  even 24/96 would be a very very welcome upgrade. 
    SO, APPLE, PLEASE PLEASE.  LET'S DO THIS.  WITH THE VERY NEXT ITERATION OF ATV.  PLEASE!!!!
    thanks.

    You have posted to the iTunes Match forum which your comment is not related to. You might want to do a search on the iTunes for Mac forum to see the previous discussions on this topic.
    Long story short, though, you are not addressing anyone from Apple here. You may submit your polite feedback here: http://www.apple.com/feedback/appletv.html

  • Why doesn't the 11.1 version support Vista 64?

    I have Vista 64 on my computer and now I can't play anything on Facebook as they update to the 11.1 update.

    How do I do a clean install of Flash Player?
    When you get to the install phase, choose the appropriate 32-bit Flash Player.

  • Whether timestamp types are supported in oracle dynamic sql?

    Oracle has two dynamic sql models. The old and the new ANSI model. I wish to know where and how the timestamp oracle data types are supported.
    I am having trouble setting the timestamp data through pro*c using old dynamic sql. I tried to set it to raw 11 bytes and use type 187 (timestamp) and it segfaults! I try now to set it to string type and oracle says invalid month! I tried even using nls_timestamp_format setting but no luck. Obviously some thing is amiss.
    Can some body help me?
    I need this info rather urgently.
    Thanks.

    Yes it is possible
    TO_DATE(:variable,'FORMAT') in dynamic SQL

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

  • Unable to load Oracle.DataAccess

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

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

Maybe you are looking for

  • When I play Minecraft on my Macbook Pro the whole computer freezes

    After a bit of Minecraft on my Macbook Pro (the amount of time before the freeze is always different.  I can go hours without it freezing up but sometimes it freezes after ten minutes), the screen will get distorted and my computer becomes completely

  • Photoshop CS6 printing with Mac OS 10.10.2

    I recently attempted to print a 13x19 photo on a Canon PIXMA 9500MarkII color printer using CS6.  The printer driver continually reported an paper since error.  Eventually, I gave up and tried to print the same photo with Apple's Preview application

  • Prints too dark and contrasty when printing from IDCS3 to Canon IP4000 inkjet printer

    I have a problem with colours when printing from IDCS3 onto a Canon IP4000 inkjet printer and Ilford Galarie smooth pearl paper. I cannot find a solution to it or maybe I am not looking for the right search terms. Maybe someone can help me here. I am

  • Red light appears over my iphone speaker when charging.

    i accidentally washed my phone. So i decided to do the rice treatment.and now when i put it on the charger a red light appears over my speaker. Also when i try to hard reset my phone the red light just flashes.Then after a while the light just goes a

  • Is there any way to adjust the equalizer on my macbook pro?

    I just got a brand new macbook pro, and was really dissapointed with the audio coming out of the speakers.  My last laptop was also a macbook pro from three years ago, and that one had way better speakers.  I'm hearing way too much high mids, and ver