<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>...Me Unplugged... : WSS</title><link>http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx</link><description>Tags: WSS</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>SharePoint 2007 Maximum Limitations</title><link>http://blogs.msdn.com/harsh/archive/2007/03/21/sharepoint-2007-maximum-limitations.aspx</link><pubDate>Wed, 21 Mar 2007 20:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1926917</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>13</slash:comments><comments>http://blogs.msdn.com/harsh/comments/1926917.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=1926917</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=1926917</wfw:comment><description>&lt;P&gt;Following is a list of names and other parameters with the maximum allowable size on each. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Entity&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Max Permissible Size&lt;/STRONG&gt;&lt;BR&gt;Site Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128 characters&lt;BR&gt;Site URL &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;255 characters&lt;BR&gt;Display name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128 characters&lt;BR&gt;Connection string &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;384 characters&lt;BR&gt;Email address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128 characters&lt;BR&gt;Version numbers&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;064 characters&lt;BR&gt;Virtual Server Friendly Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;064 characters&lt;BR&gt;SQL Database Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;123 characters&lt;BR&gt;SQL Database Column&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128 characters&lt;BR&gt;SQL Database Table Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128 characters&lt;BR&gt;SQL Role Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128 characters&lt;BR&gt;Server Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;128 characters&lt;BR&gt;Windows User Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;300 characters&lt;BR&gt;Windows Password&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;300 characters&lt;BR&gt;Dependencies per object&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;032 objects&lt;BR&gt;Zone enumeration value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;004 zones&lt;BR&gt;Default SQL command timeout &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;300 seconds&lt;BR&gt;Number of simultaneous&lt;BR&gt;workflows that can be run* &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;015 &lt;/P&gt;
&lt;P&gt;If during your course of using the product, you inadvertently cross these limits, then you would end up with errors. These are hard limits. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color=#ff0000&gt;* This is the maximum number of simultaneous workflows that can be in memory executing code. (NOTE: there is no limit to the number of workflow instances in progress in the database)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;~harsh&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 1pt"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1926917" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category><category domain="http://blogs.msdn.com/harsh/archive/tags/MOSS+/default.aspx">MOSS </category></item><item><title>Single SignOn Error codes and what they mean</title><link>http://blogs.msdn.com/harsh/archive/2007/03/21/single-signon-error-codes-and-what-they-mean.aspx</link><pubDate>Wed, 21 Mar 2007 03:41:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1922408</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/harsh/comments/1922408.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=1922408</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=1922408</wfw:comment><description>&lt;div&gt;&lt;table style="border-collapse:collapse" border="0"&gt;&lt;colgroup&gt;&lt;col style="width:79px"/&gt;&lt;col style="width:88px"/&gt;&lt;col style="width:191px"/&gt;&lt;col style="width:68px"/&gt;&lt;col style="width:213px"/&gt;&lt;/colgroup&gt;&lt;tbody valign="top"&gt;&lt;tr&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:#0000cc"&gt;&lt;strong&gt;Error Code&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:#0000cc"&gt;&lt;strong&gt;Meaning&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:#0000cc"&gt;&lt;strong&gt;When Thrown&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:#0000cc"&gt;&lt;strong&gt;Bubbled Behavior&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:#0000cc"&gt;&lt;strong&gt;How To Overcome&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background: #d2eaf1"&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black; font-family:Courier New; font-size:10pt"&gt;&lt;strong&gt;-2140993974&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;SSO is not configured&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Failure when SSO has not been setup via Central Administration&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Critical error logged in ULS with error code.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;If SSO is not configured then configure from Central Admin. &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black; font-family:Courier New; font-size:10pt"&gt;&lt;strong&gt;-2140993973&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;SSO Wrong Version&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;SSO config setting or master secret has changed and change has not reflected.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Critical error logged in ULS with error code.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Not applicable. Self healing error.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background: #d2eaf1"&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black; font-family:Courier New; font-size:10pt"&gt;&lt;strong&gt;-2140995575&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Failed to connect to SQL Server&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Creation of the SSO database fails. &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Critical error logged in ULS with error code.&lt;br/&gt;Error logged in application event log.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Check SQL connectivity. &lt;br/&gt;Check permissions for the account running the MS SSO service.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black; font-family:Courier New; font-size:10pt"&gt;&lt;strong&gt;-2140995576&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;SharePoint Central administration virtual root not found&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;The SSO folder under 12\Template\Admin\SSO does not exist. This check performed while configuring master secret server. Either a call into Configuration.ConfigureSecretServer via OM or the UI page to configure SSO can throw this error.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Error logged in ULS with error code.
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:black"&gt;Or error returned to calling function&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Repair the product installation.&lt;br/&gt;Most likely the files were not copied properly&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background: #d2eaf1"&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black; font-family:Courier New; font-size:10pt"&gt;&lt;strong&gt;-2140995588&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Web application not running with windows authentication.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;When a custom webpart is placed on a page in a non-windows auth web app. &lt;br/&gt;&lt;/span&gt;&lt;span style="color:red; font-size:10pt"&gt;&lt;strong&gt;SSO CANNOT WORK WITH FORMS AUTHENTICATION.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Error logged in ULS with error code.
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:black"&gt;Or error returned to calling function.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Check authentication providers for the web application. If you have a requirement to have the web app behind FBA, then SSO cannot work.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black; font-family:Courier New; font-size:10pt"&gt;&lt;strong&gt;-2140995589&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;SQL Server not supported.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;If the SQL server specified to host the SSO db is not greater than or equal to SQL Server 2000 SP3. &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Error logged in ULS with error code.
&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:black"&gt;Or error returned to calling function.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 0.75pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Check SQL Server patching and version numbers.&lt;br/&gt;&lt;a href="http://support.microsoft.com/kb/321185"/&gt;&lt;/span&gt;http://support.microsoft.com/kb/321185&lt;span style="color:black"&gt;
								&lt;br/&gt;Minimum required is SQL Server 2000 SP3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background: #d2eaf1"&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black; font-family:Courier New; font-size:10pt"&gt;&lt;strong&gt;-2147023143&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Failure to connect to the Microsoft Single-SignOn Service.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Failure to connect to the MS SingleSign On Service. Either when the service is not started or the service has a logon failure.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 0.75pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;Error logged in ULS with error code&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 1.0pt"&gt;&lt;p&gt;&lt;span style="color:black"&gt;-&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;The above information is indicative of the errors that you may encounter while working with Single SignOn on MOSS 2007. This is only for troubleshooting purposes.
