Solved

missing vb.net reference

Posted on 2011-02-15
8
588 Views
Last Modified: 2012-05-11
Hi experts,

I am writing a web application in asp.net using visual basic and am trying to include some external code called NeatUpload that allows multiple files to be uploaded at a time.  I’ve followed the instructions but get errors when I build as follows:

      error CS0234: The type or namespace name 'Xpath' does not exist in the namespace 'System.Xml' (are you missing an assembly reference?)

My web.config file is as follows and I’ve gone to website, add reference and selected System.Xml from the .net tab yet I still get the error.   Can anyone tell me what I’m doing wrong?

Here’s the namespaces excert from my web.config file.

      <pages>
                  <namespaces>
                        <clear/>
                        <add namespace="System"/>
                        <add namespace="System.IO"/>
                        <add namespace="System.Collections"/>
                        <add namespace="System.Collections.Generic"/>
                        <add namespace="System.Collections.Specialized"/>
                        <add namespace="System.Configuration"/>
                        <add namespace="System.Core"/>
                        <add namespace="System.data.sql"/>
                        <add namespace="System.Text"/>
                        <add namespace="System.Text.RegularExpressions"/>
                        <add namespace="System.Linq"/>
                        <add namespace="System.Xml.Linq"/>
                        <add namespace="System.xml"/>
                        <add namespace="System.Xml.Serialization"/>
                        <add namespace="System.Xml.Schema"/>
                        <add namespace="System.Xml.Xpath"/>
                        <add namespace="System.Xml.Xsl"/>
                        <add namespace="System.Web"/>
                        <add namespace="System.Data"/>
                        <add namespace="System.Data.DataSetExtensions"/>
                        <add namespace="System.Web.Caching"/>
                        <add namespace="System.Web.SessionState"/>
                        <add namespace="System.Web.Security"/>
                        <add namespace="System.Web.Profile"/>
                        <add namespace="System.Web.UI"/>
                        <add namespace="System.Web.UI.WebControls"/>
                        <add namespace="System.Web.UI.WebControls.WebParts"/>
                        <add namespace="System.Web.UI.HtmlControls"/>
                  </namespaces>

            </pages>

0
Comment
Question by:MOSSPOINT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 34895652
Is System.Xml listed under the project references.

If not, right click on the project, choose Add Reference, and add a reference to System.Xml.dll.
0
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 34895667
see the attached screen to reference ref ref
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34895685
It's case sensitive, it should say "System.Xml.XPath" rather than "System.Xml.Xpath"
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

Author Comment

by:MOSSPOINT
ID: 34896107
Carl,

The web.config does say System.Xml.XPath, doesn't it or have I missed something?
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34896132
The one you posted has a lower case "p" in it, or was that a type when posting?
0
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 34896142
have you added the refrence ?
0
 

Author Comment

by:MOSSPOINT
ID: 34897135
Carl,

Thanks for your help, you've answered the question, it solved the problem for the system.xml.xpath and will get the points however, I still have one problem left.

                        <add namespace="System.Core"/>

error CS0234: The type or namespace name 'Core' does not exist in the namespace 'System' (are you missing an assembly reference?)

Am I doing a similar thing, can you help?
0
 

Author Closing Comment

by:MOSSPOINT
ID: 34897964
Thanks for your help.  The system.core no longer exists so I just deleted it and it works.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question