0

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:

    C:\Program Files\Common Files\microsoft shared\SharePoint Client\Microsoft.SharePoint.Client.dll
    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?

Balraj Singh
  • 3,381
  • 6
  • 47
  • 82

1 Answers1

1

Your term "COM dlls" confused me at first but then I realized you're talking about Client Object Model not Component Object Model.

There are currently no SharePoint client dlls available for WinRT. Only Silverlight and .NET ones are available for download. Obviously you referenced one of those two and encountered errors because they reference other libraries that are not available in .NET for Windows Store apps (i.e. System.Web.Services.dll).

You could take a look at the open source SharePoint WinRT Client library. Depending on what your scenario is, it might work for you.

Damir Arh
  • 17,637
  • 2
  • 45
  • 83
  • Thanks Damir Arh even I realized that there is some compatibility issue. But just want to make it sure. – Balraj Singh Feb 03 '13 at 11:44
  • Can you help to find one more solution regarding Sharepoint 2010 REST API wit Windows 8 I have posted a question related to it LINK: http://stackoverflow.com/questions/14645268/window-8-consuming-sharepoint-rest-interface-through-formsauthentication – Balraj Singh Feb 03 '13 at 11:45