Ajit Dixit
|
Posted: 06/14/2001, 12:49 AM |
|
I am trying to develop an application using SAPDB as backend and Codecharge
with ASP.NET (C#)
I am getting following error
Application Error
----------------------------------------------------------------------------
----
The connection is already closed.
Description: An unhandled exception occurred at runtime during the execution
of the current web request. Please review the stack trace below to get a
better understanding of what the error is and where it originated from in
the code.
Exception Details: System.InvalidOperationException: The connection is
already closed.
Source Error:
Line 125: if (Connection != null)
Line 126: Connection.Close();
Line 127: }
Line 128:
Line 129:
Source File: c:\sapesms\ccpage.cs Line: 127
Stack Trace:
[InvalidOperationException: The connection is already closed.]
System.Data.ADO.ADOConnection.Close() +22
YesSoftware.CC.CCPage.DBClose() in c:\sapesms\ccpage.cs:127
SAP_SMS_PROJECT.MFCOMPANY.Page_Unload(Object sender, EventArgs e) in
c:\sapesms\mfcompany.cs:96
System.Web.UI.Control.OnUnload(EventArgs e) +111
System.Web.UI.Control.UnloadRecursive() +114
System.Web.UI.Page.ProcessRequest() +405
System.Web.UI.Page.ProcessRequest(HttpContext context) +19
System.Web.HttpApplication$CallHandlerExecutionStep.Execute() +180
System.Web.HttpApplication.ExecuteStep(HttpApplication$IExecutionStep
step, Boolean& completedSynchronously) +176
----------------------------------------------------------------------------
----
Version Information: Runtime Build: 1.0.2204.21; ASP.NET Build: 1.0.2204.21
This error I get even for Oracle 8.1.5 but I do not get this error for
SQLSERVER
Any solution for this?
Thanks
Ajit Dixit
|
|
|
|