Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6231111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:52:24+00:00 2026-05-24T09:52:24+00:00

I created a DataSet object and DataLayer.cs class in root directory. In the DataLayer

  • 0

I created a DataSet object and DataLayer.cs class in root directory. In the DataLayer class I am using System.Data. But the compiler does not recognize my DataSet. The error asks me if I am missing a directive or an assembly reference. I dont think I am because intellisense does recognize the DataSet keyword, just not the DataSet that I created. The exact code is posted below, obviously you cannot see the DataSet in the Solution Explorer but trust me, it’s there. Its exact name is dbCounters.xsd and it has the attached .xss thing. Also, everything is spelled correctly.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Configuration;
using System.Threading;
using System.Globalization;
using System.Data;
using System.Data.SqlClient;
using System.ComponentModel;
using System.Reflection;
using System.Web;

namespace Counters
{
    public class TwCounters
    {
         public void SaveCounters(CountersCache.Type type, DateTime currDateTime, string counter, long value) {

            using (dbCounters.AllCountersDataTable table = new dbCounters.AllCountersDataTable()) {
                table.UpsertAllCounters(System.Convert.ToBoolean(type), currDateTime, counter, value);
            }
            StartCounters();
        }
    }
}

I want to know is why it doesn’t even recognize dbCounters, as far as I can tell it is there, it is spelled right, the Date Layer is referenced, the two files are even in the root directory, I have this same thing working in other projects so whats the problem here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:52:25+00:00Added an answer on May 24, 2026 at 9:52 am

    DataSet isn’t a keyword. The compiler doesn’t know anything about it specifically.

    My guess is that your custom DataSet is in a different namespace – have a look at the designer-generated code, and add an appropriate using directive (or change the namespace to Counters to match this code).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add data to a newly created column... DataSet ds =
I have created a script that reads from a CSV (or other dataset, but
Background Here is my issue. Earlier in the course of my program a System.Data.DataSet
1) I do a Dataset.WriteToXml(memory stream object) 2) Then i create a XMLDocument object
I have a strongly typed DataTable created with the VS2005/VS2008 DataSet designer. The table
Given a DataSet, I'm left joining DataTables[1-n] onto DataTable[0]. I have created a method
Here is my table in the dataset: SELECT tag_work_field.* FROM tag_work_field I created this
Does anybody know of a way to create a DataSet such that when I
I'm trying to create a DLL using a Dataset.XSD file to access my website's
I've created a class called connector. By clicking on project and adding a class.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.