473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

can't use xsd

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
Ma***********@FirstByte.net
Jan 2 '08 #1
2 954
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
Ma***********@FirstByte.net
Jan 3 '08 #2
Apparently, there is no namespace in your solution called
"MyProjectNamespace.dsMyDataTableAdapters"

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Matthew Wells" <Ma***********@FirstByte.netwrote in message
news:se******************************@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
Ma***********@FirstByte.net


Jan 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: farzad | last post by:
Hi I try to install php_ming.so in my php . I am using Redhat 8.0 php 4.2.2 apache 2.0.4. I am doing as the howto install file want me to do. as follow....
7
by: Adams-Blake Co. | last post by:
This may be OT a bit, so maybe someone can point me in the right direction. I want to test a script that sends out an e-mail. I want to test it locally on my Mandrake Linux 8.2 box. It runs OK...
3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
6
by: Michel | last post by:
Hi, I like to build a small simple dinamic website: Point-of-sale (detail-shop), So entering stock, logging all sales, print out invoices and download the logs to be imported into Excel. I...
3
by: nadia | last post by:
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user can search for something. The user can then select...
6
by: lawrence | last post by:
How dangerous or stupid is it for an object to have a reference to the object which contains it? If I have a class called $controllerForAll which has an arrray of all the objects that exist, what...
5
by: Alper Adatoz | last post by:
Hi, i have a little problem. i hope u guys give me a clear solution (: db: mssql i just want to put jpeg file to the image field at the mssql db. and after that i want to call it back..
2
by: Sam Hou | last post by:
Dear all, I don't know where my problem is. Hopefully someone can give me some hint to explore the problem more. I am running Apache 2.0.48 wih PHP 4.3.4. The apache is running as nobody. I...
14
by: NotGiven | last post by:
I am guessing I would hold a variable of when it's opened, then in the script that runs when the page is offloaded, I coudl calcualte it. How do you store a time variable? How do you calculate...
4
by: Ryan Hubbard | last post by:
I would like to limit multiple logins for a user. How and when does the session id expire? Can I set it so after x minutes of inactivity it would expire. How do I check if session id exists? If...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.