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



Is this how you use stored proc when using ORACLE "cmBS.CommandText =
"OracleInstance.GETBLANKETSTATUS.procListBlanketStatus";
"?
And are you sure your connection string is ok.


"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 startRecor
d,
> 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

  • Re: ASP.net and Oracle error System.Data.OleDb.OleDbException
    ... Here is some of my connection code: ... Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior ... >> on our test web server, There is only one oracle home on the test server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Connecting to ODBC DB at startup
    ... Creating an Oracle connection in an independent object ... Dim cnConn As ADODB.Connection ... Dim strDB As String ...
    (comp.databases.ms-access)
  • RE: Elusive randomly occuring exceptions
    ... This looks like some sort of Connection Pool error, ... DataTabledatatables, Int32 startRecord, Int32 maxRecords, String ... startRecord, Int32 maxRecords, String srcTable, IDbCommand command, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Dataset retunring Null ..a gurus opinion required!
    ... DataTabledatatables, Int32 startRecord, Int32 maxRecords, String srcTable, ... IDbCommand command, CommandBehavior behavior) ... I initialised the adapter by doing this: ... toolbox to the design area to establish the connection. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: ConnectionString property error when viewing form in designer
    ... DataTabledatatables, Int32 startRecord, Int32 maxRecords, String ... startRecord, Int32 maxRecords, String srcTable, IDbCommand command, ... at SPSGData.SPSGDataAdaptor.Fill(ReminderSet thisDataSet, String filter) ... connection information is not set up. ...
    (microsoft.public.dotnet.framework.windowsforms)