c# - Can't connect to Oracle database -
i working on asp.net project, uses c# code-behind. attempts connect oracle database using following code, existed in project when began working on it:
oracleconnection myconnection = new oracleconnection(); myconnection.connectionstring = configurationmanager.connectionstrings["orafincnstring"].connectionstring; myconnection.open();
the application runs locally (opens in browser on localhost
), , attempts connect remote oracle database. when run it, the last line above gives following error:
"invalidoperationexception unhandled user code. attempt load oracle client libraries threw badimageformatexception. problem occur when running in 64 bit mode 32 bit oracle client components installed."
the connection string provided client, presume correct, , doesn't seem sort of error caused incorrect connection information. i'm pretty stumped problem is, , appreciate insight.
please take @ following link. need install oracle 11g oracle data access components
Comments
Post a Comment