Results 1 to 2 of 2

Thread: [RESOLVED] Filling DataTable "Reading from stream failed" Please help

  1. #1

    Thread Starter
    Addicted Member cellus205's Avatar
    Join Date
    Dec 2010
    Location
    San Antonio, TX
    Posts
    237

    Resolved [RESOLVED] Filling DataTable "Reading from stream failed" Please help

    Hey guys, I'm having trouble filling a datatable. It was working fine before, but now Im running into some problems. The table has about 11k rows, when I try to run TableAdapter.Fill, I'm getting an error of: "Reading from the stream has failed.". This is a MySQL database

    If anyone can help Id really appreciate it, really need to get this data migrated.

    Heres the InnerException:

    {"Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall."}

    Stack Trace:

    " at MyNetworkStream.HandleOrRethrowException(Exception e) at MyNetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count) at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count) at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count) at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count) at MySql.Data.MySqlClient.MySqlStream.LoadPacket()"

  2. #2

    Thread Starter
    Addicted Member cellus205's Avatar
    Join Date
    Dec 2010
    Location
    San Antonio, TX
    Posts
    237

    Re: Filling DataTable "Reading from stream failed" Please help

    Ended up switching from the regular MySql connector (MySql.Data) to the Compact Framework (MySql.Data.CF), and that got it going for me. Guess there was a hiccup in the mySql connector

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width