&lt;/p&gt;&lt;p&gt;~harsh&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1922408" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category><category domain="http://blogs.msdn.com/harsh/archive/tags/MOSS+/default.aspx">MOSS </category><category domain="http://blogs.msdn.com/harsh/archive/tags/SSO/default.aspx">SSO</category></item><item><title>Musings...</title><link>http://blogs.msdn.com/harsh/archive/2005/09/27/474217.aspx</link><pubDate>Tue, 27 Sep 2005 04:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:474217</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/harsh/comments/474217.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=474217</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=474217</wfw:comment><description>&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;Its been quite some time since I consciously dug out time to write something here. The past couple of months have been a helluva time.&amp;nbsp;I started with&amp;nbsp;getting&amp;nbsp;the feelers on office 12 and then the whole bunch of technological challenges that throws up. Most of my time has been spent just getting to know the "stuff under the hood" and then some. The PDC was one big event this year from a technological perspective. This year saw the unvieling of Office 12 suite of products along with the much awaited Avalon, Acrylic and the WinFX showcase. But of course there have been reams and reams of HTML being churned out on everything post PDC. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;Then on a more realistic front was the threat posed by Katrina and Rita - the current celebrities. Katrina was an eye opener on what happened and waht could have been done to prevent the debacle. But as always, when calamity strikes, human nature comes to the fore and we see astounding acts of heroism and selflessness from unexpected quarters. I was fortunate to have witnessed this in the recent cyclonic floods in Mumbai. With the water level rising upto 2 storeys, the situation was frightening, and yet the effervescent spirit of the die-hard Mumbaikar (as Bombayites fondly call themselves) kept hem afloat!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;September is a month that I have grown to love. Giving me two opportunities to celebrate first with my birthday followed closely by my wedding anniversary. This time around was a bit special since it was my first anniversary. Celebrations galore!!! It was a lovely weekend which was whiled away reminescing on memories of our college days. Ecstatic.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;I have been painstakingly trying to get the Office 12 beta working on top of Longhorn and its been hoodwinking me everytime. Aw well, atleast&amp;nbsp;I have the satisfaction of seeing them in action as well as taking up the challenge to troubleshoot. With lots of work happening with .NET as well as the impending release of the much awaited .NET vNext, I thought it a good opportunity to start learning the ropes for that. With loads and loads of new features as well as new idealogies, its turning out to be quite an interesting ask. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;On a lighter note had dekko of the AoE3 demo, with astounding graphics I personally feel the game play has slowed down a lot. Then of course there was the much raved about F.E.A.R - designed to chill we folks had the misfortune of the game crashing on us owing to poor hardware. Tsk tsk!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;More coming soon....&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=474217" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category><category domain="http://blogs.msdn.com/harsh/archive/tags/Vista/default.aspx">Vista</category><category domain="http://blogs.msdn.com/harsh/archive/tags/Everything+else/default.aspx">Everything else</category></item><item><title>Its here! Its here!</title><link>http://blogs.msdn.com/harsh/archive/2005/09/13/464148.aspx</link><pubDate>Mon, 12 Sep 2005 23:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:464148</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/harsh/comments/464148.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=464148</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=464148</wfw:comment><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;After months and months of anticipation the word is out on the streets regarding the WSS SP2. Yoooohoooo! Check out more stuff here at: &lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma; mso-fareast-font-family: Calibri; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-theme-font: minor-fareast"&gt;&lt;A title=http://www.microsoft.com/downloads/details.aspx?familyid=abba20f2-3625-4c9c-a412-ab9bbebdb5e8&amp;amp;displaylang=en href="http://www.microsoft.com/downloads/details.aspx?familyid=abba20f2-3625-4c9c-a412-ab9bbebdb5e8&amp;amp;displaylang=en"&gt;&lt;FONT color=#0066ff&gt;http://www.microsoft.com/downloads/details.aspx?familyid=abba20f2-3625-4c9c-a412-ab9bbebdb5e8&amp;amp;displaylang=en&lt;/FONT&gt;&lt;/A&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=464148" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category></item><item><title>Listless</title><link>http://blogs.msdn.com/harsh/archive/2005/08/05/447802.aspx</link><pubDate>Thu, 04 Aug 2005 21:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:447802</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/harsh/comments/447802.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=447802</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=447802</wfw:comment><description>&lt;P&gt;&lt;FONT color=#000080&gt;&lt;FONT face=Verdana size=2&gt;This is something really silly. Any list that is a part of a site can be accessed by using a small snippet that looks more or less like this:&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;SPSite site = &lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; SPSite(http://localhost");&lt;/FONT&gt;&lt;BR&gt;&lt;FONT size=2&gt;SPWeb web = site.OpenWeb();&lt;/FONT&gt;&lt;BR&gt;&lt;FONT size=2&gt;SPList list = web.Lists[index];&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#000080&gt;&lt;FONT face=Verdana size=2&gt;Now lets say you want to add an item to an ordinary list. The snippet would go like:&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;web.Lists[index].Items.Add(&lt;FONT color=#008000&gt;..some parameters...&lt;/FONT&gt;);&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&lt;FONT size=2&gt;..add the values for the individual fields...&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;web.Lists[index].Update();&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;If, however the list in question turns out to be a document library then you will be pleasantly surprised to see that the file you just added is nowhere to be seen. The catch lies in that a document library also supports folders. So the modification becomes:&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;web.Lists[index].RootFolder.Files.Add(&lt;FONT color=#008000&gt;..some parameters..&lt;/FONT&gt;);&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#000080&gt;&lt;FONT face=Verdana size=2&gt;The parameters in this case are the byte array containing the content of the file and the destination URL in terms of the root folder of the document library.&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;Funny!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000080&gt;&lt;FONT face=Verdana size=2&gt;/Harsh&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=447802" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category></item><item><title>Trustworthy!!</title><link>http://blogs.msdn.com/harsh/archive/2005/08/03/446952.aspx</link><pubDate>Wed, 03 Aug 2005 01:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:446952</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/harsh/comments/446952.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=446952</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=446952</wfw:comment><description>&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;The other day I landed on a very interesting issue. Before I break in the solution, let me just try and explain the problem the way it came in.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;Well, there was this guy who had created a&amp;nbsp;custom web part to fetch a report from some database. He was supposed to be using a SQL database in production, but due to some reason, he had to make do with an Oracle database in test. The web part was using the ADO.NET ODBC and SQL data objects to establish connection and perform data retrieval. The problem as he accounted&amp;nbsp;to me seemed to occur only when he used the SQL objects. Whenever he used the SQL objects and deployed the web part, and then dropped it onto a page, the action took him to an error page which asked him to go to the Web Parts Maintenance page and remove the web part. But if he went back to the drawing board and replaced the SQL objects with the ODBC objects, the same behaviour did not reoccur. His question, do we know this as a bug.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;As a good support fellow, I asked him to share his web part. A reproduction was in order. And as I expected, there was nothing darn wrong with his poor little web part. But something was definitely going amiss. I recounted his demonstration of the problem. He was using a setup and deployment project and using the stsadm command line to deploy the web part. On the other hand, I as is widely done in PSS, used the Install Assemblies tool to deploy the web part. So faithfully, I sent the whole thing back, and asked him to use the Install Assemblies tool. A simple GAC deployment worked wonders. Not only did the error go away, but it also, succesfully fetched the results. I was elated. On closer investigation, the problem focus moved from ADO.NET data objects to the install location. As all of us know, there are two locations where one can deploy a web part assembly. One in the GAC the other in the assembly bin folder. These two locations behave quite differently from each other and result in a wide array of different outcomes.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;The GAC is considered as a fail-safe option, where anything and everything will run without any issues. The bin folder on the other hand requires a practiced hand and a keen eye to tweak the settings. So the preferred location for a web part always tends to be the GAC. This is because the GAC enjoys a fuller trust level than any other location. Now in this case, it was a requirement to deploy to the Application bin folder. So the workaround would be to tweak the web.config file at the portal root and change the security trust level to 'Full'. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=2&gt;But it couldnt be so simple. This guy&amp;nbsp;now wanted to not change the trust level for the entire portal but only&amp;nbsp;for the particular assembly. Possible?&amp;nbsp;Lets see. In the web.config you would notice that there is a path mentioned pointing to a different config file. Now, there are three config files for WSS_Minimal,WSS_Medium and Full. So the solution looks like adding the&amp;nbsp;safe entry for the assembly into the particular .config file. Needs to be checked, but lets see how it goes.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=1&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000080 size=1&gt;/Harsh&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=446952" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category></item><item><title>Area 51</title><link>http://blogs.msdn.com/harsh/archive/2005/07/26/443244.aspx</link><pubDate>Tue, 26 Jul 2005 04:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443244</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/harsh/comments/443244.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=443244</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=443244</wfw:comment><description>&lt;FONT face=Verdana color=#000000 size=2&gt;This started of as another one of those weird things. Well, so here goes. &lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Verdana size=2&gt;Problem: Accessing the news listing through the Object Model.&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Verdana size=1&gt;&lt;FONT size=2&gt;Solution&lt;/FONT&gt;:&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console"&gt;&lt;FONT size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/FONT&gt;&lt;FONT size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&lt;FONT color=green&gt;&lt;SPAN style="COLOR: green"&gt;// get the reference&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPSite site = &lt;FONT color=blue&gt;&lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;/FONT&gt; SPSite(“http://localhost”); &lt;FONT color=green&gt;&lt;SPAN style="COLOR: green"&gt;// this will point to the portal URL&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPWeb web = site.OpenWeb();&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=green&gt;&lt;SPAN style="COLOR: green"&gt;// get the context&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PortalContext context = PortalApplication.GetContext(site.ID);&amp;nbsp; &lt;FONT color=green&gt;&lt;SPAN style="COLOR: green"&gt;// context got using the site GUID&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Guid newsGuid = AreaManager.GetSystemAreaGuid(context, SystemArea.News); &lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=green&gt;&lt;SPAN style="COLOR: green"&gt;// SystemArea.News is a Sharepoint enumeration already available through the API&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Area newsarea = AreaManager.GetArea(context, newsGuid);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AreaListingCollection newscoll = newsarea.Listings;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=green&gt;&lt;SPAN style="COLOR: green"&gt;// fetches all listings that are part of the current area&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=blue&gt;&lt;SPAN style="COLOR: blue"&gt;for&lt;/SPAN&gt;&lt;/FONT&gt;(&lt;FONT color=blue&gt;&lt;SPAN style="COLOR: blue"&gt;uint&lt;/SPAN&gt;&lt;/FONT&gt; i=0; i&amp;lt;newscoll.Count; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WriteToFile(newscoll[i].Title + “&amp;nbsp; “ + newscoll[i].Description);&amp;nbsp;&amp;nbsp; &lt;FONT color=green&gt;&lt;SPAN style="COLOR: green"&gt;//WriteToFile is a custom function used for debug logging to a file&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;
&lt;P class=MsoNormal&gt;&lt;FONT face="Lucida Console" size=1&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;And voila!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'"&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;/Harsh&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=443244" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category></item><item><title>Digging the content index</title><link>http://blogs.msdn.com/harsh/archive/2005/06/30/434025.aspx</link><pubDate>Thu, 30 Jun 2005 01:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:434025</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/harsh/comments/434025.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=434025</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=434025</wfw:comment><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;The content index is one of the most sought after parts of Sharepoint. Search is one of the most popular and also one of the most mystical of Sharepoint features. So it goes without saying that accessing the content index is like chasing a dream. But before you start jumping with glee, there is absolutly no way of directly accessing the content index. Though the object model does expose a certain surface area of the content index. I can infact point out that the content index is actually on the filesystem on the Sharepoint server machine. But thats about it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Lets have a look a what the object model has in store for us. There are a couple of namespaces that spring&amp;nbsp;forth from the Microsoft.Sharepoint.Portal.Admin.Search.dll that can help us scratch the surface of the content index.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;The objects that are of interest are &lt;EM&gt;SearchSite&lt;/EM&gt;, &lt;EM&gt;SearchCatalog &lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;SearchContentSource&lt;/EM&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;FONT color=#0000ff&gt;using&lt;/FONT&gt; Microsoft.Sharepoint.Portal.Admin.Search; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;//the using directive to get the above objects&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPSite site = new SPSite("&lt;A href="http://localhost/"&gt;http://localhost&lt;/A&gt;");&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SPWeb web = site.OpenWeb();&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SearchCatalog catalog;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SearchCatalog anothercatalog;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SearchContentSource contentsource;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Collections.IEnumerator anEnumerator;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Collections.IEnumerator anotherEnumerator;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Collections.IEnumerator yetanotherEnumerator;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SearchSite&amp;nbsp;srchSite = &lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; SearchSite();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srchSite.Connect("blr2r02-12",site.ID.ToString()); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;// takes &amp;lt;server_name&amp;gt;,site GUID&lt;/FONT&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;// this is gonna give you all the catalog names - &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // btw you have to use the IEnumerator, no way out of it :-)&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anEnumerator = srchSite.Catalogs.GetEnumerator();&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT color=#0000ff&gt;while&lt;/FONT&gt;(anEnumerator!=&lt;FONT color=#0000ff&gt;null&lt;/FONT&gt;)&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anEnumerator.MoveNext();&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;catalog = (SearchCatalog)anEnumerator.Current;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;// here you can write out the catalog name using catalog.Name&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#000000&gt;WriteToFile(catalog.Name); &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;// WriteToFile is a custom function to output a string to a file&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;// lets try to write out all the content sources that are part of each catalog&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anothercatalog=srchSite.getCatalog(catalog.Name); &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;// get reference of a particular catalog&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#008000&gt;// this is gonna give you all the&amp;nbsp;content sources -&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// again no escape form the IEnumerator&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anotherEnumerator = anotherCatalog.ContentSources.GetEnumerator(); &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color=#0000ff&gt;while&lt;/FONT&gt;(anotherEnumerator != &lt;FONT color=#0000ff&gt;null&lt;/FONT&gt;)&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anotherEnumerator.MoveNext();&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contentsource = (SearchContentSource)anotherEnumerator.Current;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // here you can get various properties like &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // depth, display name, source group, URL, etc&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WriteToFile(contentsource.Depth.ToString());&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WriteToFile(contentsource.DisplayName.ToString());&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WriteToFile(contentsource.SourceGroup.ToString());&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WriteToFile(contentsource.Url);&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Now this is where we run into issues. BIG issues. &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// There is no object returned by any of the methods or&amp;nbsp; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // properties of the SearchContentSource class. &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // All the return types are base data types. What does this &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // translate to? This basically means that this is the end of the road. &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This is all the level of detail &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // that you can get from the object model. &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This thought not much is still quite substantial to increase &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // our&amp;nbsp;information of the content sources.&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;So now what are the resources that can be helpful here? Lets see, the standard Sharepoint Portal Server SDK is a big help. &lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;If you dont already have it, heres where you can get&amp;nbsp;a copy all for yourself. The &lt;STRONG&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=AA3E7FE5-DAEE-4D10-980F-789B827967B0&amp;amp;displaylang=en"&gt;&lt;FONT color=#0000ff&gt;Sharepoint Portal Server SDK&lt;/FONT&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;And heres where you can get the &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1c64af62-c2e9-4ca3-a2a0-7d4319980011&amp;amp;DisplayLang=en"&gt;&lt;STRONG&gt;&lt;FONT color=#0000ff&gt;Windows Sharepoint Services SDK&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/A&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;Now, what about the class tree? so here is the &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/nsPortalAdminSearch_SV01162264.asp"&gt;&lt;STRONG&gt;&lt;FONT color=#0000ff&gt;PortalAdminSearch namespace&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;Happy hunting&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;FONT face=Arial&gt;/H&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=434025" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category></item><item><title>Programmatically adding a List with custom fields</title><link>http://blogs.msdn.com/harsh/archive/2005/06/28/433131.aspx</link><pubDate>Tue, 28 Jun 2005 02:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:433131</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.msdn.com/harsh/comments/433131.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=433131</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=433131</wfw:comment><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;When a list is created programmatically using a custom template, the custom fields do not get displayed in the UI. These fields do not become a part of the displayed fields of the default view.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;STRONG&gt;&lt;U&gt;The Problem&lt;/U&gt;&lt;/STRONG&gt; - A&amp;nbsp;common task like uploading a file to a list that was created programmatically using a custom template. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;When&amp;nbsp;you try creating the list using the Object Model,&amp;nbsp;you would most likely get a “&lt;I style="mso-bidi-font-style: normal"&gt;Exception Occurred&lt;/I&gt;’ error. But still the list would get created but without the custom fields.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;On trouble shooting you would find that the while picking up the custom template the &lt;I style="mso-bidi-font-style: normal"&gt;schemaXML&lt;/I&gt; for the template was not being populated. Theoretically, the &lt;I style="mso-bidi-font-style: normal"&gt;schemaXML&lt;/I&gt; should have contained the definition for the custom fields. However the &lt;I style="mso-bidi-font-style: normal"&gt;schemaXML&lt;/I&gt; property&amp;nbsp;would throw a &lt;I style="mso-bidi-font-style: normal"&gt;SPException&lt;/I&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;This&amp;nbsp;is why the code was throwing the error “&lt;I style="mso-bidi-font-style: normal"&gt;Exception occurred&lt;/I&gt;”, and even though the list was being created the fields were not being created. The resolution in this case is to modify the &lt;I style="mso-bidi-font-style: normal"&gt;schemaXML&lt;/I&gt; property to ensure that the fields are created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The first line of attack is to modify the &lt;I style="mso-bidi-font-style: normal"&gt;schemaXML&lt;/I&gt; property through string manipulations to get the property set and the list getting rendered properly. This is possible for the &lt;I style="mso-bidi-font-style: normal"&gt;SPList&lt;/I&gt; object but not for the &lt;I style="mso-bidi-font-style: normal"&gt;SPView&lt;/I&gt; object (schemaXML is readonly for SPView). By doing this, I was able to get the fields added, but they were still not being displayed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Modifying the schemaXML to include “&lt;I style="mso-bidi-font-style: normal"&gt;Hidden=’false’” &lt;/I&gt;or for that matter “&lt;I style="mso-bidi-font-style: normal"&gt;Hidden=’FALSE’&lt;/I&gt;” did not help.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The solution that did work was as follows&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: Arial"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;create a new list using a blank template&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: Arial"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;programmatically add the custom fields to the new list&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: Arial"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Update the list to commit the addition of the new fields&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: Arial"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Create a new view based on the default “All Items” view&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: Arial"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Add the same custom fields to the new view&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: Arial"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Delete the original view&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: Arial"&gt;&lt;SPAN style="mso-list: Ignore"&gt;-&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Make the custom view as the new default view&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Code Snippet&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;SPSite site = new SPSite("http://localhost/sites/Sergey/default.aspx");&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SPWeb web = site.OpenWeb();&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SPListCollection coll = web.Lists;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SPListTemplateCollection tmplcoll = web.ListTemplates;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;SPFieldCollection fieldcoll;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;SPListTemplate temp = tmplcoll[0];&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Guid gd = coll.Add("NewList9","NewList9",temp);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;coll[gd].Fields.Add("Test1",SPFieldType.Text,false);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;coll[gd].Fields.Add("Test2",SPFieldType.Text,false);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;coll[gd].Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;string defaultquery = coll[gd].Views[0].Query;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;SPViewCollection viewcoll = coll[gd].Views;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Guid anothergd = coll[gd].Views[0].ID;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;viewcoll.Delete(anothergd);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;System.Collections.Specialized.StringCollection viewfields = new System.Collections.Specialized.StringCollection();&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;viewfields.Add("Title");&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;viewfields.Add("Test1");&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;viewfields.Add("Test2");&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;coll[gd].Views.Add("All Items",viewfields,defaultquery,100,true,true);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;coll[gd].Update();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'MS Sans Serif'"&gt;/Harsh&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=433131" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category></item><item><title>SPListItem.Update()</title><link>http://blogs.msdn.com/harsh/archive/2005/06/16/429976.aspx</link><pubDate>Thu, 16 Jun 2005 17:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:429976</guid><dc:creator>Harshawardhan Chiplonkar</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/harsh/comments/429976.aspx</comments><wfw:commentRss>http://blogs.msdn.com/harsh/commentrss.aspx?PostID=429976</wfw:commentRss><wfw:comment>http://blogs.msdn.com/harsh/rsscomments.aspx?PostID=429976</wfw:comment><description>&lt;P class=post-title&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: arial"&gt;Now thats a funny title. This is something I worked on quite recently. Consider a scenario where you are trying to access a number of lists programmatically. The issue I dealt with was concerned with lists in a recurring event of a metting workspace. But subsequent research revealed that this is a generic issue.&lt;BR&gt;So, you are accessing lists programmatically. Amongst say four lists (list1, list2, list3, list4, for example) you fetch the properties list ID, etc of list1. Now, you decide to change say the ist name and fire a SPList.Update() . After this is done, you decide to see the details for say List3. Oops, what happened to list3 details you are actually seeing details of all the lists! You recheck your code..no, you are not missing the identifier for list3 so what went wrong here?&lt;BR&gt;Here is what your code would look like&lt;BR&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPSite site = &lt;SPAN style="COLOR: #3333ff"&gt;new&lt;/SPAN&gt; SPSite(strUrl);&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPWeb web = site.OpenWeb&lt;/SPAN&gt;&lt;/FONT&gt;();&lt;/SPAN&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPList list = web.Lists[strListName];&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; COLOR: #009900; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// use SPQuery to query the list&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPListItem item;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SPListItemCollection items = list.Items;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&lt;SPAN style="COLOR: #3333ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&lt;/SPAN&gt;(items.Count &amp;gt; 0 )&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;item = items[0];&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&lt;SPAN style="COLOR: #009900"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// make some changes to this item&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR: #009900"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;item.Update();&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;&lt;SPAN style="COLOR: #009900"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// use SPQuery to query the list again&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: arial"&gt;Why the query does not return proper results has to do with the way the cache is refreshed. This being one of the mystical disciplines, not much is clear. But one thing we know, is after the first query (the one that returns incorrect results), all subsequent ones are going to return correct results.&lt;BR&gt;A possible explaination is that when the update executes, it executes on the database and makes the changes. However, owing to performance considerations, the list details are already in the cache. So now, we have two copies, the one in the cache which is dirty and the other in the database. At this point the cache still doesnt know that the database has been modified. So the query that executes is going to just run through the cache and pull up all the data. What is still mystical is that it pulls up everything and not just the concerned list.&lt;BR&gt;Another interesting bit here is it doesnt matter which list you update.&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: arial"&gt;So now you try to put in a wait before the next query executes...still no luck! this being as mystical as it is, there is no guideline on when the cache is going to get refreshed. Now, we need a workaround. Fetch the details yourselves and hence update the cache. Simple?..yup it &lt;STRONG&gt;is&lt;/STRONG&gt; simple. &lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: arial"&gt;Just add the following line after the update...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=post-title&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: courier new"&gt;items = list.Items;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=post-title&gt;&lt;FONT size=2&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: arial"&gt;What this is going to do is fire a query internally to update the cache. This in effect takes care of the update problem and you are raring to go. Case closed!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Arial"&gt;--/H&lt;/SPAN&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=429976" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/harsh/archive/tags/SharePoint+2003/default.aspx">SharePoint 2003</category><category domain="http://blogs.msdn.com/harsh/archive/tags/WSS/default.aspx">WSS</category></item></channel></rss>