Two problems encountered in testing SharePoint on the console

Source: Internet
Author: User

1. The DLL of SharePoint has already been referenced, but the spsite and other classes cannot be found. The reason is that the ConsoleProgramIn vs2010, the default. NET Framework is 4.0, while Sharepoint is 3.5. Therefore, you need to change the framework used in the console to 3.5.

 

2, spsite site = new spsite ("http: // win-2n2ujh16hsg /");

"The web application at cocould not found. verify that you have typed the URL correctly. if the URL shoshould be serving existing content, the system administrator may need to add a new request URL Mapping to the intended application. "Error. Check whether the build output in the console is x64 if the address is correct. If not, this error is reported because sharepoint2010 must be run in 64-Bit mode.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.