简体   繁体   中英

Does Sharepoint Foundation 2010 need to be installed on sharepoint 2010 server

I have my Sharepoint Server 2010 set-up and everything appears to be functioning correctly. However, when I attempt to create a console application on the Sharepoint server, I cannot find a reference to the Micrsooft.Sharepoint.dll. I manually browse to "c:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\14\\ISAPI", add the reference, but the following using statement fails.

using Microsoft.Sharepoint;

Is this because Sharepoint Foundation is not installed? Note: I have been successfully deploying sample web parts and silverlight tests using the Micrsooft.Sharepoint.Client.Silverlight.dll

No, you don't have to install SharePoint Foundation separately.

It could be due to the "Target" setting for your project. Try setting the Platform target to x64 to make sure your app is running 64 bit and not as a x86 app. SharePoint 2010 is x64 so you can run it trouble trying to make API calls from a x86 app.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM