Is anyone else seeing an issue with 1.0.4 and pooled connections running
under IIS? I saw a message from Jean-François Mathieu from a few weeks ago,
but it didn't get any responses, and the bug I found (7246) is marked as
'can't repeat'
At this point I have no reason to think it's not a problem in my code, but
I'm not doing anything to manipulate the connection pool directly. I
thought I'd check and see if anyone else has seen anything similar.
Here's the text of the error I'm seeing as reported to an HTTP request:
Cannot access a disposed object named "System.Net.Sockets.NetworkStream".
Object name: "System.Net.Sockets.NetworkStream".
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.ObjectDisposedException: Cannot access a disposed
object named "System.Net.Sockets.NetworkStream". Object name:
"System.Net.Sockets.NetworkStream".
Source Error:
[No relevant source lines]
Source File: C:\Projects\salmon\mysqlconnector\MySqlClient\NativeDriver.cs
Line: 357
Stack Trace:
[ObjectDisposedException: Cannot access a disposed object named
"System.Net.Sockets.NetworkStream".
Object name: "System.Net.Sockets.NetworkStream".]
System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32
size)
System.IO.BufferedStream.FlushWrite() +21
System.IO.BufferedStream.Flush() +28
System.IO.BufferedStream.Close() +15
MySql.Data.MySqlClient.NativeDriver.Close() in
C:\Projects\salmon\mysqlconnector\MySqlClient\NativeDriver.cs:357
MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() in
C:\Projects\salmon\mysqlconnector\MySqlClient\MySqlPool.cs:107
MySql.Data.MySqlClient.MySqlPool.GetConnection() in
C:\Projects\salmon\mysqlconnector\MySqlClient\MySqlPool.cs:178
MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString
settings) in
C:\Projects\salmon\mysqlconnector\MySqlClient\MySqlPoolManager.cs:68
MySql.Data.MySqlClient.MySqlConnection.Open() in
C:\Projects\salmon\mysqlconnector\MySqlClient\Connection.cs:292
Com.Banshee.Utilities.Data.DbConnectionFactoryMySql.NewConnection() in
C:\Projects\salmon\ComBansheeUtilities\DataSetUtilities\DbConnectionFactoryM
ySql.cs:36
Com.Banshee.Utilities.Data.DbConnectionFactory.SharedConnection() in
C:\Projects\salmon\ComBansheeUtilities\DataSetUtilities\DbConnectionFactory.
cs:24
Com.Banshee.Utilities.Data.DbConnectionFactory.Command(String sql) in
C:\Projects\salmon\ComBansheeUtilities\DataSetUtilities\DbConnectionFactory.
cs:53
Com.Banshee.Utilities.Data.IdentityTableAdapter.IdFetchSetup(String
tablename) in
C:\Projects\salmon\ComBansheeUtilities\DataSetUtilities\IdentityTableAdapter
.cs:93
Com.Banshee.Utilities.Data.IdentityTableAdapter..ctor(DbConnectionFactory
dbfactory, String tableName, String idField, String valueField) in
C:\Projects\salmon\ComBansheeUtilities\DataSetUtilities\IdentityTableAdapter
.cs:21
Com.Banshee.Utilities.Data.IdentityTableAdapterMySql..ctor(DbConnectionFacto
ry factory, DataTable dt, String idField, String valueField) in
C:\Projects\salmon\ComBansheeUtilities\DataSetUtilities\IdentityTableAdapter
MySql.cs:11
Com.Banshee.Utilities.Data.DbConnectionFactoryMySql.IdentityTableAdapter(Dat
aTable dt, String idField, String valueField) in
C:\Projects\salmon\ComBansheeUtilities\DataSetUtilities\DbConnectionFactoryM
ySql.cs:65
Com.Banshee.NntpServerLink.NntpArticlesDataSetAdapters.CreateAdapters()
in C:\Projects\salmon\grunion\Nntp\NntpArticlesDataSetAdapters.cs:244
Com.Banshee.NntpServerLink.NntpArticlesDataSetAdapters..ctor(DbConnectionFac
tory factory, ArticlesDataSet ds) in
C:\Projects\salmon\grunion\Nntp\NntpArticlesDataSetAdapters.cs:26
Com.Banshee.NntpServerLink.NntpArticlesDataSetAdapterFactory.CreateInstance(
DbConnectionFactory factory, ArticlesDataSet ds) in
C:\Projects\salmon\grunion\Nntp\NntpArticlesDataSetAdapters.cs:323
Com.Banshee.NntpServerLink.ArticleStorage..ctor(DbConnectionFactory
factory, NntpArticlesDataSetAdapters adapters) in
c:\projects\salmon\grunion\articles\articlestorage.cs:42
Com.Banshee.NntpServerLink.ArticleStorage..ctor(DbConnectionFactory
factory) in c:\projects\salmon\grunion\articles\articlestorage.cs:31
Com.Banshee.NntpServerLink.NewsConductor..ctor(Int32 userID) in
c:\projects\salmon\grunion\newsconductor.cs:21
Com.Banshee.NntpServerLink.NewsConductorHTML..ctor(Int32 userID, Boolean
setupServers) in C:\Projects\salmon\sandcrab\NewsConductorHTML.cs:15
sandcrab.TopicChoices.get_Conductor() in
C:\Projects\salmon\sandcrab\TopicChoices.aspx.cs:254
sandcrab.TopicChoices.CriteriaLoad() in
C:\Projects\salmon\sandcrab\TopicChoices.aspx.cs:178
sandcrab.TopicChoices.Page_Load(Object sender, EventArgs args) in
C:\Projects\salmon\sandcrab\TopicChoices.aspx.cs:32
sandcrab.TopicChoicesRss.Page_Load(Object sender, EventArgs args) in
C:\Projects\salmon\sandcrab\TopicChoicesRss.aspx.cs:26
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
| Thread |
|---|
| • Issue with 1.0.4 connector - Cannot access a disposed object named "System.Net.Sockets.NetworkStream". | James Moore | 23 Jan |