Re: ASP.net and Oracle error System.Data.OleDb.OleDbException



It sounds like you need to download the oraoledb driver from oracle and
install it on the server

The oledb driver is not part of the 'standard' oracle client install
package... It is only installed when you choose custom or a 'developer' type
install

The easiest way to tell if it's installed: go to start -> programs ->
oracle home x.xx -> application development -> OraOLEDB
Documentation.html... if that link does not exist, you don't have the driver
installed... (Of course there are other ways to figure it out, but that's
what I check first)

Go to technet.oracle.com and find your way to driver downloads... If you
have the client installation cd, you can probably custom install it from
there.... It Oledb for oracle is also installed when you install their .net
suite of tools...

If you can use oraoledb, I would stick with it; OO4O and ODP.net are better
for accessing oracle, but neither are easily portable to other db's (whereas
oracle's ole db driver is--codewise at least)....


"petro" <petro@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:10986F0B-E9C5-44E3-9722-C806E24F219B@xxxxxxxxxxxxxxxx
> Hello all,
> My asp.net web application works on my machine but I get the following
> error
> on our test web server, There is only one oracle home on the test server.
> Does anyone know how to resolve this error?
>
> Oracle error occurred, but error message could not be retrieved from
> Oracle.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about
> the error and where it originated in the code.
>
> Exception Details: System.Data.OleDb.OleDbException: Oracle error
> occurred,
> but error message could not be retrieved from Oracle.
>
> Source Error:
>
>
> Line 220: cmBS.CommandType = CommandType.StoredProcedure;
> Line 221: cmBS.CommandText =
> "OracleInstance.GETBLANKETSTATUS.procListBlanketStatus";
> Line 222:
> Line 223: OleDbDataAdapter daBS = new OleDbDataAdapter();
> Line 224: daBS.SelectCommand = cmBS;
>
>
> Source File: c:\inetpub\wwwroot\Myfile\myaspxpage.aspx.cs Line: 222
>
> Stack Trace:
>
>
> [OleDbException (0x80004005): Oracle error occurred, but error message
> could
> not be retrieved from Oracle.]
> System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
> System.Data.OleDb.OleDbConnection.InitializeProvider() +57
> System.Data.OleDb.OleDbConnection.Open() +203
> System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection,
> ConnectionState& originalState) +44
> System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32
> startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
> CommandBehavior behavior) +304
> System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
> startRecord,
> Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
> behavior) +77
> System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
> +36
> WebReportMenu.BlanketContract.getData() in
> c:\inetpub\wwwroot\webreportmenu\blanketcontract.aspx.cs:222
> WebReportMenu.BlanketContract.Page_Load(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\webreportmenu\blanketcontract.aspx.cs:102
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
>
>
>
>
> --------------------------------------------------------------------------------
> Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
> ASP.NET
> Version:1.1.4322.2032
>
>


.



Relevant Pages

  • Adding new driver
    ... I tried to install the odbc driver of the oracle instant client. ... The entry disapeared from the odbc data source administrator. ...
    (microsoft.public.data.odbc)
  • Cant get Oracle OLE DB provider to work from SSIS on a 64-bit environment
    ... I posted this question in the .server newsgroup yesterday, but apparently my cross-post to this newsgroup didn't made it, so now I post it once more. ... I'm having some troubles setting up an Oracle datasource on a SSIS ... Since this Provider isn't available in the 64-bit version I ... I'd love to uninstall both Oracle clients and then try just to install ...
    (microsoft.public.sqlserver.dts)
  • Re: Client tools suggestion for 8.1.7
    ... Win NT 4.0 server computer. ... latest Oracle release early 2008. ... install 8.1.7 tools and wonder if it would be doable to install recent ... So I'd recommend the ...
    (comp.databases.oracle.server)
  • Re: DTS for Oracle through ODBC: Error Calling GetNextRows in Prev
    ... I found out the Oracle driver they had installed on my system was for Oracle ... installer app in order to install their ODBC's.. ... I decided to use the Oracle ODBC provided in their client install. ...
    (microsoft.public.sqlserver.dts)
  • Re: MSDAORA was unable to begin a distributed transaction - why?! (SQL <-> Oracle)
    ... I'm not quite sure what driver am I useing for my linked ... It just says "Microsoft OLE DB Provider for Oracle", ... version the linked server is using? ... I'm performing read-only operations in Oracle only, ...
    (comp.databases.oracle.server)