Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created a sample app using Windows 8 C# XAML to get site info of SharePoint 2010 using COM Dlls. I have added reference of:

  1. C:\Program Files\Common Files\microsoft shared\SharePoint Client\Microsoft.SharePoint.Client.dll
  2. C:\Program Files\Common Files\microsoft shared\SharePoint Client\Microsoft.SharePoint.Client.Runtime.dll

but when I build the project it gives me following error:

Error1: Cannot resolve Assembly or Windows Metadata file 'System.Web.Services.dll' E:\Windows 8 And Sharepoint Example\SharePointCOMApp\SharePointCOMApp\SharePointCOMApp.csproj

Error2: Type universe cannot resolve assembly: System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. SharePointCOMApp

How can i resolve this?

share|improve this question
add comment

1 Answer

I suspect you are targeting the wrong version of the .Net framework - you need the full framework and not the Client Profile.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.