StrataFrame Forum

System.ObjectDisposedException

http://forum.strataframe.net/Topic26366.aspx

By Rich Grimes - 3/9/2010

Hi Folks

We just started receiving quite a few of these errors and they seem to only occur when we do data access. Have you ever seen this before?

Thanks!

Rich

** Summary **

---------------

This message contains events 1 to 2 from the total of 2 events scheduled for this notification.  There were 0 events left in the buffer at the beginning of this notification.

 

 

** Application Information **

---------------

Application domain: /LM/W3SVC/33230916/Root/129122460609687500

Trust level: Full

Application Virtual Path: /...

Application Path: D:\... Machine name: ....

 

 

** Events **

---------------

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 3/5/2010 7:38:42 PM

Event time (UTC): 3/6/2010 12:38:42 AM

Event ID: be9467923d77453ba4be3a5d151aec09 Event sequence: 46459 Event occurrence: 285 Event detail code: 0

 

Process information:

    Process ID: 7872

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

 

Exception information:

    Exception type: System.ObjectDisposedException

    Exception message: Safe handle has been closed

 

Request information:

    Request URL: https://xxx

    Request path: /XXX/LookUpPages/TransportationMode.aspx

    User host address: XXX.XXX.XXX.XXX

    User: 1254567890

    Is authenticated: True

    Authentication Type: Forms

    Thread account name: NT AUTHORITY\NETWORK SERVICE

 

Thread information:

    Thread ID: 1

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace:    at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)

   at SNINativeMethodWrapper.SNIPacketReset(SafeHandle pConn, IOType ioType, SafeHandle packet)

   at System.Data.SqlClient.TdsParserStateObject.WriteSni()

   at System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)

   at System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()

   at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)

   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)

   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)

   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)

   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

   at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)

   at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)

   at MicroFour.StrataFrame.Data.DbDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)

   at MicroFour.StrataFrame.Data.SqlDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)

   at MicroFour.StrataFrame.Data.DbDataSourceItem.ExecuteStoredProcedure(String SprocName, DbCommandExecutionType ExecutionType, DbParameter[] Parameters)

   at MicroFour.StrataFrame.Business.BusinessLayer.FillByStoredProcedure(String ProcedureName, DbParameter[] Parameters)

   at BO.Lookup.TravelMode.Fill()

   at LookUpPages_TransportationMode.Page_Load(Object sender, EventArgs e)

   at System.Web.UI.Control.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

---------------

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 3/5/2010 7:38:43 PM

Event time (UTC): 3/6/2010 12:38:43 AM

Event ID: b7c1c9a7dd87485787c6d62a5206d596 Event sequence: 46461 Event occurrence: 286 Event detail code: 0

 

Process information:

    Process ID: 7872

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

 

Exception information:

    Exception type: System.ObjectDisposedException

    Exception message: Safe handle has been closed

 

Request information:

    Request URL: https://....

    Request path: /XXX/GeneralError.aspx

    User host address: XXX.XXX.XXX.XX

    User: 124567890

    Is authenticated: True

    Authentication Type: Forms

    Thread account name: NT AUTHORITY\NETWORK SERVICE

 

Thread information:

    Thread ID: 1

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace:    at BO.PCSDataPackage.IsSubPackage(Int64 DataPackageID)

   at Controls_Header.Page_Load(Object sender, EventArgs e)

   at System.Web.UI.Control.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

By Trent L. Taylor - 3/9/2010

Rich,



I answered this on another thread yesterday. Did you happen to see my response? In short, no. This is a very ambiguous error message that could come from any number of things: your application, environment, database connection, etc. Without some more details or something that would help reproduce this problem, there is really no way that would be able to give any type of suggested diagnosis. Sorry. Unsure