当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - microsoft.sharepoint.client.site class/namespace/dll missing maybe

问题描述:

I'm using VS 2010 on Windows XP.

I did download microsoft.sharepoint.client.dll & microsoft.sharepoint.client.Runtime.dll from Microsoft Client Object model on my computer.

I was able to find above dll's in

C:\Program Files\Common Files\Microsoft Shared\SharePoint Client,

Not at below location.

C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\ISAPI -- as pointed on some other articles and stackoverflow question.

Task: SSIS & SharePoint Integration and download files from SharePoint site (SP 2010).

Here is the problem.

I'm trying to use namespace SPSite and SPWebsite but VS 2010 doesn't recognize.

I have add above mentioned dlls as reference and my target framework 4.0.

using (SPSite site = new SPSite(siteUrl)) --Error: The type or namespace SpSite couldn't be found (are you missing using directive or assembly reference).

  1. Is above error something to do with .dll's installed on different location.

  2. I have 32 bit software(64 bit OS)

    so when downloading Microsoft Sharepoint dll's i had to select (X86).

  3. Also when downloading Microsoft Sharepoint dll's, system requirement: Windows 7, Window Server 2008 and so on but didn't see Windows XP.

Tell me what i'm missing or did i do anything wrong here.

Let me know your thoughts.

Thanks!!

分享给朋友:
您可能感兴趣的文章:
随机阅读: