Learning SharePoint   Enhance Your SharePoint Knowledge

Subscribe to Learning SharePoint Subscribe
Twitter Learning SharePointFollow Us
in Learning SharePoint

.Net 4 with SharePoint Foundation 2010

08/21/2010  
Category: SharePoint 2010


Since this has been asked a million times in various forums. Here is the Final word from Michael Foertsch (secretsofsharepoint.com/cs).

The SharePoint Foundation 2010 object model is not accessible using the .NET Framework 4 (or later). Calling any object or method in the object model using any framework version other than .NET 3.5 will throw the following exception:

System.PlatformNotSupportedException
Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime.

Of course, you can always access the SharePoint objects using the web services interface from your .NET 4 application, but this will only allow limited functionality of the complete object model.

Subscribe to Learning SharePoint Subscribe
Twitter Learning SharePointFollow Us
in Learning SharePoint

Random Posts

Add custom action to DispForm.aspx ribbon in Sharepoint 2010
Add custom action to»

To add a new button in Actions group in DispForm.aspx’s ribbon take a look at below elements.xml file <?xml version=”1.0″»

Delete Content Types in Asset Library Programmatically – Sharepoint 2010
Delete Content Types in»

A quick tip on how to delete the default content types in Asset library and adding your own custom content»

SharePoint 2010 ECMAscript – Copy\Move files to another document library – Part 2
SharePoint 2010 ECMAscript –»

This is the Part 2 of Copy documents example. In case you have missed Here is Part 1 Here is»

Recent Forum Posts

Secure Store won't ger correct user

by Culi on February 22, 2012

Sharepoint Consulting – worth time or worry time

by Johana on February 22, 2012

I need powershell code for Programatically OpenEditSave excel workbook in Sharepoint 2010

by mdgryn on February 22, 2012

Create a workflow who linked two infopath forms 2010

by wissem on February 20, 2012

Hide Ribbon tab in sharePoint 2010

by Bijay on February 19, 2012