<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Saji Viswam&#039;s Blog</title>
	<atom:link href="http://sajiviswam.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sajiviswam.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 24 Feb 2012 18:47:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sajiviswam.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Saji Viswam&#039;s Blog</title>
		<link>http://sajiviswam.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sajiviswam.wordpress.com/osd.xml" title="Saji Viswam&#039;s Blog" />
	<atom:link rel='hub' href='http://sajiviswam.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Incorrect search result title for PDF documents in SharePoint 2010 search</title>
		<link>http://sajiviswam.wordpress.com/2012/02/17/incorrect-search-result-title-for-pdf-documents-in-sharepoint-2010-search/</link>
		<comments>http://sajiviswam.wordpress.com/2012/02/17/incorrect-search-result-title-for-pdf-documents-in-sharepoint-2010-search/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 18:53:11 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Search]]></category>
		<category><![CDATA[SharePoint 2010 Issues]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/?p=216</guid>
		<description><![CDATA[Recently we ran into an issue similar to what described in this post but with PDF documents. The SharePoint metadata “Title” is empty for these documents but the search results show some random text (which does not even present in the document) instead of document name. We have already implemented the fix for Word 2007 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=216&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently we ran into an issue similar to what described in <a href="http://sajiviswam.wordpress.com/2011/03/30/incorrect-search-result-title-for-word-2007-documents-in-sharepoint-2010-search/" target="_blank">this post</a> but with PDF documents. The SharePoint metadata “Title” is empty for these documents but the search results show some random text (which does not even present in the document) instead of document name. We have already implemented the fix for Word 2007 title issue described in the above mentioned post. On further investigating, it’s found that this behavior is due to the document’s internal property “Title” (not the document library metadata column “Title”). This title is set while generating the PDF files from a PDF creator/editor software. If SharePoint metadata “Title” is empty for the document, SharePoint crawler will consider the document’s internal property “Title” for the search result title. This can be verified by downloading the documents having incorrect title in search results and navigating to File &gt; Properties after opening it in Adobe Reader. You can find the “Title” property is set to the text which is displayed in search results as title. So, I guess, the crawler considers text for search result title in the order of SharePoint metadata “Title”, document specific property “Title” and then file name if the first two are empty. I haven’t found a fix or workaround to change this order. The best option would be encouraging users to make good use of SharePoint metadata while sharing/collaborating on documents. Populating the SharePoint metadata associated with documents (especially “title”) will improve visibility of these documents in search.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=216&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2012/02/17/incorrect-search-result-title-for-pdf-documents-in-sharepoint-2010-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>Hibernate Option Missing in Windows 7 Start Menu</title>
		<link>http://sajiviswam.wordpress.com/2012/02/14/hibernate-option-missing-in-windows-7-start-menu/</link>
		<comments>http://sajiviswam.wordpress.com/2012/02/14/hibernate-option-missing-in-windows-7-start-menu/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 23:30:20 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://sajiviswam.wordpress.com/?p=213</guid>
		<description><![CDATA[This could be because &#8220;Allow hybrid sleep&#8221; option is set to true. In order to change the setting, Open Power Options UI (Control Panel &#62; Hardware and Sound &#62; Power Options) Click on &#8220;Change plan settings&#8221; link against preferred power plan Click on Change advanced power settings link in &#8220;Edit Plan Settings&#8221; screen Expand the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=213&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This could be because &#8220;Allow hybrid sleep&#8221; option is set to true. In order to change the setting,</p>
<ol>
<li>Open Power Options UI (Control Panel &gt; Hardware and Sound &gt; Power Options)</li>
<li>Click on &#8220;Change plan settings&#8221; link against preferred power plan</li>
<li>Click on Change advanced power settings link in &#8220;Edit Plan Settings&#8221; screen</li>
<li>Expand the item &#8220;Sleep&#8221; and then sub item &#8220;Allow hybrid sleep&#8221;</li>
<li>If the Setting is &#8220;On&#8221; then click on it and change to &#8220;Off&#8221;</li>
</ol>
<p>Once this option is set, you can see &#8220;Hibernate&#8221; option is back in the start menu.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/213/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=213&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2012/02/14/hibernate-option-missing-in-windows-7-start-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>Programmatically Accessing SharePoint List XML Data in C# Code</title>
		<link>http://sajiviswam.wordpress.com/2011/12/20/programmatically-accessing-sharepoint-list-xml-data-in-c-code/</link>
		<comments>http://sajiviswam.wordpress.com/2011/12/20/programmatically-accessing-sharepoint-list-xml-data-in-c-code/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 23:10:32 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SharePoint Development]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/?p=200</guid>
		<description><![CDATA[SharePoint list data can be accessed in custom applications in C# without using SharePoint Object Model or Web Services. The list data can be retrieved as XML using a specific URL to the list (even using a web browser). This is described in this post. This URL can be requested from within the custom code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=200&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SharePoint list data can be accessed in custom applications in C# without using SharePoint Object Model or Web Services. The list data can be retrieved as XML using a specific URL to the list (even using a web browser). This is described in <a href="http://sajiviswam.wordpress.com/2011/12/20/sharepoint-list-data-as-xml/" target="_blank">this post</a>. This URL can be requested from within the custom code to get the XML. The problem while creating an XMLReader object using the above URL is, it cannot authenticate the user (or application pool identity) into the SharePoint site unless anonymous authentication is enabled in the SharePoint site (which is false in most of the SharePoint implementations). A work around for this problem is to use HTTPWebRequest object to make a request to the list URL and to parse the response stream. Following is an example which takes app pool identity to authenticated into SharePoint site and to get the list data as XML.</p>
<p><pre class="brush: plain;">

String myURL = &quot;&lt;your site URL&gt;/_vti_bin/owssvr.dll?Cmd=Display&amp;List={List GUID}&amp;XMLDATA=TRUE&quot;;
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(myURL);
myRequest.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse();
Encoding enc = System.Text.Encoding.GetEncoding(0);
StreamReader reader = new StreamReader(myResponse.GetResponseStream(), enc);
string result = reader.ReadToEnd();

</pre></p>
<p>The string “result” can be used to create an XML document.</p>
<p>If you are unable to use custom app pools for your web application (older versions of IIS) you can create a NetworkCredentail object to specify custom credentials. In order to do that, replace the line</p>
<p><pre class="brush: plain;">

myRequest.Credentials = CredentialCache.DefaultCredentials;

</pre></p>
<p>with the following block.</p>
<p><pre class="brush: plain;">

CredentialCache credCache = new CredentialCache();
credCache.Add(new Uri(myURL), &quot;NTLM&quot;, new NetworkCredential(&quot;&lt;user name&gt;&quot;, &quot;&lt;password&gt;&quot;, &quot;&lt;domain&gt;&quot;));
myRequest.Credentials = credCache;

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=200&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/12/20/programmatically-accessing-sharepoint-list-xml-data-in-c-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint List Data as XML</title>
		<link>http://sajiviswam.wordpress.com/2011/12/20/sharepoint-list-data-as-xml/</link>
		<comments>http://sajiviswam.wordpress.com/2011/12/20/sharepoint-list-data-as-xml/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 22:49:55 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Development]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/?p=198</guid>
		<description><![CDATA[Getting data as XML from a SharePoint List or Library is very helpful when we need to use the data in a custom application (developed using a programming language like C#) or in InfoPath forms. The data from a SharePoint list can be retrieved in XML format by using the following URL: &#60;your site URL&#62;/_vti_bin/owssvr.dll?Cmd=Display&#38;List={&#60;list [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=198&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Getting data as XML from a SharePoint List or Library is very helpful when we need to use the data in a custom application (developed using a programming language like C#) or in InfoPath forms. The data from a SharePoint list can be retrieved in XML format by using the following URL:</p>
<blockquote><p>&lt;your site URL&gt;/_vti_bin/owssvr.dll?Cmd=Display&amp;List={&lt;list GUID&gt;}&amp;XMLDATA=TRUE</p>
</blockquote>
<p>You can mention different parameters like “Query”, “FilterField” etc. for specifying columns to be retrieved and for filtering the quantity of data being retrieved. An example for these parameter options is below:</p>
<blockquote><p>&lt;your site URL&gt;/_vti_bin/owssvr.dll?Cmd=Display&amp;List={&lt;list GUID&gt;}&amp;&amp;XMLDATA=TRUE&amp;Query=&lt;column name&gt;&amp;FilterField1=&lt;column name&gt;&amp;FilterValue1=&lt;value&gt;</p>
</blockquote>
<p>The FilterFiled and FilterValue in pairs like FilterField1=&lt;&gt;&amp;FilterValue1=&lt;&gt; and FilterField2=&lt;&gt;&amp;FilterValue2=&lt;&gt; and such.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=198&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/12/20/sharepoint-list-data-as-xml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;System.InvalidProgramException: Common Language Runtime detected an invalid program&#8221; while rendering Data View Web Parts</title>
		<link>http://sajiviswam.wordpress.com/2011/12/13/system-invalidprogramexception-common-language-runtime-detected-an-invalid-program-while-rendering-data-view-web-parts/</link>
		<comments>http://sajiviswam.wordpress.com/2011/12/13/system-invalidprogramexception-common-language-runtime-detected-an-invalid-program-while-rendering-data-view-web-parts/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 18:49:13 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration; Web Part Error; Error]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/?p=196</guid>
		<description><![CDATA[On a busy Tuesday, users of our SharePoint 2010 farm started receiving the following error on a web part page. Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=196&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On a busy Tuesday, users of our SharePoint 2010 farm started receiving the following error on a web part page.</p>
<blockquote><p><font size="1">Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.</font></p>
</blockquote>
<p>The web part page was Post.aspx page in a Blog site. We’ve modified XSLT of the web part displaying the post (title and body) in order to change the default blog picture (date view calendar) to poster’s profile picture. </p>
<p>The error message from ULS log was,</p>
<blockquote><p><font size="1">Error while executing web part: System.InvalidProgramException: Common Language Runtime detected an invalid program.&#160;&#160;&#160; <br /> at Execute(XmlQueryRuntime )&#160;&#160;&#160; <br /> at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)&#160;&#160;&#160; <br /> at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)&#160;&#160;&#160; <br /> at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results)&#160;&#160;&#160; <br /> at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform)&#160;&#160;&#160; <br /> at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)</font></p>
</blockquote>
<p>It looks like a random issue with SharePoint 2010 List View/Data View web parts whose XSLT has been customized. Restarting IIS on the web front end server resolved the issue. Hope Microsoft’s fixed the issue in SP1.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=196&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/12/13/system-invalidprogramexception-common-language-runtime-detected-an-invalid-program-while-rendering-data-view-web-parts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;The Web application at &lt;url&gt; could not be found&#8221; &#8211; Error with Visual Studio Custom Applications which uses SharePoint 2010 Object Model</title>
		<link>http://sajiviswam.wordpress.com/2011/12/09/the-web-application-at-url-could-not-be-found-error-with-visual-studio-custom-applications-which-uses-sharepoint-2010-object-model/</link>
		<comments>http://sajiviswam.wordpress.com/2011/12/09/the-web-application-at-url-could-not-be-found-error-with-visual-studio-custom-applications-which-uses-sharepoint-2010-object-model/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 23:58:10 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Development; SharePiont Object Model]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/?p=194</guid>
		<description><![CDATA[Most of us might have seen this error while creating a custom application (console application, Windows application or custom web part) using Visual Studio targeting for SharePoint 2010. It’s not just this specific error but a lot of other weird error messages without any reason. The above error occurs when we create a new SPSite [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=194&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of us might have seen this error while creating a custom application (console application, Windows application or custom web part) using Visual Studio targeting for SharePoint 2010. It’s not just this specific error but a lot of other weird error messages without any reason. The above error occurs when we create a new SPSite object&#160; using a site URL with following code.</p>
<blockquote><p>SPSite site = New SPSite (&lt;site URL&gt;);</p>
</blockquote>
<p>When we check the web application and site mentioned in &lt;site URL&gt; it exists and can be browsed in browser! Looks like there is no reason for Visual Studio to show this error. But stop yelling at Visual Studio; there is a reason. You haven’t selected the right CPU version for the target application (x64 v/s x86). The reason behind this is, SharePoint 2010 works only on a 64-bit platform but Visual Studio is a 32-bit application. When we open a project in Visual Studio, the default target platform selected is 32-bit. When you compile your custom application, it creates binaries for 32-bit platform which doesn’t work on a 64-bit platform as the way it is expected to be. </p>
<p>So how can we avoid this error? Just change the target platform to x64 in Project Properties &gt; Build section. It’s also recommended to create reference to corresponding assemblies. For example,</p>
<blockquote><p>$(Windir)\Microsoft.NET\<font>Framework64</font>\v2.0.50727\system.data.dll</p>
<p>$(Windir)\Microsoft.NET\<font>Framework64</font>\v2.0.50727\mscorlib.dll</p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=194&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/12/09/the-web-application-at-url-could-not-be-found-error-with-visual-studio-custom-applications-which-uses-sharepoint-2010-object-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>Add Only Permission Level in SharePoint 2010</title>
		<link>http://sajiviswam.wordpress.com/2011/12/09/add-only-permission-level-in-sharepoint-2010/</link>
		<comments>http://sajiviswam.wordpress.com/2011/12/09/add-only-permission-level-in-sharepoint-2010/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 22:47:23 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration; Permission]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/?p=191</guid>
		<description><![CDATA[Have you ever had a requirement from your farm users that they need a custom permission level which allows the users/groups to add or submit documents or InfoPath forms into a library but not view or edit them? If you try to create this permission level using SharePoint GUI (Site Permissions &#62; Permission Levels &#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=191&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever had a requirement from your farm users that they need a custom permission level which allows the users/groups to add or submit documents or InfoPath forms into a library but not view or edit them? If you try to create this permission level using SharePoint GUI (Site Permissions &gt; Permission Levels &gt; Add a Permission Level), you will notice that whenever you check the permission “Add Items”, the permission “View Items” will also be checked. There is no way you can check “Add Items” permission alone. But don’t worry, as always, PowerShell is at your help. You can create an add only permission level using the following PowerShell script.</p>
<p><pre class="brush: powershell;">

$spweb=Get-SPWeb -Identity &quot;&lt;site url&gt;&quot;;
$spRoleDefinition = New-Object Microsoft.SharePoint.SPRoleDefinition;
$spRoleDefinition.Name = &quot;Submit only&quot;;
$spRoleDefinition.Description = &quot;Can submit/add forms/files/items into library or list but cannot view/edit them.&quot;;
$spRoleDefinition.BasePermissions = &quot;AddListItems, ViewPages, ViewFormPages&quot;;
$spweb.RoleDefinitions.Add($spRoleDefinition);
$spweb.Dispose();

</pre></p>
<p>Paste the above script into a text editor and save it into the server with .ps1 extension. From the PowerShell console, execute the ps1 file. You will have the new permission level created in the site collection at &lt;site url&gt;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=191&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/12/09/add-only-permission-level-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>Are List Attachments Indexed in SharePoint Search?</title>
		<link>http://sajiviswam.wordpress.com/2011/11/23/are-list-attachments-indexed-in-sharepoint-search/</link>
		<comments>http://sajiviswam.wordpress.com/2011/11/23/are-list-attachments-indexed-in-sharepoint-search/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 17:55:29 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Search]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/?p=188</guid>
		<description><![CDATA[Recently one of my colleagues brought into my attention that list attachments were not getting indexed and hence not showing in search results. We did some research and tests together and it is found that attachments are actually getting indexed and can be searched! I’ve seen a lot of people asking the same question in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=188&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently one of my colleagues brought into my attention that list attachments were not getting indexed and hence not showing in search results. We did some research and tests together and it is found that attachments are actually getting indexed and can be searched! I’ve seen a lot of people asking the same question in various blogs. I guess the confusion arouse because of the way SharePoint shows the search result for attachment. In the search results, SharePoint doesn’t really provide a direct link to the attachment. Instead, it displays link to the list item containing the attachment. But in the description of the search result, you can see the words from the attachment that you searched for. This is a bit disappointing because the search result would be confusing and useless if the list item has multiple attachments. The user won’t know which attachment contains the words he searched for.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=188&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/11/23/are-list-attachments-indexed-in-sharepoint-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>Delay in Updating SharePoint RSS Feeds in Outlook 2010</title>
		<link>http://sajiviswam.wordpress.com/2011/11/04/delay-in-updating-sharepoint-rss-feeds-in-outlook-2010/</link>
		<comments>http://sajiviswam.wordpress.com/2011/11/04/delay-in-updating-sharepoint-rss-feeds-in-outlook-2010/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 22:51:16 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[Microsoft Office]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration; Microsoft Outlook; RSS Feed Settings]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/2011/11/04/delay-in-updating-sharepoint-rss-feeds-in-outlook-2010/</guid>
		<description><![CDATA[Most of time users may complain about RSS feed not getting updated in timely manner from SharePoint lists and libraries even though they have set the Send/Receive interval to shorter duration. This is because, in a SharePoint site, there is a minimum default time of one hour is set which RSS feed reader applications can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=187&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of time users may complain about RSS feed not getting updated in timely manner from SharePoint lists and libraries even though they have set the Send/Receive interval to shorter duration. This is because, in a SharePoint site, there is a minimum default time of one hour is set which RSS feed reader applications can request for update from RSS feeds in that site. This default minimum time can be changed by the site owner by performing following steps.</p>
<ol>
<li>Navigate to Site Settings &gt; RSS (under Site Administration)</li>
<li>Change “Time to Live (minutes)” to desired duration. Default is 60 minutes.</li>
</ol>
<p>If you cannot change this property due to some reason (like organizational policy), you can instruct the complaining users to perform the following steps in Outlook to override this “publisher enforced delay”.</p>
<ol>
<li>In MS Outlook 2010, open Outlook Account Settings by clicking File tab &gt; Account Settings &gt; Account Settings…</li>
<li>In the Account Settings screen, select RSS Feeds tab, select desired RSS feed from the list and click Change…</li>
<li>In the RSS Feed Options screen, UNCHECK the Update Limit check box and click OK.</li>
<li>Click Close on Account Settings screen</li>
</ol>
<p>Now the RSS feeds will be synced according to the Send and Receive frequency you’ve set in Outlook. You can change the Send and Receive frequency by performing the following steps.</p>
<ol>
<li>Open Outlook Options screen by clicking File tab &gt; Options</li>
<li>In Outlook Options, select Advanced on the left hand side pane and then click on Send and Receive button on right.</li>
<li>In Send/Receive Groups screen select the account you want (All Accounts by default) and change the Automatic Send/Receive schedule to desired duration.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=187&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/11/04/delay-in-updating-sharepoint-rss-feeds-in-outlook-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
		<item>
		<title>Cannot Delete Site Columns from Document Library or Content Type</title>
		<link>http://sajiviswam.wordpress.com/2011/09/29/cannot-delete-site-columns-from-document-library-or-content-type/</link>
		<comments>http://sajiviswam.wordpress.com/2011/09/29/cannot-delete-site-columns-from-document-library-or-content-type/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 20:16:00 +0000</pubDate>
		<dc:creator>Saji Viswambharan</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration]]></category>

		<guid isPermaLink="false">https://sajiviswam.wordpress.com/2011/09/29/cannot-delete-site-columns-from-document-library-or-content-type/</guid>
		<description><![CDATA[Recently I ran into an issue where one of the SharePoint users added an existing site column called “Active” into one of the document libraries and was not able to remove it. This is a strange behavior from SharePoint and is because some “AllowDeletion” field property is set to true by default. Anyway, I was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=186&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I ran into an issue where one of the SharePoint users added an existing site column called “Active” into one of the document libraries and was not able to remove it. This is a strange behavior from SharePoint and is because some “AllowDeletion” field property is set to true by default. Anyway, I was able to delete the filed using the following PowerShell script.</p>
<blockquote><p>$web = Get-SPWeb <a href="https://siteurl/">https://siteurl/</a>      <br />$list = $web.Lists[&quot;Shared Documents&quot;]      <br />$field = $list.Fields[&quot;Active&quot;]      <br />$field.AllowDeletion = “true”      <br />$field.Sealed = “false”      <br />$field.Delete()      <br />$list.Update()      <br />$web.Dispose()</p>
</blockquote>
<p><font color="#000000"></font>    <br />In this case, the column was added only to the Document Library; not to the site content type. If these types of columns were added to site content types, you could use the following script.</p>
<blockquote><p>$web = Get-SPWeb <a href="http://siteurl/">http://siteurl/</a>      <br />$ct = $web.ContentTypes[&quot;Document&quot;]      <br />$spFieldLink = New-Object Microsoft.SharePoint.SPFieldLink($web.Fields[&quot;Active&quot;])      <br />$ct.FieldLinks.Delete($spFieldLink.Id)      <br />$ct.Update()      <br />$web.Dispose()</p>
</blockquote>
<p>Thanks to <a href="http://brendannewell.com/musings/?p=120" target="_blank">Brendan Well’s blog</a> which saved me a lot of time.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sajiviswam.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sajiviswam.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sajiviswam.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sajiviswam.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sajiviswam.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sajiviswam.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sajiviswam.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sajiviswam.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sajiviswam.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sajiviswam.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sajiviswam.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sajiviswam.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sajiviswam.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sajiviswam.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sajiviswam.wordpress.com&amp;blog=8416467&amp;post=186&amp;subd=sajiviswam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sajiviswam.wordpress.com/2011/09/29/cannot-delete-site-columns-from-document-library-or-content-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fd7405fd30a23d2c3e4e365b577799c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Saji Viswam</media:title>
		</media:content>
	</item>
	</channel>
</rss>
