G
Guest
I am trying to clean an object in its Finalize method regarrding connection
pbjects as follows :
objConnection.Dispose()
objConnection = Nothing
shCard = Nothing
The connection iscreated in another object as follows
objConnection = shCard.CreateConnection
I get the following error on the line "objConnection.Dispose() or
objConnection.close
***************************************
{System.InvalidOperationException}
[System.InvalidOperationException]: {System.InvalidOperationException}
HelpLink: Nothing
InnerException: Nothing
Message: "A connection pooling error has occurred."
Source: "System.Data"
StackTrace: " at System.Data.SqlClient.SqlConnection.Close()
at System.Data.SqlClient.SqlConnection.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at ConfigBAL.ShoppingCartDB.Finalize() in
C:\Inetpub\wwwroot\Configurator\Components\ShoppingCartDB.vb:line 977"
TargetSite: {System.Reflection.RuntimeMethodInfo}
*********************************************
Does that mean that I can not close or dispose a connection object because
of pooling
As I said in a previeou post, I have user connections depassing the default,
which I think is 100 by default
Thanks
pbjects as follows :
objConnection.Dispose()
objConnection = Nothing
shCard = Nothing
The connection iscreated in another object as follows
objConnection = shCard.CreateConnection
I get the following error on the line "objConnection.Dispose() or
objConnection.close
***************************************
{System.InvalidOperationException}
[System.InvalidOperationException]: {System.InvalidOperationException}
HelpLink: Nothing
InnerException: Nothing
Message: "A connection pooling error has occurred."
Source: "System.Data"
StackTrace: " at System.Data.SqlClient.SqlConnection.Close()
at System.Data.SqlClient.SqlConnection.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at ConfigBAL.ShoppingCartDB.Finalize() in
C:\Inetpub\wwwroot\Configurator\Components\ShoppingCartDB.vb:line 977"
TargetSite: {System.Reflection.RuntimeMethodInfo}
*********************************************
Does that mean that I can not close or dispose a connection object because
of pooling
As I said in a previeou post, I have user connections depassing the default,
which I think is 100 by default
Thanks