<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Karthick's Blog</title><subtitle type="html">&lt;table width=100%&gt;&lt;tr&gt;&lt;td align=right&gt;&lt;B&gt;&lt;font color=black&gt;That's the secret to life...,replace one worry with another.&lt;/font&gt;&lt;/B&gt;
&lt;br&gt;-This posting is provided "AS IS" with no warranties, and confers no rights- &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</subtitle><id>http://blogs.msdn.com/karthick/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/karthick/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2006-12-13T14:22:00Z</updated><entry><title>MOSS 2007 : WSS 3.0 : How do you add items into Choice Site Column type.</title><link rel="alternate" type="text/html" 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" /><id>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</id><published>2007-01-10T22:24:00Z</published><updated>2007-01-10T22:24:00Z</updated><content type="html">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 in choices) { choiceFields.Choices.Add(choice); } choiceFields.Update(); Keep Exploring... :)...(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>MOSS 2007 : WSS 3.0 : How do you add a new Site Column to a Content Type using the MOSS object model?  </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2007/01/08/moss-2007-wss-3-0-how-do-you-add-a-new-site-column-to-a-content-type-using-the-moss-object-model.aspx" /><id>http://blogs.msdn.com/karthick/archive/2007/01/08/moss-2007-wss-3-0-how-do-you-add-a-new-site-column-to-a-content-type-using-the-moss-object-model.aspx</id><published>2007-01-08T17:08:00Z</published><updated>2007-01-08T17:08:00Z</updated><content type="html">How do you add a new Site Column to a Content Type using the MOSS object model? Here is the sample code SPWeb web = new SPSite ( " http://localhost:4040 " ).OpenWeb(); SPContentType myCT = web.ContentTypes[ "myNewContentType" ]; myCT.FieldLinks.Add( new SPFieldLink (web.Fields[ "abc" ])); myCT.Update(); Note : The following MSDN article speaks about “Updating Child Content types”. http://msdn2.microsoft.com/en-us/library/ms442695.aspx The example given in the article uses the SPFieldCollection object...(&lt;a href="http://blogs.msdn.com/karthick/archive/2007/01/08/moss-2007-wss-3-0-how-do-you-add-a-new-site-column-to-a-content-type-using-the-moss-object-model.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1434397" width="1" height="1"&gt;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author></entry><entry><title>MOSS 2007: WSS 3.0: How to add/delete/update site columns by using SharePoint WebService</title><link rel="alternate" type="text/html" 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" /><id>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</id><published>2007-01-02T20:34:00Z</published><updated>2007-01-02T20:34:00Z</updated><content type="html">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. Webs (); //url for the webservice websService.Url = " http://localhost:4040/_vti_bin/Webs.asmx " ; //credential websService.Credentials = System.Net. CredentialCache .DefaultCredentials; //xmldocument object XmlDocument xDoc = new XmlDocument ();...(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>MOSS 2007 : CMS 2002 Migration Issue : How to rename a resource Gallery Item?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/20/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/20/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item.aspx</id><published>2006-12-21T00:35:00Z</published><updated>2006-12-21T00:35:00Z</updated><content type="html">Unfortunately MCMS 2002 Site Manager doesnt allow you to rename the resource gallery item. In some situation you may end up duplicate entries in the resource gallery item names. MCMS 2002 allows you to have multiple resource items with same name. The items will be differentiated by using their guids. But this will endup a problem when you are migrating to MOSS 2007, and you will get " Leaf names are not unique. " error message. And the suggestion is you have to rename the resource gallery item. Here...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/20/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1333613" width="1" height="1"&gt;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author></entry><entry><title>WSS 2.0 : How to upload images by using Imaging WebService</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice.aspx</id><published>2006-12-13T20:54:00Z</published><updated>2006-12-13T20:54:00Z</updated><content type="html">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; //for results System.Xml.XmlDocument resdoc= new System.Xml.XmlDocument(); System.Xml.XmlNode resnode = resdoc.CreateNode(System.Xml.XmlNodeType.Element,"Result",""); System.IO.FileStream fs = new System.IO.FileStream("c:\\n15.jpg",...(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>WSS 2.0 : "Getting unauthorized access" error when ‘User must change password at next logon’ is enabled</title><link rel="alternate" type="text/html" 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" /><id>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</id><published>2006-12-13T20:48:00Z</published><updated>2006-12-13T20:48:00Z</updated><content type="html">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, follow these steps: Click START, and then click RUN In the open box type the following and then press ENTER: Regsvr32 “%systemroot%\system32\inetsrv\iisadmpwd\iispwchg.dll To create the IISADMPWD virtual directory, follow these steps: In the...(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>WSS 2.0 : How to enable document library eventhandlers by default</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default.aspx</id><published>2006-12-13T19:33:00Z</published><updated>2006-12-13T19:33:00Z</updated><content type="html">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 not supported by Microsoft. Microsoft recommends using custom Site Definition. Open the List Definition folder. If you use default list definition for document library, then open the “DOCLIB” folder in the LISTS folder Open the “SCHEMA.XML” file in...(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>WSS 2.0 : stsadm - can't delete wppack with slash in its name </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-stsadm-can-t-delete-wppack-with-slash-in-its-name.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-stsadm-can-t-delete-wppack-with-slash-in-its-name.aspx</id><published>2006-12-13T19:01:00Z</published><updated>2006-12-13T19:01:00Z</updated><content type="html">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 model helps us to resolve the problem. Run the following code to remove the wppack that has "/" in the path. Then install your webpart by using stsadm by using the "\" in the path. Example, running the following command will endup with the above problem....(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>WSS 2.0 : How to programmatically enable/disable the rights at Virtual server level?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-programmatically-enable-disable-the-rights-at-virtual-server-level.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-programmatically-enable-disable-the-rights-at-virtual-server-level.aspx</id><published>2006-12-13T18:59:00Z</published><updated>2006-12-13T18:59:00Z</updated><content type="html">To enable all rights at the virtual server level vServer.Config.Properties["virtualserverpermsmask"] = "-1"; To disable the “Manage Site Groups” permission at the virtual server level vServer.Config.Properties["virtualserverpermsmask"] = "2113867535"; Keep Coding ;)...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-programmatically-enable-disable-the-rights-at-virtual-server-level.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1276180" width="1" height="1"&gt;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author></entry><entry><title>WSS 2.0 : How to save properties of webpart from webpart code</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code.aspx</id><published>2006-12-13T18:37:00Z</published><updated>2006-12-13T18:37:00Z</updated><content type="html">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 the web part from out side the web part code. For e.g., the console application, windows application etc.., SPWebPartCollection.SaveProperties - This method is used to save the properties within the web part code....(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>WSS 2.0 : Technical details about localizing webpart and .dwp file</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-technical-details-about-localizing-webpart-and-dwp-file.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-technical-details-about-localizing-webpart-and-dwp-file.aspx</id><published>2006-12-13T18:30:00Z</published><updated>2006-12-13T18:30:00Z</updated><content type="html">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 for each web part. You want to localize these values as per the msdn article. “Packaging and Deploying Web Part for Microsoft Windows SharePoint Services” http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_sp2003_ta/html/sharepoint_deployingwebparts.asp...(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>WSS 2.0 : How to reset Password in WSS - Account Creation Mode</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-reset-password-in-wss-account-creation-mode.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-how-to-reset-password-in-wss-account-creation-mode.aspx</id><published>2006-12-13T17:50:00Z</published><updated>2006-12-13T17:50:00Z</updated><content type="html">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 has become more prevalent and will detract the Admin from normal duties. So I would like to have a way to automate password rests for the users. Users will be provided a webpart of other link that will reset the password and send out an email with...(&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;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="SharePoint" scheme="http://blogs.msdn.com/karthick/archive/tags/SharePoint/default.aspx" /></entry><entry><title>WSS 2.0 : Explicit Impersonation cannot work with SPRoleCollection</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-explicit-impersonation-cannot-work-with-sprolecollection.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-explicit-impersonation-cannot-work-with-sprolecollection.aspx</id><published>2006-12-13T17:47:00Z</published><updated>2006-12-13T17:47:00Z</updated><content type="html">The following code will fail if the user doesnot have Admin previlage SPRoleCollection RC = CurrentWeb.CurrentUser.Roles; The CurrentWeb.CurrentUser.Roles method requires Manage Site Groups permission and the impersonation does not work with SPRoleCollection RESOLUTION: -Write a custom sharepoint webservice and pass the administrator (networkcredentials) credentials to the webservice to retrieve the roles....(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/wss-2-0-explicit-impersonation-cannot-work-with-sprolecollection.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1275974" width="1" height="1"&gt;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author></entry><entry><title>MCMS 2002 : You cannot add NT Authority domain and Authenticated users in CMS</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/mcms-2002-you-cannot-add-nt-authority-domain-and-authenticated-users-in-cms.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/mcms-2002-you-cannot-add-nt-authority-domain-and-authenticated-users-in-cms.aspx</id><published>2006-12-13T17:23:00Z</published><updated>2006-12-13T17:23:00Z</updated><content type="html">PROBLEM: You cannot add NT Authority domain and Authenticated users in MCMS 2002 Site Manager RESOLUTION: 1. Create a local user group 2. Add the Authenticated users to the newly created local user group 3. Add the local user group in CMS...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/mcms-2002-you-cannot-add-nt-authority-domain-and-authenticated-users-in-cms.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1275950" width="1" height="1"&gt;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author></entry><entry><title>MCMS 2002 : Getting “Unable to cast object of type system.net.filewebresponse</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/karthick/archive/2006/12/13/mcms-2002-getting-unable-to-cast-object-of-type-system-net-filewebresponse.aspx" /><id>http://blogs.msdn.com/karthick/archive/2006/12/13/mcms-2002-getting-unable-to-cast-object-of-type-system-net-filewebresponse.aspx</id><published>2006-12-13T17:22:00Z</published><updated>2006-12-13T17:22:00Z</updated><content type="html">PROBLEM ======== Getting “Unable to cast object of type system.net.filewebresponse to type system.net.httpwebresponse” error message in client side import scirpt RESOLUTION ============ The sdo package path has been specified as standard windows physical file format as “E:\folder\sdofilename.sdo” ROOTCAUSE ========== The SDAPI import method reads the sdo file path and it process afterward. It’s expecting a path format that compatible with HttpWebResponse. When we use x:// notation, .net might interpret...(&lt;a href="http://blogs.msdn.com/karthick/archive/2006/12/13/mcms-2002-getting-unable-to-cast-object-of-type-system-net-filewebresponse.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1275913" width="1" height="1"&gt;</content><author><name>Karthick</name><uri>http://blogs.msdn.com/members/Karthick.aspx</uri></author><category term="Content Management Server (MCMS)" scheme="http://blogs.msdn.com/karthick/archive/tags/Content+Management+Server+_2800_MCMS_2900_/default.aspx" /></entry></feed>