<?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>Karthick's Blog : SharePoint</title><link>http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx</link><description>Tags: SharePoint</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MOSS 2007 : WSS 3.0 : How do you add items into Choice Site Column type.</title><link>http://blogs.msdn.com/karthick/archive/2007/01/10/moss-2007-wss-3-0-how-do-you-add-items-into-choice-site-column-type.aspx</link><pubDate>Wed, 10 Jan 2007 22:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1445535</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1445535.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1445535</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1445535</wfw:comment><description>Here is the sample code, SPWeb web = new SPSite(" http://karthick64:4040/").OpenWeb (); SPField spField = web.Fields["MyChoice"]; SPFieldChoice choiceFields = (SPFieldChoice)spField; string[] choices = new string[3] {"x", "y", "z"}; foreach (string choice...(&lt;a href="http://blogs.msdn.com/karthick/archive/2007/01/10/moss-2007-wss-3-0-how-do-you-add-items-into-choice-site-column-type.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1445535" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>MOSS 2007: WSS 3.0: How to add/delete/update site columns by using SharePoint WebService</title><link>http://blogs.msdn.com/karthick/archive/2007/01/02/moss-2007-wss-3-0-how-to-add-delete-update-site-columns-by-using-sharepoint-webservice.aspx</link><pubDate>Tue, 02 Jan 2007 20:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1399828</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1399828.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1399828</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1399828</wfw:comment><description>SharePoint's Webs webservice can be used to add/delete/update site columns. Unfortunatley MSDN/SDK doesnot has the sample yet. Here I provide the sample code. //webs webservice object localhost. Webs websService = new ContentTypeAndSiteColumn.localhost....(&lt;a href="http://blogs.msdn.com/karthick/archive/2007/01/02/moss-2007-wss-3-0-how-to-add-delete-update-site-columns-by-using-sharepoint-webservice.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1399828" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : How to upload images by using Imaging WebService</title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice.aspx</link><pubDate>Wed, 13 Dec 2006 20:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1276645</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1276645.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1276645</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1276645</wfw:comment><description>Here you go for the sample code. try { //create imaging web service object localhost.Imaging img = new ImagingTest.localhost.Imaging(); //set url img.Url = http://localhost:8081/sites/site1/_vti_bin/Imaging.asmx ; //Set credential img.Credentials = System.Net.CredentialCache.DefaultCredentials;...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276645" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : "Getting unauthorized access" error when ‘User must change password at next logon’ is enabled</title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-getting-unauthorized-access-error-when-user-must-change-password-at-next-logon-is-enabled.aspx</link><pubDate>Wed, 13 Dec 2006 20:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1276597</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1276597.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1276597</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1276597</wfw:comment><description>Problem Background : When you enable "user must change password at next logon", then the corresponding user will face the unauthentication issues. To resolves this, you may enable IISADMPWD for WSS How to enable the IISADMPWD for WSS? To register iispwchg.dll,...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-getting-unauthorized-access-error-when-user-must-change-password-at-next-logon-is-enabled.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276597" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : How to enable document library eventhandlers by default</title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default.aspx</link><pubDate>Wed, 13 Dec 2006 19:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1276525</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1276525.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1276525</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1276525</wfw:comment><description>Open the Site definition folder. If you use default Site definition, STS, then open the folder from the following location. “C:\program files\common files\Microsoft Shared\web server extensions\60\template\1033\STS Note: Modifying the default files is...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276525" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : stsadm - can't delete wppack with slash in its name </title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-stsadm-can-t-delete-wppack-with-slash-in-its-name.aspx</link><pubDate>Wed, 13 Dec 2006 19:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1276309</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1276309.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1276309</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1276309</wfw:comment><description>If you install a wppack by using stsadm with slash "/", then you will not be able to uninstall it by using the stsadm tool :( . The story not endup here, you will not be able to install the latest version of your webpart :(. However SharePoint object...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-stsadm-can-t-delete-wppack-with-slash-in-its-name.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276309" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : How to save properties of webpart from webpart code</title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code.aspx</link><pubDate>Wed, 13 Dec 2006 18:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1276117</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1276117.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1276117</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1276117</wfw:comment><description>There are two methods, SaveChanges and SaveProperties provided by WSS which sometimes misleading users. Here I provide details for which method to use and when to use. SPWebPartCollection.SaveChanges() - This method is used to save the changes made in...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276117" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : Technical details about localizing webpart and .dwp file</title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-technical-details-about-localizing-webpart-and-dwp-file.aspx</link><pubDate>Wed, 13 Dec 2006 18:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1276093</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1276093.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1276093</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1276093</wfw:comment><description>Problem : You are localizing the SharePoint web parts. You localiz display text and custom property names/descriptions using the ResourceManager and satellite assemblies. However, the web part “dwp” files in the cab file contain a title and description...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-technical-details-about-localizing-webpart-and-dwp-file.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276093" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : How to reset Password in WSS - Account Creation Mode</title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-reset-password-in-wss-account-creation-mode.aspx</link><pubDate>Wed, 13 Dec 2006 17:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1276062</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1276062.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1276062</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1276062</wfw:comment><description>Consider the following scenario. You installed WSS in Account Creation Mode. If a user forgets their password, they currently have to contact the admin and they in turn need to go into the site administration and manually reset the password. This issue...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-reset-password-in-wss-account-creation-mode.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276062" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>SPS 2003 : How to enable your custom fields (columns) for search</title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/sps-2003-how-to-enable-your-custom-fields-columns-for-search.aspx</link><pubDate>Wed, 13 Dec 2006 17:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1275906</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1275906.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1275906</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1275906</wfw:comment><description>Here you go for the steps to enalbe your custom fields to search. Step 1: Add the custom column (EmpName) in the Shared Documents document library Step 2: Add a document into the shared documents with custom column values Step 3: Crawl the content database...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/sps-2003-how-to-enable-your-custom-fields-columns-for-search.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1275906" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>WSS 2.0 : How to differentiate workspace site and team site. </title><link>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-differentiate-workspace-site-and-team-site.aspx</link><pubDate>Wed, 13 Dec 2006 17:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1275884</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/karthick/comments/1275884.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=1275884</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=1275884</wfw:comment><description>The following is the sample code snippet for how to differentiate workspace site and team site. Also this code list out all the workspace site in the server. SPGlobalAdmin globalAdmin = new SPGlobalAdmin(); //Get all the virtual servers. foreach(SPVirtualServer...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-differentiate-workspace-site-and-team-site.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1275884" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>Sharepoint 2003 : How to add links to the "Sites I have added" listing at the portal</title><link>http://blogs.msdn.com/karthick/archive/2006/05/31/612216.aspx</link><pubDate>Wed, 31 May 2006 23:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:612216</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>11</slash:comments><comments>http://blogs.msdn.com/karthick/comments/612216.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=612216</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=612216</wfw:comment><description>The following is the sample code snippet to add links to the Sites listing. Unfortunatly this is not documented in the Sharepoint SDK. //Get the Site SPSite site = new SPSite(&amp;lt;URL&amp;gt;); //Get the portal context PortalContext context = PortalApplication.GetContext(site.ID);...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/05/31/612216.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=612216" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>SPWeb.File.Add() it throws "The server instance not found" error message</title><link>http://blogs.msdn.com/karthick/archive/2006/04/22/581446.aspx</link><pubDate>Sun, 23 Apr 2006 01:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:581446</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/karthick/comments/581446.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=581446</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=581446</wfw:comment><description>&lt;P&gt;&lt;STRONG&gt;PROBLEM&lt;/STRONG&gt;&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;&lt;FONT size=3&gt;When we use the FQDN name in the SPWeb object, and calls the Add() method, we will get the following error message.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;The server instance not found&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;Root Cause:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;In stsadm.exe or any executable, STS only uses the IIS metabase to figure out the IIS instance for a given URL. For SSL, the IIS metabase only contains IP and port information and there is no host-header or fully qualified domain name information. If we try to use new SPSite(https://xxxxx.xxxxx.xxxxxx.microsoft.com) we cannot find the IIS instance because karthickmain.fareast.corp.microsoft.com is not in the SSL entry in the IIS metabase.&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;Resolution:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;The issue was caused by the use of a service user identity in the format of user@domain.com rather than domain\user. This service user identity syntax works as long as the code uses the FQDN but not if the code is using the machine name. In stsadm.exe or any executable, STS only uses the IIS metabase to figure out the IIS instance for a given URL. For SSL, the IIS metabase only contains IP and port information and there is no host-header or fully qualified domain name information. If we try to use new SPSite(https://xxxxxxxx.xxxxxx.microsoft.com) we cannot find the IIS instance because karthickmain.fareast.corp.microsoft.com is not in the SSL entry in the IIS metabase. WORK AROUND: Use IP address (or) machine name instead of the fully qualified domain name (FQDN), for example, SPSite site = new SPSite("https://172.26.232.190");&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=581446" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>SPS 2003 : "Cannot complete this action" Error message in custom list definition</title><link>http://blogs.msdn.com/karthick/archive/2006/04/22/581445.aspx</link><pubDate>Sun, 23 Apr 2006 01:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:581445</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/karthick/comments/581445.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=581445</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=581445</wfw:comment><description>&lt;FONT size=3&gt;
&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;While you create custom list instances on ONET.XML by adding to the configuration section, getting an error "Cannot complete this action" in the template selection screen&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;&lt;FONT size=3&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;For the Custom List Definition, the DefaultDescription property is mandatory, so we should specify the DefaultDescription. But this property is not mandatory field for the DocumentLibrary, Announcements and other lists.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;Example:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;&amp;lt;List Title="CCH Employee" Url="Lists/EMPLOYEE" Type="222" DefaultDescription="Employee"/&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=581445" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>SPS 2003 : How to persist an object state in to a session variable from custom web part? </title><link>http://blogs.msdn.com/karthick/archive/2006/04/22/581440.aspx</link><pubDate>Sun, 23 Apr 2006 01:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:581440</guid><dc:creator>Karthikeyan</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/karthick/comments/581440.aspx</comments><wfw:commentRss>http://blogs.msdn.com/karthick/commentrss.aspx?PostID=581440</wfw:commentRss><wfw:comment>http://blogs.msdn.com/karthick/rsscomments.aspx?PostID=581440</wfw:comment><description>&lt;FONT size=1&gt;
&lt;P&gt;&lt;FONT size=3&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;How to persist an object state in to a session variable from custom web part? &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;When you&amp;nbsp;use the System.Web.HttpContext.Current.Session property you&amp;nbsp;will get the error message "object reference not to set an instance of the object".&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=3&gt;&lt;STRONG&gt;Work Around:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=3&gt;&lt;FONT size=3&gt;
&lt;P&gt;Use the Page.Session property to store the object in session&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=581440" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx">SharePoint</category></item></channel></rss>