<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ideas For Free &#187; Troubleshoot</title>
	<atom:link href="http://blog.libinuko.com/category/troubleshoot/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.libinuko.com</link>
	<description>Only freedom will grow our ideas</description>
	<lastBuildDate>Sun, 18 Dec 2011 04:51:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VS 2010 : Cannot start service SPUserCodeV4</title>
		<link>http://blog.libinuko.com/2010/06/17/vs-2010-cannot-start-service-spusercodev4/</link>
		<comments>http://blog.libinuko.com/2010/06/17/vs-2010-cannot-start-service-spusercodev4/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 17:23:13 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Troubleshoot]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/2010/06/17/vs-2010-cannot-start-service-spusercodev4/</guid>
		<description><![CDATA[English Today, for the first time after installing the latest version of 2010 families, I encounter this error “Cannot start service SPUserCodeV4”. This error message comes when I tried to deploy – sandboxed solution. &#160; Try to Google what would be the issue, I’ve found some blog here: http://littletalk.wordpress.com/2010/05/05/cannot-start-service-spusercodev4-when-deploy-sharepoint-webpart-in-vs-2010/ http://blog.dennus.net/2009/11/18/sp2010-spusercodev4-your-new-web-part-project-isnt-deploying/ &#160; However, in my case it is not “Microsoft SharePoint Foundation [...] <a href="http://blog.libinuko.com/2010/06/17/vs-2010-cannot-start-service-spusercodev4/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>English</p>
<p>Today, for the first time after installing the latest version of 2010 families, I encounter this error “Cannot start service SPUserCodeV4”. This error message comes when I tried to deploy – sandboxed solution.</p>
<p>&#160;</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2010/06/image.png"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="image" src="http://blog.libinuko.com/wp-content/uploads/2010/06/image_thumb.png" width="542" height="150" /></a> </p>
<p>Try to Google what would be the issue, I’ve found some blog here:</p>
<p><a title="http://littletalk.wordpress.com/2010/05/05/cannot-start-service-spusercodev4-when-deploy-sharepoint-webpart-in-vs-2010/" href="http://littletalk.wordpress.com/2010/05/05/cannot-start-service-spusercodev4-when-deploy-sharepoint-webpart-in-vs-2010/">http://littletalk.wordpress.com/2010/05/05/cannot-start-service-spusercodev4-when-deploy-sharepoint-webpart-in-vs-2010/</a></p>
<p><a title="http://blog.dennus.net/2009/11/18/sp2010-spusercodev4-your-new-web-part-project-isnt-deploying/" href="http://blog.dennus.net/2009/11/18/sp2010-spusercodev4-your-new-web-part-project-isnt-deploying/">http://blog.dennus.net/2009/11/18/sp2010-spusercodev4-your-new-web-part-project-isnt-deploying/</a></p>
<p>&#160;</p>
<p>However, in my case it is not “Microsoft SharePoint Foundation User Code Service”. It is “<strong>Microsoft SharePoint Foundation Sandboxed Code Service</strong>” instead.</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2010/06/image1.png"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="image" src="http://blog.libinuko.com/wp-content/uploads/2010/06/image_thumb1.png" width="605" height="169" /></a> </p>
</p>
<p>After starting the “Central Administration” &gt; “Services” &gt; “Microsoft SharePoint Foundation Sandboxed Code Service” everything goes to normal.</p>
<p>Now, I can deploy my solution from Visual Studio 2010.   </p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2010/06/image2.png"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="image" src="http://blog.libinuko.com/wp-content/uploads/2010/06/image_thumb2.png" width="538" height="280" /></a></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2010/06/17/vs-2010-cannot-start-service-spusercodev4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshoot: SPPropertyBag can not deserialize complex type.</title>
		<link>http://blog.libinuko.com/2009/10/11/troubleshoot-sppropertybag-can-not-deserialize-complex-type/</link>
		<comments>http://blog.libinuko.com/2009/10/11/troubleshoot-sppropertybag-can-not-deserialize-complex-type/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 05:13:41 +0000</pubDate>
		<dc:creator>cakriwut</dc:creator>
				<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Troubleshoot]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.libinuko.com/2009/10/11/troubleshoot-sppropertybag-can-not-deserialize-complex-type/</guid>
		<description><![CDATA[&#160; English: In SharePoint, there is SPPropertyBag which can stores arbitrary key-and-value pairs into configuration database. And this is very good location compared with web.config. Moreover we can also create our custom class from SPPersistedObject to persist it state in a permanent store and retrieve it for later usage. (see MSDN refence SPPersistedObject) But don’t be so happy [...] <a href="http://blog.libinuko.com/2009/10/11/troubleshoot-sppropertybag-can-not-deserialize-complex-type/">[read more...]</a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>&#160;
</p>
<p>English:</p>
<p>In SharePoint, there is SPPropertyBag which can stores arbitrary key-and-value pairs into configuration database. And this is very good location compared with web.config. Moreover we can also create our custom class from SPPersistedObject to persist it state in a permanent store and retrieve it for later usage. (see MSDN refence <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.sppersistedobject.aspx">SPPersistedObject</a>)</p>
<p>But don’t be so happy – the SPPropertyBag can only store primitive types such as strings, integers, and GUID; and collection of above. The main keyword to understand is SPPropertyBag can only store primitives type and not arbitrary key-and-value pairs.</p>
<p>When you try to store complex object, you&#8217;ll unstablize configuration DB. And most of the time, you will not be able to install WSP, or perform anything related with SPPropertyBag operation. For example the timer job will stops to work, any component that reads SPPropertyBag will suddenly stuck. All because SharePoint will try to retrieve any persisted object from configuration DB and it fails. It will then show you and error message like this,</p>
<blockquote><p>The platform does not know how to deserialize an object of type [TYPE]. The platform can deserialize primitive types such as strings, integers and GUID; other SPPersistedObjects or SPAutoserializingObjects or collections of any of the above. (..more..)</p>
</blockquote>
<p>The visual error will be something like this,</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2009/10/SPBag1.gif"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="SPBag1" src="http://blog.libinuko.com/wp-content/uploads/2009/10/SPBag1_thumb.gif" width="684" height="363" /></a> </p>
<p>&#160;</p>
<p>So how to troubleshoot this issue?</p>
<blockquote><p>IMPORTANT!&#160; <br />1. Please backup configuration DB before proceeding with following procedure.      <br />2. This procedure will modify configuration DB directly , and is un-supported by Microsoft.</p>
</blockquote>
<p>TROUBLESHOOT.</p>
<p>1. Remove offending assembly from GAC (C:\Windows\Assembly) store.</p>
<p>2. Open Query Manager in SQL Management Studio, and connect to SharePoint content DB. Check that you have all reference to the offending property bag.</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2009/10/SPBag2.gif"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="SPBag2" src="http://blog.libinuko.com/wp-content/uploads/2009/10/SPBag2_thumb.gif" width="682" height="358" /></a> </p>
<p>3.&#160; Offending property bag can be found in “Properties” field of Objects table. If you dig into the content you will find something like</p>
</p>
<blockquote><p>&lt;object type=……&gt;     <br />…&lt;fld type=”[YOUR TYPE]”&gt;&lt;/fld&gt;..      <br />&lt;/object&gt;</p>
</blockquote>
<p>where [YOUR TYPE] is the one causing problem. Once you have sure that you have all rows selected, then you can do clean up.</p>
<p>4. Replace SELECT [Fields] statement with DELETE statement.</p>
<p><a href="http://blog.libinuko.com/wp-content/uploads/2009/10/SPBag3.gif"><img style="border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px" border="0" alt="SPBag3" src="http://blog.libinuko.com/wp-content/uploads/2009/10/SPBag3_thumb.gif" width="658" height="278" /></a> </p>
<p>And voila, I have saved you from big trouble.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.libinuko.com/2009/10/11/troubleshoot-sppropertybag-can-not-deserialize-complex-type/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

