{"id":74,"date":"2010-12-25T09:58:26","date_gmt":"2010-12-25T16:58:26","guid":{"rendered":"http:\/\/localhost\/todd_wp\/the-usercodetoken-is-invalid\/"},"modified":"2013-07-01T10:52:24","modified_gmt":"2013-07-01T16:52:24","slug":"the-usercodetoken-is-invalid","status":"publish","type":"post","link":"https:\/\/toddbaginski.com\/blog\/the-usercodetoken-is-invalid\/","title":{"rendered":"The UserCodeToken is invalid"},"content":{"rendered":"<p>Recently I was creating a Sandboxed Compatible Visual Web Part\u00a0 to display an AJAX Bing Maps control.\u00a0 When I added the Web Part to the page for first time to test it I received the following error.<\/p>\n<p><strong>Unhandled exception was thrown by the sandboxed code wrapper&#8217;s Execute method in the partial trust app domain: The UserCodeToken is invalid.<\/strong><\/p>\n<p>I was surprised when I saw no one had posted a solution to this issue on the Internet.\u00a0 To make the error go away I simply reset the SharePoint 2010 User Code Host Service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was creating a Sandboxed Compatible Visual Web Part\u00a0 to display an AJAX Bing Maps control.\u00a0 When I added the Web Part to the page<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[98],"tags":[10,32,7,26,33,34],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-sharepoint-2010","tag-custom-development","tag-sandbox","tag-sharepoint","tag-sharepoint-2010","tag-visual-studio","tag-visual-web-parts"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":1,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":796,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions\/796"}],"wp:attachment":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}