T
- TW
I just upgraded a webservice to VS 2003 / Framework 1.1. Since the
upgrade, when I run the test harness against it, I get the error
messag "A connection pooling error has occurred". It occurs when
calling the .Close() in a wrapper class.
It appears to be closing the connection, when I break on the line the
error is about to occur on, the connection state is "Open". When the
error occurs, I check the connection state again and it's closed.
Code follows:
#region Constructors
public SQLTextComponent()
{
InitializeComponent();
Core.EdenConnectionInitializer.InitializeConnection(this._edenConnection);
this._edenConnection.Open();
}
#endregion
#region Destructors
~SQLTextComponent()
{
if (this._edenConnection.State == ConnectionState.Open )
{
this._edenConnection.Close(); // <-- Error occurs on this
statement
}
}
#endregion
upgrade, when I run the test harness against it, I get the error
messag "A connection pooling error has occurred". It occurs when
calling the .Close() in a wrapper class.
It appears to be closing the connection, when I break on the line the
error is about to occur on, the connection state is "Open". When the
error occurs, I check the connection state again and it's closed.
Code follows:
#region Constructors
public SQLTextComponent()
{
InitializeComponent();
Core.EdenConnectionInitializer.InitializeConnection(this._edenConnection);
this._edenConnection.Open();
}
#endregion
#region Destructors
~SQLTextComponent()
{
if (this._edenConnection.State == ConnectionState.Open )
{
this._edenConnection.Close(); // <-- Error occurs on this
statement
}
}
#endregion