Namespace 'SharePoint' does not exist in the namespace 'Microsoft'

This 0ne Pr0grammer picture This 0ne Pr0grammer · Aug 3, 2011 · Viewed 27.9k times · Source

So I am starting to learn C#, like literally just started learning, and coming from a Java background, it doesn't look too bad. However, I have a question. I am following THIS tutorial on using the client-object model. And just starting from the top, I added the references, but using Microsoft.SharePoint.Client; keeps giving me the error that "the namespace 'SharePoint' does not exist in the namespace 'Microsoft', but I clearly see it on the right side panel. So looking at the instructions, the only difference I can think of is that fact that I am using Visual Studio Express and thus do not have the option to choose which framework to use when creating a new project. Other than that, I don't know what the problem might be. Does anyone have any ideas on what else I could be missing or how to correct this problem?

Answer

Mahika picture Mahika · Jun 19, 2013

Make sure that the target framework is 3.5 and not 4 i.e for SP2010