{"id":1512,"date":"2013-08-06T15:01:44","date_gmt":"2013-08-06T14:01:44","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=1512"},"modified":"2013-08-06T15:01:44","modified_gmt":"2013-08-06T14:01:44","slug":"nullreferenceexception-using-asseturlselector","status":"publish","type":"post","link":"http:\/\/www.stuartroberts.net\/index.php\/2013\/08\/06\/nullreferenceexception-using-asseturlselector\/","title":{"rendered":"NullReferenceException using AssetUrlSelector"},"content":{"rendered":"<p>If you&#8217;ve been using the AssetUrlSelector for SharePoint the following may help if you&#8217;ve recently started getting the following error in the ULS logs and are not able to view list items.<\/p>\n<p><em>Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.<\/em><\/p>\n<p>The cause of this error is likely due to a recent update applied to the server.  The most likely candidate is the recent KB update &#8211; <a href=\"http:\/\/support.microsoft.com\/kb\/2844287\" title=\"KB - 2844287\" target=\"_blank\">2844287<\/a> &#8211; <em>MS13-052: Description of the security update for the .NET Framework 2.0 Service Pack 2 on Windows Vista Service Pack 2 and Windows Server 2008 Service Pack 2: July 9, 2013<\/em><\/p>\n<p>Microsoft have recently released a hotfix for this issue (and a few others).  The hotfix can be downloaded from the Microsoft site <a href=\"http:\/\/support.microsoft.com\/kb\/2872441\" title=\"Microsoft SharePoint applications may encounter errors while executing web parts\" target=\"_blank\">here<\/a>.<\/p>\n<p>I can confirm that after applying this hotfix, the assert URL selector dialog displayed list items without generating an error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve been using the AssetUrlSelector for SharePoint the following may help if you&#8217;ve recently started getting the following error in the ULS logs and are not able to view list items. Error while executing web part: System.NullReferenceException: Object reference &hellip; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2013\/08\/06\/nullreferenceexception-using-asseturlselector\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[3],"tags":[81],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/plx2I-oo","_links":{"self":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1512"}],"collection":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=1512"}],"version-history":[{"count":2,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1512\/revisions"}],"predecessor-version":[{"id":1514,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1512\/revisions\/1514"}],"wp:attachment":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=1512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=1512"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=1512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}