Problem with OracleConnection

Last post 05-28-2007 10:52 AM by Prashant Kumar. 2 replies.

Sort Posts:

  • Problem with OracleConnection

    05-28-2007, 9:44 AM
    • Member
      2 point Member
    • bij004
    • Member since 05-28-2007, 1:33 PM
    • Posts 2

    Hi

    I try to conenct to Oracle from aspx page

    I'm ussing:

    <%@ Import Namespace="System.Data.OracleClient" %>

    and

    dim objConn As New OracleConnection("Data Source=hdb;User ID=xxx;Password=xxx")

     and getting error

    BC30002: Type 'OracleConnection' is not defined.

    the The .NET Framework Data Provider for Oracle is installed on the web server

     

  • Re: Problem with OracleConnection

    05-28-2007, 10:14 AM
    • Member
      62 point Member
    • kdyande
    • Member since 01-31-2007, 4:59 AM
    • Posts 13

    Did u open the connection like this ?

    try

    {

         objconn.open();

    catcth(Exception e) 

    {

     

     If yes then Pls send more code regarding this

     

    Thanks

    Kunal 

  • Re: Problem with OracleConnection

    05-28-2007, 10:52 AM
    Answer

    Add a reference to System.Data.OracleClient in your project

    From main menu select Website -> Add Reference and select System.Data.OracleClient from the list

    Regards,
    Prashant


    Dont forget to click "Mark as Answer" on the post that helped you.
Page 1 of 1 (3 items)