Problem to resolve it

Hi,
How to resolve the 2nd line below
        Configpath = Environment.CurrentDirectory & "\Config.xml"
        Dim ObjXml As New XmlTextReader(Configpath)
        ...

Open in new window

due to these?
Error	1	Type 'XmlTextReader' is not defined.	
Error	2	Name 'XmlNodeType' is not declared.	

Open in new window

LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lokesh B RDeveloperCommented:
Hi,

You need to add the System.Xml as Reference in your application.

  System.Xml.XmlTextReader ObjXml = new System.Xml.XmlTextReader(Configpath);

Open in new window


1. Right-Click on the References in your Project
2. Select Add-Reference
3. Under Framework tab select System.Xml
4. Click Add/Ok
0
HuaMin ChenProblem resolverAuthor Commented:
But this VS 2008. After I have put your line from the above, I now have some other problem.
0
HuaMin ChenProblem resolverAuthor Commented:
This is VS 2008.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Lokesh B RDeveloperCommented:
Hi,

are you in windows/web application?
0
Lokesh B RDeveloperCommented:
If it is web application you can follow the below steps

1. Right-Click on the References in your Project
2. Select Add-Reference
3. Under Framework tab select System.Xml
4. Click Add/Ok

If windows application, check this image

http://www.vbforums.com/attachment.php?s=a8c13e58a8d44c02cb6f300f6db774cc&attachmentid=51687&stc=1&d=1160786555
0
HuaMin ChenProblem resolverAuthor Commented:
No, it is not Web application, but one VS 2008 Windows form project.
0
Amir OveisiSenior DeveloperCommented:
Hi
Witch version of .NET are you using?
To check that, you can right-click on your project in Solution Explorer and click on Properties. you can see Target Framework of your application.
0
Lokesh B RDeveloperCommented:
Hi,

whatever the version.

1. Right-Click on the References in your Project
2. Select Add Reference
3. Select System.Xml
4. Click Add/Ok
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.