I'm receiving this error:
Code: Select all
Server Error in '/' Application.
--------------------------------------------------------------------------------
Length cannot be less than zero. Parameter name: length
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.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
System.String.Substring(Int32 startIndex, Int32 length) +172
CoreLab.Oracle.Oci.a(String A_0, String A_1) +99
a.c.q.l() +546
a.c.q..ctor(Boolean A_0, Boolean A_1, Boolean A_2) +56
a.c.d..ctor(i A_0) +325
a.c.k.a(DbConnectionOptions A_0, Object A_1, DbConnectionBase A_2) +37
CoreLab.Common.DbConnectionFactory.a(DbConnectionPool A_0, DbConnectionOptions A_1) +37
CoreLab.Common.DbConnectionPool.a() +44
CoreLab.Common.DbConnectionPool.GetObject() +343
CoreLab.Common.DbConnectionFactory.a(DbConnectionBase A_0) +77
CoreLab.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection) +276
CoreLab.Common.DbConnectionBase.Open() +34
CoreLab.Oracle.OracleConnection.Open() +23
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) +38
mundocat._default.Page_Load(Object sender, EventArgs e) in z:\default.aspx.cs:29
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
Anybody knows what this error means?
My code is as simple as the following:
Code: Select all
private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
con.Open();
}
}
Thanks!