Re: Dataadapter.Fill() errors

From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 02/24/04


Date: Tue, 24 Feb 2004 13:05:35 -0800

Let's see some code. How are you setting up the SqlDataAdapter?

-- 
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Gregs138" <gregs138@hotmail.com> wrote in message
news:1757EA5D-775A-4CEF-9082-9DD570697DA9@microsoft.com...
> I am working on a new installation of VS.NET Enterprise architect and I am
having a strange exception thrown when I fills a dataset with a
SQLdatadapter.  MYDA.FILL(DS,"NEWTABLE")  Produces the following err
>
> print err.Description
> Run-time exception thrown : System.InvalidCastException - Cast from string
"" to type 'Integer' is not valid.
> print err.Number
> Run-time exception thrown : System.IO.IOException - Bad file name or
number.
>
> Erro is from system.data.dll
>
> If anyone knows what is causing this please let me know.  I think it is
worth mentioning that Vb 6.0 is also installed on this machine.
>
> Greg


Relevant Pages

  • Re: User-defined types in Strongly Typed DataSets
    ... I have started a thread in the Whidbey ADO.NET newsgroup and added a post that points to our correspondence here, ... Unfortunately, I did not intend to re-write the data adapters, but use the existing SqlDataAdapter. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: DataSet, Stored Procedures and Return Values
    ... SqlDataAdapter). ... This is NOT a .NET newsgroup. ... This covers classic ADO, pre.NET ... Newsgroup support on ADO.NET: ...
    (microsoft.public.data.ado)