Namespace or type specified in the project-level Imports ‘System.Xml.Linq’ doesn’t contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn’t use any aliases

There are 2 ways to remove this warning

First, you may need to convert the current .Net Framework used by the application to higher version, let’s say from .net framework 2 to 3.5

  1. Goto Property Pages of the web site project
    • View Menu->Property Pages or press shift+F4
  2. Click the Build option from the left side
    • Make sure the Target Framework is .Net Framework 3.5

Second, remove the namespace that shown in the warning in this case the “System.Xml.Linq” from the web.config

namespacelinq

namespace linq


, , , ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth