473,398 Members | 2,525 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,398 software developers and data experts.

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 13249
de*******@nortel.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.YourXmlStuff then add the using
directive to the top of the class that won't compile.

using YourCompany.YourXmlStuff;

Nov 16 '05 #2
Joe DeAngelo <de*******@nortel.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.com>
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_variable = 4;
the compiler will say "the name misspelled_variable does not exist in
...."

but if you put this:
misspelled_variable.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*******@nortel.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
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...
3
by: Franko | last post by:
I get the following error. Ihave no idea why? Pl help Server Error in '/WebApplication1' Application. -------------------------------------------------------------------------------- Compilation...
5
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 =...
0
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...
3
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?) ...
1
by: Leo | last post by:
Hi, The code below is working: Main.cs ------------- using System; namespace test3
4
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...
3
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) *...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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
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
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...
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.