|Approach||Extension||Usage||VS Project Type|
|Solution||Wsp||Add functionality on top of SharePoint.||Anything under the SharePoint template node (Web Part, List Definition, Content Type, etc…)|
|Client Application||Exe, dll, xap||End User Windows\Silverlight apps, Assemblies||Anything that uses SharePoint Client OM, Web Services, RPCs|
|Server Application||Exe, dll||Admin tools||Anything that uses SharePoint Server OM (Ex: referencing Microsoft.SharePoint.dll)|
The point behind this blog post is to ensure that you have the right Visual Studio 2010 settings for compiling and running SharePoint Server applications or assemblies.
Warning 1 The referenced assembly “Microsoft.SharePoint, Version=188.8.131.52, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL” could not be resolved because it has a dependency on “System.Web, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which is not in the currently targeted framework “.NETFramework,Version=v4.0,Profile=Client”. Please remove references to assemblies not in the targeted framework or consider retargeting your project.
SharePoint 2010 is built on top of .Net Framework 3.5. So make sure you have it as your targeted framework in VS. Go to project properties and change the target framework to “.Net Framework 3.5”.
The Web application at <url> could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
You have an x64 version of SharePoint Server installed, but VS 2010 is building your code as x86. So go to project properties \ Build and change platform target from x86 to x64.