Pervasive
Sign in | Join | Help
in

Unhandled Exception: System.ObjectDisposedException - ADO.NET 2.0

Last post 06-20-2008 12:51 PM by Mirtheil. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-17-2008 8:03 AM

    Unhandled Exception: System.ObjectDisposedException - ADO.NET 2.0

    We have a windows service built with VSTS2005 (C#) that is getting this following exception:

     

    Unhandled Exception: System.ObjectDisposedException: Cannot access a disposed ob  
    ject named "System.Net.Sockets.NetworkStream".  
    Object name: "System.Net.Sockets.NetworkStream".  
    at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32  
    size)  
    at System.IO.MemoryStream.WriteTo(Stream stream)  
    at Pervasive.Data.SqlClient.Lna.LnaSocketSession.DoRequest(LnaRequest req, Ln  
    aResponse res)  
    at Pervasive.Data.SqlClient.Lna.LnaSocketSession.Request(LnaRequest req)  
    at Pervasive.Data.SqlClient.Lna.LnaConnection.Disconnect()  
    at Pervasive.Data.SqlClient.Lna.LnaConnection.Close()  
    at Pervasive.Data.SqlClient.Lna.LnaObject.Finalize()

    Problem Environment:  
    Pervasive.SQL V9.5  
    NET  2.0
    ADO.NET  2.0
    Provider 2.10.0.26

    Connection pool=true

    Windows 2000 Server sp4

     

    Thanks for your attention.

     

    Luiz Carneiro

     

  • 06-17-2008 9:03 AM In reply to

    Re: Unhandled Exception: System.ObjectDisposedException - ADO.NET 2.0

     I would suggest switching to the Provider 3.0 (ADO.NET 2.2 download).  I know that older v2.10 providers had a known problem with that exception but I thought it was fixed by 2.10.0.26.

     

    Mirtheil
  • 06-20-2008 11:25 AM In reply to

    Re: Unhandled Exception: System.ObjectDisposedException - ADO.NET 2.0

    I think that I can´t update to the new provider (3.0). My server is a 9.5 and the provider requires a newer (10.x).

    I notice that you server (in some post before) was a 9.5. You have used the provider 3.0 in it?

    Thanks

    Luiz

  • 06-20-2008 12:51 PM In reply to

    Re: Unhandled Exception: System.ObjectDisposedException - ADO.NET 2.0

     Yes, the 3.0 versioned provider will work with the v9.5 server.  The download link is in the PSQL ADO.NET Provider 2.2 (Supports v9.5)

    Mirtheil
Page 1 of 1 (4 items)
© 2008 Pervasive Software Inc. All Rights Reserved.