PC Review


Reply
Thread Tools Rate Thread

can't use xsd

 
 
Matthew Wells
Guest
Posts: n/a
 
      2nd Jan 2008
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
(E-Mail Removed)


 
Reply With Quote
 
 
 
 
Mohamad Elarabi [MCPD]
Guest
Posts: n/a
 
      3rd Jan 2008
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
> (E-Mail Removed)
>
>
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      4th Jan 2008
Apparently, there is no namespace in your solution called
"MyProjectNamespace.dsMyDataTableAdapters"

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Matthew Wells" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> (E-Mail Removed)
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 AM.