You cannot use SharePoint Foundation 2010 objects with .NET 4


Michael Foertsch
-Expert in Residence

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.

Twitter This Tip! ReTweet this Tip!


Posted Aug 19 2010, 08:00 AM by sos

Comments

Twitter Trackbacks for You cannot use SharePoint Foundation 2010 objects with .NET 4 - SharePoint Tips - Secrets of SharePoint [secretsofsharepoint.com] on Topsy.com wrote Twitter Trackbacks for You cannot use SharePoint Foundation 2010 objects with .NET 4 - SharePoint Tips - Secrets of SharePoint [secretsofsharepoint.com] on Topsy.com
on 08-19-2010 9:42 AM

Pingback from  Twitter Trackbacks for                 You cannot use SharePoint Foundation 2010 objects with .NET 4 - SharePoint Tips - Secrets of SharePoint         [secretsofsharepoint.com]        on Topsy.com

Idera SharePoint Reviews SMBology, Inc. Rackspace Hosting Sponsored by Idera and SharePoint Reviews and SMBology and EPCGroup.net
Copyright 2011 SecretsOfSharePoint.com. All rights reserved.