<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Karthick's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/karthick/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/karthick/feed.xml</link>
    <description>That&amp;#039;s the secret to life...,replace one worry with another.
-This posting is provided &amp;quot;AS IS&amp;quot; with no warranties, and confers no rights-</description>
    <lastBuildDate>Wed, 17 Apr 2019 04:12:05 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>MOSS 2007 : WSS 3.0 : How do you add items into Choice Site Column type.</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/moss-2007-wss-3-0-how-do-you-add-items-into-choice-site-column-type</link>
      <pubDate>Wed, 10 Jan 2007 14:24:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2007/01/10/moss-2007-wss-3-0-how-do-you-add-items-into-choice-site-column-type/</guid>
      <description><![CDATA[Here is the sample...]]></description>
      <content:encoded><![CDATA[<P>Here is the sample code,</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPWeb web = new SPSite("<A href="https://karthick64:4040/%22).OpenWeb">https://karthick64:4040/").OpenWeb</A>();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPField spField = web.Fields["MyChoice"];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPFieldChoice choiceFields = (SPFieldChoice)spField;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string[] choices = new string[3] {"x", "y", "z"};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (string choice in choices)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; choiceFields.Choices.Add(choice);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; choiceFields.Update();<BR></P>
<P>Keep Exploring... :)</P>]]></content:encoded>
    </item>
    <item>
      <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>https://docs.microsoft.com/archive/blogs/karthick/moss-2007-wss-3-0-how-do-you-add-a-new-site-column-to-a-content-type-using-the-moss-object-model</link>
      <pubDate>Mon, 08 Jan 2007 09:08:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/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/</guid>
      <description><![CDATA[How do you add a new Site Column to a Content Type using the MOSS object model?&nbsp; 
Here is the...]]></description>
      <content:encoded><![CDATA[<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">How do you add a new Site Column to a Content Type using the MOSS object model?&nbsp; </SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Here is the sample code</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: teal">SPWeb</SPAN> web = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: teal">SPSite</SPAN>(<SPAN style="COLOR: maroon">"<A href="https://localhost:4040/"><FONT color=#800080>https://localhost:4040</FONT></A>"</SPAN>).OpenWeb();<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; <SPAN style="COLOR: teal">SPContentType</SPAN> myCT = web.ContentTypes[<SPAN style="COLOR: maroon">"myNewContentType"</SPAN>];<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; myCT.FieldLinks.Add(<SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: teal">SPFieldLink</SPAN>(web.Fields[<SPAN style="COLOR: maroon">"abc"</SPAN>]));<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp; myCT.Update();</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Note : </SPAN></P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d">The following MSDN article speaks about “Updating Child Content types”. </SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Tahoma','sans-serif'"><A href="https://msdn2.microsoft.com/en-us/library/ms442695.aspx" target=_blank>https://msdn2.microsoft.com/en-us/library/ms442695.aspx</A></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d">The example given in the article uses the SPFieldCollection object (SPContentType.Fields) to add columns to the content type. But when we use the sample given in the article we end up with the error message “</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: 'Tahoma','sans-serif'">SPException: This functionality is unavailable for field collections not associated with a list.</SPAN><SPAN style="COLOR: #1f497d">”. I found that the columns are not added into content type and that are referenced in content type from the following article.</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true">&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><A href="https://msdn2.microsoft.com/en-us/library/aa543526.aspx" target=_blank>https://msdn2.microsoft.com/en-us/library/aa543526.aspx</A></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true">&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d">Also the above article “How to: Reference a Column in a Content Type” says,</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true">&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman','serif'"><FONT color=#000000>The </FONT><A href="https://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spcontenttype.fields.aspx" target=_blank>Fields</A><FONT color=#000000> property returns an </FONT><A href="https://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spfieldcollection.aspx" target=_blank>SPFieldCollection</A><FONT color=#000000> object. Each </FONT><A href="https://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spfield.aspx" target=_blank>SPField</A><FONT color=#000000> in this collection represents a "merged view" of the base column definition and any overwritten properties specified in the column reference in the content type. Because of this, you cannot add columns directly to this collection. Attempting to do so results in an error.</FONT></SPAN></P></FONT></FONT></SPAN>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><o:p><FONT face=Calibri size=3></FONT></o:p></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><o:p><FONT face=Calibri size=3></FONT></o:p></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">Keep Coding...</SPAN></P></SPAN>]]></content:encoded>
    </item>
    <item>
      <title>MOSS 2007: WSS 3.0: How to add/delete/update site columns by using SharePoint WebService</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/moss-2007-wss-3-0-how-to-adddeleteupdate-site-columns-by-using-sharepoint-webservice</link>
      <pubDate>Tue, 02 Jan 2007 12:34:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2007/01/02/moss-2007-wss-3-0-how-to-adddeleteupdate-site-columns-by-using-sharepoint-webservice/</guid>
      <description><![CDATA[SharePoint's Webs webservice can be used to add/delete/update site columns. Unfortunatley MSDN/SDK...]]></description>
      <content:encoded><![CDATA[<P>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.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//webs webservice object<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost.<SPAN style="COLOR: teal">Webs</SPAN> websService = <SPAN style="COLOR: blue">new</SPAN> ContentTypeAndSiteColumn.localhost.<SPAN style="COLOR: teal">Webs</SPAN>();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//url for the webservice<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; websService.Url = <SPAN style="COLOR: maroon">"<A href="https://localhost:4040/_vti_bin/Webs.asmx"><FONT color=#800080>https://localhost:4040/_vti_bin/Webs.asmx</FONT></A>"</SPAN>;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//credential<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; websService.Credentials = System.Net.<SPAN style="COLOR: teal">CredentialCache</SPAN>.DefaultCredentials;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//xmldocument object<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: teal">XmlDocument</SPAN> xDoc = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: teal">XmlDocument</SPAN>();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//Fields to be added<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: teal">XmlElement</SPAN> newFields = xDoc.CreateElement(<SPAN style="COLOR: maroon">"Fields"</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//Fields to be edited<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: teal">XmlElement</SPAN> updateFields = xDoc.CreateElement(<SPAN style="COLOR: maroon">"Fields"</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//Fields to be deleted<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: teal">XmlElement</SPAN> deleteFields = xDoc.CreateElement(<SPAN style="COLOR: maroon">"Fields"</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newFields.InnerXml = <SPAN style="COLOR: maroon">"&lt;Method ID='1'&gt;&lt;Field Name='FieldName' DisplayName='FieldDisplayName' Group='Group Name' Type='Text'/&gt;&lt;/Method&gt;"</SPAN>;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newFields.InnerXml = <SPAN style="COLOR: maroon">"&lt;Method ID='2'&gt;&lt;Field Name='FieldName' DisplayName='FieldDisplayName' Group='Group Name' Type='Text'/&gt;&lt;/Method&gt;"</SPAN>;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deleteFields.InnerXml = <SPAN style="COLOR: maroon">"&lt;Method ID='3'&gt;&lt;Field Name='FieldName'/&gt;&lt;/Method&gt;"</SPAN>;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: teal">XmlNode</SPAN> returnValue = websService.UpdateColumns(newFields, updateFields, deleteFields);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: teal">MessageBox</SPAN>.Show(returnValue.OuterXml);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>Related Links<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>----------------<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><A href="https://msdn2.microsoft.com/en-us/library/webs.webs.updatecolumns.aspx"><FONT face=Calibri color=#800080 size=3>https://msdn2.microsoft.com/en-us/library/webs.webs.updatecolumns.aspx</FONT></A><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><A href="https://msdn2.microsoft.com/en-us/library/ms451470.aspx"><FONT face=Calibri color=#800080 size=3>https://msdn2.microsoft.com/en-us/library/ms451470.aspx</FONT></A><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><A href="https://msdn2.microsoft.com/en-us/library/ms437580.aspx"><FONT face=Calibri color=#800080 size=3>https://msdn2.microsoft.com/en-us/library/ms437580.aspx</FONT></A><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><A href="https://msdn2.microsoft.com/en-us/library/webs.webs.getcolumns.aspx"><FONT face=Calibri color=#800080 size=3>https://msdn2.microsoft.com/en-us/library/webs.webs.getcolumns.aspx</FONT></A><o:p></o:p></SPAN></P>
<P>Keep Coding.... :)</P>]]></content:encoded>
    </item>
    <item>
      <title>MOSS 2007 : CMS 2002 Migration Issue : How to rename a resource Gallery Item?</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item</link>
      <pubDate>Wed, 20 Dec 2006 16:35:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2006/12/20/moss-2007-cms-2002-migration-issue-how-to-rename-a-resource-gallery-item/</guid>
      <description><![CDATA[Unfortunately MCMS 2002 Site Manager doesnt allow you to rename the resource gallery item. In some...]]></description>
      <content:encoded><![CDATA[<P>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 "<SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Leaf names are not unique.</SPAN>" error message. And the suggestion is you have to rename the resource gallery item. Here is the sample code to rename the resource gallery item.</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">// Get the MCMS application context.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CmsApplicationContext cmsContext = new CmsApplicationContext();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Logon to MCMS:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Assumes that you have Windows Authentication turned on.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WindowsIdentity ident = WindowsIdentity.GetCurrent();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Make sure to set the context to Update mode (which means you can write <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // back to MCMS using PAPI).<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmsContext.AuthenticateUsingUserHandle((System.IntPtr) ident.Token.ToInt32(),PublishingMode.Update);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ResourceGallery rsg = cmsContext.Searches.GetByPath("/Resources ") as ResourceGallery;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Resource res = rsg.Resources[“Content Development”];<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res.Name = "EMP1.gif";<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res.DisplayName = "EMP1.gif";<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Commit changes back to MCMS.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmsContext.CommitAll();<o:p></o:p></SPAN></P>
<P>Keep coding :)</P>]]></content:encoded>
    </item>
    <item>
      <title>WSS 2.0 : How to upload images by using Imaging WebService</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/wss-2-0-how-to-upload-images-by-using-imaging-webservice</link>
      <pubDate>Wed, 13 Dec 2006 12:54:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2006/12/13/wss-2-0-how-to-upload-images-by-using-imaging-webservice/</guid>
      <description><![CDATA[Here you go for the sample...]]></description>
      <content:encoded><![CDATA[<P>Here you go for the sample code.</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //create imaging web service object<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost.Imaging img = new ImagingTest.localhost.Imaging();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //set url<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; img.Url = <A href="https://localhost:8081/sites/site1/_vti_bin/Imaging.asmx">https://localhost:8081/sites/site1/_vti_bin/Imaging.asmx</A>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Set credential<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; img.Credentials = System.Net.CredentialCache.DefaultCredentials;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //for results<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Xml.XmlDocument resdoc= new System.Xml.XmlDocument();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Xml.XmlNode resnode = resdoc.CreateNode(System.Xml.XmlNodeType.Element,"Result","");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.IO.FileStream fs = new System.IO.FileStream("c:\\n15.jpg",&nbsp;&nbsp;System.IO.FileMode.Open, System.IO.FileAccess.Read);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Get the content<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; byte[] content = new byte[fs.Length];<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //store the content<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fs.Read(content, 0, (int) fs.Length);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Upload the file - specify "" for root folder, for sub folders specify 1, 2, 3 relative to the folder number<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resnode = img.Upload("123", "", content, "n15.jpg", true);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(resnode.OuterXml);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch(Exception ex)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(ex.ToString());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR></P>]]></content:encoded>
    </item>
    <item>
      <title>WSS 2.0 : "Getting unauthorized access" error when ‘User must change password at next logon’ is enabled</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/wss-2-0-getting-unauthorized-access-error-when-user-must-change-password-at-next-logon-is-enabled</link>
      <pubDate>Wed, 13 Dec 2006 12:48:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2006/12/13/wss-2-0-getting-unauthorized-access-error-when-user-must-change-password-at-next-logon-is-enabled/</guid>
      <description><![CDATA[Problem Background : When you enable "user must change password at next logon", then the...]]></description>
      <content:encoded><![CDATA[<P>Problem Background : When you enable "user must change password at next logon", then the corresponding user will face the unauthentication issues. </P>
<P>To resolves this, you&nbsp;may&nbsp;enable IISADMPWD for WSS</P>
<P><STRONG>How to enable the IISADMPWD for WSS?<BR></STRONG></P>
<UL>
<LI>To register iispwchg.dll, follow these steps:</LI>
<UL>
<LI>Click START, and then click RUN</LI>
<LI>In the open box type the following and then press ENTER:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Regsvr32 “%systemroot%\system32\inetsrv\iisadmpwd\iispwchg.dll</LI></UL>
<LI>To create the IISADMPWD virtual directory, follow these steps: </LI>
<UL>
<LI>In the Internet Services Manager Microsoft management Console (MMC), expand Web Sites, right-click the &lt;SharePoint Site&gt;, select New, and then select Virtual Directory. </LI>
<LI>When the Virtual Directory Creation Wizard starts, follow the instructions to create the virtual directory with the alias IISADMPWD. Point the path to the local %systemroot%\System32\Inetsrv\Iisadmpwd directory. For the Access Permissions allow both Read and Run Script privilages.</LI></UL>
<LI>To execlude IISADMPWD from WSS Managed path, follow these steps:</LI>
<UL>
<LI>Click start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration</LI>
<LI>On the Central Adminitstration Page, under Virtual Server Configuration, click Configure virtual server settings</LI>
<LI>On the virtual server List Page, select the virtual server you want to configure</LI>
<LI>On the virtual server settings page, under Virtual server Management, click Define Managed paths.</LI>
<LI>Under Add a New Path, type iisadmpwd, and in Type select “Excluded Path” and then click OK</LI></UL>
<LI>To set the PasswordChangeFlags value in the IIS metabase, do the following: </LI>
<UL>
<LI>From a command prompt browse to the C:\Inetpub\Adminscripts directory.</LI>
<LI>Type adsutil.vbs, and then press the ENTER key. If this is the first time that Adsutil.vbs has been run, you may get error messages stating that Cscript is not registered. Follow the prompts and choose Yes to register Cscript. </LI>
<LI>Type adsutil.vbs set w3svc/&lt;THE ID FOR SHAREPOINT SITE&gt;/PasswordChangeFlags 1<BR>Note : The id for the SharePoint site can be identified from the IIS manager. In IIS manager select websites and you can identify the identifier for individual site from the right pane.<BR></LI></UL></UL>
<P>Now you will be able to get the IIS password management page when the “User must change password at next logon” selected.</P>
<P>[Keep Using SharePoint]</P>]]></content:encoded>
    </item>
    <item>
      <title>WSS 2.0 : How to enable document library eventhandlers by default</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/wss-2-0-how-to-enable-document-library-eventhandlers-by-default</link>
      <pubDate>Wed, 13 Dec 2006 11:33:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2006/12/13/wss-2-0-how-to-enable-document-library-eventhandlers-by-default/</guid>
      <description><![CDATA[Open the Site definition folder. If you use default Site definition, STS, then open the folder...]]></description>
      <content:encoded><![CDATA[<UL>
<LI>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</LI></UL>
<BLOCKQUOTE>
<P>Note: Modifying the default files is not supported by Microsoft. Microsoft recommends using custom Site Definition.</P></BLOCKQUOTE>
<UL>
<LI>Open the List Definition folder. If you use default list definition for document library, then open the “DOCLIB” folder in the LISTS folder<BR>Open the “SCHEMA.XML” file in notepad or visual studio· Modify the LIST node by adding the EventSingAssembly, EventSinkClass, and <BR>EventSinkData</LI></UL>
<BLOCKQUOTE>
<P>&lt;List xmlns:ows="Microsoft SharePoint" Name="CustomDocuments" Title="Custom Shared Documents" Direction="0" Url="Custom Shared Documents" BaseType="1" EventSinkAssembly="TestEventHandler, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=614ce6399d917f80"&nbsp;EventSinkClass="TestEventHandler.MyEventHandler" EventSinkData = ""&gt;<BR><BR>Note:Here I hardcoded the EventSinkAssembly for sample. Could you please change it according to your component.</P></BLOCKQUOTE>
<UL>
<LI>Restart IIS.</LI></UL>
<P>After configuring the details, if you create new document library based on the list definition, then the document library event handler will be automatically <BR>configured.<BR></P>]]></content:encoded>
    </item>
    <item>
      <title>WSS 2.0 : stsadm - can't delete wppack with slash in its name</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/wss-2-0-stsadm-cant-delete-wppack-with-slash-in-its-name</link>
      <pubDate>Wed, 13 Dec 2006 11:01:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2006/12/13/wss-2-0-stsadm-cant-delete-wppack-with-slash-in-its-name/</guid>
      <description><![CDATA[If you install a wppack by using stsadm with&nbsp;slash "/", then you will not be able to uninstall...]]></description>
      <content:encoded><![CDATA[<P>If you install a wppack by using stsadm with&nbsp;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.</P>
<P>Example, running the following command will endup with the above problem.</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stsadm -o addwppack -filename "Helloworld/TestDeploy.CAB"</P>
<P><EM>SPGlobalAdmin oGA = new SPGlobalAdmin();<BR>oGA.RemoveWPPack("helloworld/testdeploy.cab",0,null,null);<BR></EM></P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>WSS 2.0 : How to programmatically enable/disable the rights at Virtual server level?</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/wss-2-0-how-to-programmatically-enabledisable-the-rights-at-virtual-server-level</link>
      <pubDate>Wed, 13 Dec 2006 10:59:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2006/12/13/wss-2-0-how-to-programmatically-enabledisable-the-rights-at-virtual-server-level/</guid>
      <description><![CDATA[To enable all rights at the virtual server...]]></description>
      <content:encoded><![CDATA[<P>To enable all rights at the virtual server level<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>vServer.Config.Properties["virtualserverpermsmask"] = "-1";</STRONG></P>
<P><STRONG><BR></STRONG>To disable the “Manage Site Groups” permission at the virtual server level<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>vServer.Config.Properties["virtualserverpermsmask"] = "2113867535";<BR></STRONG></P>
<P><STRONG>Keep Coding ;)</P></STRONG>]]></content:encoded>
    </item>
    <item>
      <title>WSS 2.0 : How to save properties of webpart from webpart code</title>
      <link>https://docs.microsoft.com/archive/blogs/karthick/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code</link>
      <pubDate>Wed, 13 Dec 2006 10:37:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/karthick/2006/12/13/wss-2-0-how-to-save-properties-of-webpart-from-webpart-code/</guid>
      <description><![CDATA[There are two methods, SaveChanges and SaveProperties&nbsp;provided by WSS which sometimes...]]></description>
      <content:encoded><![CDATA[<P>There are two methods, SaveChanges and SaveProperties&nbsp;provided by WSS which sometimes misleading users. Here I provide details&nbsp;for&nbsp;which method to use and when to use.</P>
<P>SPWebPartCollection.SaveChanges()&nbsp;&nbsp;- 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..,</P>
<P>SPWebPartCollection.SaveProperties - This method is used to save the properties within the web part code. <BR></P>]]></content:encoded>
    </item>
  </channel>
</rss>