473,761 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What means this error: CS0246: The type or namespace name 'xxxx' could not be found

When I try to compile a source code which should normally run I got this error message

error CS0246: The type or namespace name 'XmlSchemaSet' could not be found (are you missing a
using directive or an assembly reference

Platform SDK 1.1 is successfuly installed (under Win2000+SP4)

So how can cope with this problem?

Joe

Nov 16 '05 #1
3 13296
de*******@norte l.com (Joe DeAngelo) wrote in news:cf******** *****@news.t-
online.com:
XmlSchemaSet


It means what it says :D

If XmlSchemaSet is in an assembly then add a reference to it.

If it is in a class file you wrote make sure it gets compiled.

If its in a namespace like YourCompany.You rXmlStuff then add the using
directive to the top of the class that won't compile.

using YourCompany.You rXmlStuff;

Nov 16 '05 #2
Joe DeAngelo <de*******@nort el.com> wrote:
When I try to compile a source code which should normally run I got
this error message

error CS0246: The type or namespace name 'XmlSchemaSet' could not be
found (are you missing a using directive or an assembly reference

Platform SDK 1.1 is successfuly installed (under Win2000+SP4)

So how can cope with this problem?


Well, what type are you trying to use? I don't see XmlSchemaSet in
MSDN...

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #3
Hi,

That should be one of several things:
1- You used a namespace and forgot to include a reference to it in your
project.
2- You forgot to use an "using NameSpace;" line in your code.
3- A mispelling, if csc find a variable it does not the type give this
error.
A will give you an example

if you put this:
misspelled_vari able = 4;
the compiler will say "the name misspelled_vari able does not exist in
...."

but if you put this:
misspelled_vari able.membername = 4;

it will give you the error you are getting
Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Joe DeAngelo" <de*******@nort el.com> wrote in message
news:cf******** *****@news.t-online.com...
When I try to compile a source code which should normally run I got this error message
error CS0246: The type or namespace name 'XmlSchemaSet' could not be found (are you missing a using directive or an assembly reference

Platform SDK 1.1 is successfuly installed (under Win2000+SP4)

So how can cope with this problem?

Joe

Nov 16 '05 #4

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

Similar topics

7
2690
by: LL | last post by:
Compiler Error Message: CS0246: The type or namespace name 'Acme' could not be found (are you missing a using directive or an assembly reference?) Source Error: Line 1: <%@ Import Namespace="Acme" %> How to fix it? Thanks.
3
1478
by: Franko | last post by:
I get the following error. Ihave no idea why? Pl help Server Error in '/WebApplication1' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type...
5
4148
by: Aries | last post by:
I have a connection string like this, anyone know how can I fix it? <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %> <html> <body> <!-- #include file = "linkx.inc" --> <script language="C#" runat="server">
0
1358
by: manfred | last post by:
Hello, I have this error with C# code Compiler Error CS0246: The Type or Namespace Name <XmlNavigator> Could Not be Found or Compiler Error CS0246: The Type or Namespace Name <DocumentNavigator> Could
3
4275
by: FC | last post by:
Hello All: I am getting the following error: Compiler Error Message: CS0246: The type or namespace name 'conn' could not be found (are you missing a using directive or an assembly reference?) This error point to the line conn.Close() on my finally statement. I am pretty new at this and I did not find much on the web. Any help would be greatly appreciated. My code is as follows: <%@ Page Language="C#" debug="true" %>
1
3268
by: Leo | last post by:
Hi, The code below is working: Main.cs ------------- using System; namespace test3
4
23887
by: infinetinc | last post by:
I'm receiving the following error when this site is published to the production environment: Compiler Error Message: CS0246: The type or namespace name 'GridViewHelper' could not be found (are you missing a using directive or an assembly reference?) The error does not occur on my local machine. The GridViewHelper function is defined in my APP_CODE folder and is in both locations. I'm using MS Visual Web Developer 2005 Express.
3
3233
by: Mariano | last post by:
Greetings, I'm developing a web site in asp.net 2.0. I have class files in App_Code and they are used in aspx. Example: * App_Code ( i have users.cs containing users class, data.cs is DAL) * index.aspx Example in index.aspx private void read() { users u = new users(); ....
1
2578
by: rhea06car | last post by:
i got an error massage cs0246: The type or namespace name 'StringCollection' could not be found (are you missing a using directive or an assembly reference?) heres my code: public static StringCollection GetCountries() { StringCollection Countries = new StringCollection(); Countries.AddRange (_countries); return countries; }
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8770
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.