{"id":143,"date":"2010-03-12T10:38:39","date_gmt":"2010-03-12T08:38:39","guid":{"rendered":"http:\/\/jsiegmund.wordpress.com\/?p=143"},"modified":"2013-04-18T18:46:24","modified_gmt":"2013-04-18T17:46:24","slug":"sp2010-sharepoint-not-supported-with-net-framework-version","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2010\/03\/sp2010-sharepoint-not-supported-with-net-framework-version\/","title":{"rendered":"SP2010: SharePoint not supported with .NET framework version"},"content":{"rendered":"<p>Today I received two errors when developing a new project\u00a0for SharePoint 2010.<\/p>\n<p>The first one was the FileNotFoundException on the SPSite constructor. Turns out that VS2010 defaults to a x86 setting for for instance console apps. This needs to be x64 since SharePoint 2010 is x64 only; switch it.<\/p>\n<p>The second one was &#8220;microsoft sharepoint is not supported with version 4.0.30128.1 of the Microsoft .Net runtime&#8221;, a PlatformNotSupportedException. Weird one, but the MSDN forum post <a href=\"http:\/\/social.technet.microsoft.com\/Forums\/en\/sharepoint2010programming\/thread\/d0abb679-bb7a-452c-85fc-b337e80a91ba\">here <\/a>solved it for me.\u00a0 You need to add the following to your\u00a0registry:<\/p>\n<p>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\.NETFramework\\v2.0.50727\\AssemblyFoldersEx\\Chart Controls]<br \/>\n@=&#8221;C:\\\\Program Files (x86)\\\\Microsoft Chart Controls\\\\Assemblies&#8221;<\/p>\n<p>Then switch your framework versions back to 3.5 and you&#8217;re good to go. I assume this all will be fixed in the final RTM version of SP2010.<\/p>\n<p>Update: unfortunately, it seems it won&#8217;t be fixed. Because .NET 4.0 is being\u00a0released at roughly\u00a0the same time as SharePoint is, the team didn&#8217;t got the chance to build SharePoint on top of .NET 4.0. It&#8217;s a shame, but it looks like were bound to 3.5 when it comes to SharePoint development.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I received two errors when developing a new project\u00a0for SharePoint 2010. The first one was the FileNotFoundException on the SPSite constructor. Turns out that VS2010 defaults to a x86 setting for for instance console apps. This needs to be x64 since SharePoint 2010 is x64 only; switch it. The second one was &#8220;microsoft sharepoint<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[27],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-2j","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/143"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}