Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Novice: Connecting to Oracle using ODP.NET with Enterprise Library

Novice: Connecting to Oracle using ODP.NET with Enterprise Library

Scheduled Pinned Locked Moved Database
csharpdatabaseoracleregexhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    P Konstant
    wrote on last edited by
    #1

    Hello, Thanks for reviewing my question. I am just starting out with working with an Oracle database. I wrote a simple console program that tries to connect to an Oracle database using the Enterprise Library, ODP.NET with written in C# using VS2013. I have ODAC 12.c installed on my PC. However, my program gets an exception when my program tries to open the database. using Microsoft.Practices.EnterpriseLibrary.Data; using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; using Microsoft.Practices.EnterpriseLibrary.Data.Oracle; using Oracle.ManagedDataAccess.Client; ...

    OracleDatabase db = null;
    db2 = DatabaseFactory.CreateDatabase() as OracleDatabase;

    // System.Configuration.ConfigurationErrorsException was unhandled Message=An error occurred creating the configuration section handler for dataConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. Source=System.Configuration ... My app.config file contains the following:

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups