can"t use xsd

can"t use xsd

am 02.01.2008 21:48:03 von Matthew Wells

Hello,

I'm trying to do something I learned in an asp.net class. I added a
dataset in the project, added a dataadapter that uses an existing stored
procedure. Then I added a class to interace with the dataset. When I do a
build, I keep getting an error that the namespace
MyProjectNamespace.dsMyDataTableAdapters does not exist.

dataset name - dsMyData.xsd

using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.Configuration;
using System.ComponentModel;
using MyProjectNamespace.dsMyDataTableAdapters;
using System.Collections.Generic;
using System.Text;

namespace MyProjectNamespace
{
[DataObject(true}]
public class clMyClass
{
}
}

What am I missing?

Thanks.

Matthew Wells
Matthew.Wells@FirstByte.net

RE: can"t use xsd

am 03.01.2008 02:08:18 von MohamadElarabiMCPD

What exactly are you trying to do by adding this line:
using MyProjectNamespace.dsMyDataTableAdapters; ?

This doesn't look like it exists, at least not in this file. What exactly is
dsMyDataTableAdapters? is that your project name?

Try removing this line and see if it compiles.

Good luck.

--
Mohamad Elarabi
MCP, MCTS, MCPD.


"Matthew Wells" wrote:

> Hello,
>
> I'm trying to do something I learned in an asp.net class. I added a
> dataset in the project, added a dataadapter that uses an existing stored
> procedure. Then I added a class to interace with the dataset. When I do a
> build, I keep getting an error that the namespace
> MyProjectNamespace.dsMyDataTableAdapters does not exist.
>
> dataset name - dsMyData.xsd
>
> using System;
> using System.Data;
> using System.Data.SqlClient;
> using System.Web.Configuration;
> using System.ComponentModel;
> using MyProjectNamespace.dsMyDataTableAdapters;
> using System.Collections.Generic;
> using System.Text;
>
> namespace MyProjectNamespace
> {
> [DataObject(true}]
> public class clMyClass
> {
> }
> }
>
> What am I missing?
>
> Thanks.
>
> Matthew Wells
> Matthew.Wells@FirstByte.net
>
>
>

Re: can"t use xsd

am 04.01.2008 13:34:52 von Kevin Spencer

Apparently, there is no namespace in your solution called
"MyProjectNamespace.dsMyDataTableAdapters"

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Matthew Wells" wrote in message
news:seedneQ1bvIzZebanZ2dnUVZ_gOdnZ2d@comcast.com...
> Hello,
>
> I'm trying to do something I learned in an asp.net class. I added a
> dataset in the project, added a dataadapter that uses an existing stored
> procedure. Then I added a class to interace with the dataset. When I do
> a build, I keep getting an error that the namespace
> MyProjectNamespace.dsMyDataTableAdapters does not exist.
>
> dataset name - dsMyData.xsd
>
> using System;
> using System.Data;
> using System.Data.SqlClient;
> using System.Web.Configuration;
> using System.ComponentModel;
> using MyProjectNamespace.dsMyDataTableAdapters;
> using System.Collections.Generic;
> using System.Text;
>
> namespace MyProjectNamespace
> {
> [DataObject(true}]
> public class clMyClass
> {
> }
> }
>
> What am I missing?
>
> Thanks.
>
> Matthew Wells
> Matthew.Wells@FirstByte.net
>
>