Re: Is DataSet belong another namespace

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You must have written some class called "DataSet" that is taking precedence.
Look at your own code and see what it contains. Maybe you could find it by
doing something like right-clicking on the DataSet name that is the return
type for GetSchools and select "Go To Definition".

"ad" <flying@xxxxxxxxxxxxxxx> wrote in message
news:%235NP1L%23uFHA.3556@xxxxxxxxxxxxxxxxxxxxxxx
>I use a Webservice, which retun a DataSet.
> I use the code:
> DataSet ds = (DataSet)wsHealth.GetSchools(Text1.Text);
>
> But it result in an error in run time, the error message is
> Unable to cast object of type 'System.Data.DataSet' to type 'DataSet'.
> The namespaces I used are
> using System;
> using System.Data;
> using System.Configuration;
> using System.Web;
> using System.Web.Security;
> using System.Web.UI;
> using System.Web.UI.WebControls;
> using System.Web.UI.WebControls.WebParts;
> using System.Web.UI.HtmlControls;
>
> Is there an namespace rather than System.Data which also contail DataSet?
>


.



Relevant Pages

  • Re: Inline methods
    ... the linker won't find the definition ... > and you get the error message. ... > There's two ways to make a member function ... How does that work for namespaces? ...
    (microsoft.public.vc.language)
  • Re: Detecting line terminators in a CSV file
    ... precedence || operator means it won't die even if you wanted it to. ... I'll check out that precedence thing ... shouldn't use evalto print an error message from a built-in function. ... openfails it returns undef and puts the error message in $!. ...
    (perl.beginners)
  • I finally figured it out! namespaces and the ODR
    ... A while back I posted some code along with an error message I got when I ... have namespaces in it. ... I had originally tried to compile the same code ... "There is only One inviolable Law" ...
    (comp.lang.cpp)
  • Re: validating xml doc with multiple schemas using wildcards
    ... Here is the revised cust.xml and error message. ... The given name Customer matches at least two names in the collection ... then xs:element ref to import and reference elements from a different namespace? ... I don't think you need xs:any to use elements from different namespaces. ...
    (microsoft.public.dotnet.xml)
  • Re: Namespace in vb.net 2003 Question?
    ... > I'm Creating multiple custom unique namespaces within the same web ... > *Remember I'm creating the namespaces within the same web application not ... > *Also at the current moment I'm getting an error message using the Imports ...
    (microsoft.public.dotnet.framework.aspnet)