<?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>Sharepoint Special</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/selvagan/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/selvagan/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:25:20 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>MOSS list library lookup column drop down - performance issue with IE7</title>
      <link>https://docs.microsoft.com/archive/blogs/selvagan/moss-list-library-lookup-column-drop-down-performance-issue-with-ie7</link>
      <pubDate>Thu, 31 Dec 2009 02:49:00 GMT</pubDate>
      <dc:creator><![CDATA[Selvagan]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/selvagan/2009/12/31/moss-list-library-lookup-column-drop-down-performance-issue-with-ie7/</guid>
      <description><![CDATA[You may experience performance issue on a SharePoint 2007 site page where it has&nbsp;sharepoint...]]></description>
      <content:encoded><![CDATA[<P>You may experience performance issue on a SharePoint 2007 site page where it has&nbsp;sharepoint list library lookup column, for example there is a custom list named 'List1' with custom column 'Column1', there are around 10000 items added to this list.&nbsp; Create another list named 'List2' and create a&nbsp;lookup column named 'Column2' pointing to List1 -&gt; Column1.</P>
<P>From your client where you have Internet Explorer 6 or 7,&nbsp;browse to the sharepoint List2 and create new item, in new item creation page go to Column2 and click on the drop down button, it will take very long time display the items pulled from List1.&nbsp; We will not experience this issue in SharePoint 2003, we have identified this issue after migrating&nbsp;SharePoint 2003 site&nbsp;to a MOSS 2007 environment&nbsp;and there is no change in client side (IE version).</P>
<P>The reason behind this performance issue is because in MOSS the way we render the data and process is changed compared to earlier version&nbsp;SharePoint 2003.</P>
<P>In SPS 2003 the dropdown items are rendered as HTML SELECT element with each option in the dropdown specified as a separate OPTION elements, it will be easier and quicker in IE 7 to process and display the data.&nbsp; But there will be delay in network traffic as http payload is high.</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="FONT-FAMILY: 'calibri','sans-serif'; FONT-SIZE: 11pt">&lt;SELECT TABINDEX=1 NAME="urn:schemas-microsoft-com:office:office#GetData"&gt;&lt;OPTION Value=""&gt;(None)&lt;/OPTION&gt;&lt;OPTION&nbsp; VALUE="13360"&gt;America&lt;/OPTION&gt;&lt;OPTION&nbsp; VALUE="13107"&gt;b&lt;/OPTION&gt;&lt;OPTION&nbsp; VALUE="13040"&gt;bhm&lt;/OPTION&gt;&lt;OPTION&nbsp; VALUE="12754"&gt;bnm&lt;/OPTION&gt;&lt;OPTION&nbsp; VALUE="12749"&gt;bnmvb&lt;/OPTION&gt;&lt;OPTION&nbsp; VALUE="13358"&gt;bus&lt;/OPTION&gt;&nbsp;</SPAN></P>
<P><BR>In MOSS the dropdown items are rendered as a SPAN element (with its opt attribute set to _Select) and then all the dropdown items are specified as a long string with items separated by ‘|’ (pipe) symbol.&nbsp; So that the data packet size is reduced, it will improve the nework performance at the same time it has issues with old IE versions like IE6 and IE7.</P>
<P>&lt;span style="vertical-align:middle"&gt;&lt;input name="ctl00$m$g_b4b96149_5df0_41fd_8890_f4dac0ac0b09$ctl00$ctl04$ctl01$ctl00$ctl00$ctl04$ctl00$ctl01" type="text" id="ctl00_m_g_b4b96149_5df0_41fd_8890_f4dac0ac0b09_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01" class="ms-lookuptypeintextbox" onfocusout="HandleLoseFocus()" opt="_Select" title="LookRom" optHid="SPLookRom_Hidden" onkeypress="HandleChar()" onkeydown="HandleKey()" match="" choices="(None)|0|America|13357|b|13359|bhm|13358|d|25|d|31|d|34|d|37|d|40|d|207|d|213|d|216|d|219|d|222|d|389|d|395|<BR>d|398|d|401|d|404|d|571|d|577|d|580|d|583|d|586|d|753|d|759|d|762|d|765|d|768|d|935|d|941|d|944|d|</P>
<P><STRONG>Solution:</STRONG></P>
<P>To overcome this performance issue we need to upgrade the Internet Explorer version to IE8.</P><FONT color=#1f497d face=Calibri>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">In MOSS the data packet size transferred between server and client is drastically reduced and it saves 2/3 of network bandwidth, so that we would say the design change in MOSS is much better than SPS 2003, except the IE7 client performance.&nbsp; Just to improve the client performance going back to SPS 2003 method and increase network traffic does not make sense, so that we have improved IE java script execution in IE8.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p>&nbsp;</o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">With today’s rich AJAX web-applications, some of the most common JScript operations include String and Array operations. We received feedback from many users regarding slow performance of the inbuilt string concatenation functions of Jscript, there are many blog post about the same topic. &nbsp;With IE8, we fixed this problem in the JScript engine. String concatenation is now many times faster when compared to the previous JScript engine.<o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p>&nbsp;</o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><A href="https://blogs.msdn.com/jscript/archive/2008/03/05/jscript-in-internet-explorer-8-beta-1-for-developers.aspx" mce_href="https://blogs.msdn.com/jscript/archive/2008/03/05/jscript-in-internet-explorer-8-beta-1-for-developers.aspx"><FONT color=#0000ff size=3 face="Times New Roman">https://blogs.msdn.com/jscript/archive/2008/03/05/jscript-in-internet-explorer-8-beta-1-for-developers.aspx</FONT></A><o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt"><o:p></o:p></SPAN></FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>Unable to edit files uploaded to document library where url length is more than 260 characters</title>
      <link>https://docs.microsoft.com/archive/blogs/selvagan/unable-to-edit-files-uploaded-to-document-library-where-url-length-is-more-than-260-characters</link>
      <pubDate>Sun, 06 Dec 2009 02:22:00 GMT</pubDate>
      <dc:creator><![CDATA[Selvagan]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/selvagan/2009/12/06/unable-to-edit-files-uploaded-to-document-library-where-url-length-is-more-than-260-characters/</guid>
      <description><![CDATA[As we all know there is a limitation in URL length as 260 characters for many reason and there are...]]></description>
      <content:encoded><![CDATA[<DIV xmlns="https://www.w3.org/1999/xhtml" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xdserverinfo="https://schemas.microsoft.com/office/infopath/2009/xslt/ServerInfo">
<DIV>As we all know there is a limitation in URL length as 260 characters for many reason and there are many articles from different specialties talks about it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Recently I have come across a scenario where users are able to upload documents to the document library and sub folders, if we calculate the total URL length of the uploaded document, it is more than 260 characters, SharePoint didn't throw any error or warning message while uploading documents to the folders.</DIV>
<DIV>When users are trying to edit the same document by clicking on document link or edit using Microsoft Office Word in dropdown menu, we get below warning messages.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "The URL for this file is too long for the application.&nbsp; A temporary copy of this file will be opened on&nbsp; </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; your computer.&nbsp; You must save this copy as a new file"</DIV>
<DIV>&nbsp;</DIV>
<DIV>The document will be opened in Read Only mode and when we try to save the document back to same location we get </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "This file is read-only."</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "The document could not be opened for editing.&nbsp; A Windows SharePoint Services compatible&nbsp; </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; application could not be found to edit the document."</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Q1. Does SharePoint has 260 characters limit?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Answer: Yes, it has the limit.</DIV>
<DIV>&nbsp;&nbsp; </DIV>
<DIV>Q2. If SharePoint has 260 characters limit then does it throw any error/warning while uploading documents?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Answer: Yes, it does throw warning message and terminate the upload process.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Q3. As mentioned SharePoint has 260 limit and it does not allow users to upload, then in what situation we get into the above issue (able to upload but not able to edit).</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Answer: As I have mentioned SharePoint has 260 characters restriction for both operations upload and edit. Sometimes users are experiencing issue only edit not while uploading.</DIV>
<DIV><BR>Here is the explanation how restriction applied while uploading and editing. </DIV>
<P>For example my site URL is:&nbsp; <A href="https://wfeone/" mce_href="https://wfeone/">https://wfeone/</A> (14) <BR>The document library I have created:&nbsp; Queen/ (6) <BR>Folder created under Queen:&nbsp; 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/ (101) <BR>Sub-folder : 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/ (101) <BR>Sub-folder : 012345678901234567890123456789/ (31) </P>
<P>14+6+101+101+31 = 253 </P>
<P>Complete length of the below URL is 253 characters <BR><A href="https://wfeone/Queen/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/012345678901234567890123456789/" mce_href="https://wfeone/Queen/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/012345678901234567890123456789/">https://wfeone/Queen/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/012345678901234567890123456789/</A> <BR></P>
<P>Edit: <BR>====== <BR>To edit the document, it must have only 6 characters in length (a.docx), if you upload any document which is 7 in length (ab.docx) cannot be editable. We get the following error message. </P>
<P>"The URL for this file is too long for the application.&nbsp; A temporary copy of this file will be opened on your computer.&nbsp; You must save this copy as a new file" </P>
<P>Upload: <BR>======= <BR>While uploading we use different mechanism to calculate length. <BR>We do not count the site URL <A href="https://wfeone/" mce_href="https://wfeone/">https://wfeone/</A> (14), the count starts from document library Queen/, so the total length would be 239 and you are allowed to upload a document which is 20 (0123456789012345.docx) in length, you cannot upload a document which is 21 characters.&nbsp; You will get the following error message. </P>
<P>Error: <BR>The specified file or folder name is too long. The URL path for all files and folders must be 260 characters or less (and no more than 128 characters for any single file or folder name in the URL). Please type a shorter file or folder name. <BR>Troubleshoot issues with Windows SharePoint Services. </P>
<P>So, we have restrictions in both sides, while uploading and editing.&nbsp; But it works in different way, site URL is not counted while uploading.</P>
<DIV>Q: Why SharePoint does not count the site URL while uploading ?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Answer: Site URL length may vary based on zone URL added in Alternate Access Mapping (AAM).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Workaround:</DIV>
<DIV>==========</DIV>
<DIV>We can use the below SQL query to check length of the URL and manage the hierarchy.</DIV>
<P>select * from sites <BR>select * from webs <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; copy the SiteId from the above query and replace it with the below query. </P>
<P>select '<A href="https://selvag/'" mce_href="https://selvag/'">https://selvag/'</A> + DirName + '/' + LeafName as url, LEN('<A href="https://selvag/'" mce_href="https://selvag/'">https://selvag/'</A> + DirName + '/' + LeafName) as urllength&nbsp; from alldocs where siteid = '9BE4D0E8-ADC6-4C3F-946B-08D6748CC123' and LEN('<A href="https://selvag/'" mce_href="https://selvag/'">https://selvag/'</A> + DirName + '/' + LeafName) &gt;200 order by urllength desc </P>
<P>We can create custom event handler which can count the site URL as well. <BR>Some of the reference links are here …</P>
<P><A href="https://www.sharepointjoel.com/Lists/Posts/Post.aspx?ID=111" mce_href="https://www.sharepointjoel.com/Lists/Posts/Post.aspx?ID=111">https://www.sharepointjoel.com/Lists/Posts/Post.aspx?ID=111</A> <BR><A href="https://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/e09fc8c1-b5f4-4ac6-9bd5-3ff8ebe06190" mce_href="https://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/e09fc8c1-b5f4-4ac6-9bd5-3ff8ebe06190">https://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/e09fc8c1-b5f4-4ac6-9bd5-3ff8ebe06190</A></P>
<P mce_keep="true">&nbsp;</P></DIV>]]></content:encoded>
    </item>
    <item>
      <title>Issues with Check-in / Check-out for published documents in SharePoint document library</title>
      <link>https://docs.microsoft.com/archive/blogs/selvagan/issues-with-check-in-check-out-for-published-documents-in-sharepoint-document-library</link>
      <pubDate>Mon, 15 Jun 2009 10:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Selvagan]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/selvagan/2009/06/15/issues-with-check-in-check-out-for-published-documents-in-sharepoint-document-library/</guid>
      <description><![CDATA[One of my recent findings about Check-in/Check-out, would like to share with everyone.&nbsp; While...]]></description>
      <content:encoded><![CDATA[<P>One of my recent findings about Check-in/Check-out, would like to share with everyone.&nbsp; While trying to troubleshoot a common error with Check-in/Check-out, I got to know more about how does it works.</P>
<P>What is the scenario and error message, why it is interesting ?</P>
<P><STRONG>Scenario:</STRONG> Launch Microsoft Word application and create a document, save it to a SharePoint document library as Test.htm.&nbsp; Try to edit the same Test.htm and try to save it back to the same SharePoint Document library, you will get the following error message.</P>
<P><STRONG>Error message:</STRONG> “The file cannot be saved because it is not checked out.&nbsp; To make changes to this file, you must check it out.”</P>
<P>This error message looks pretty much common with Check-in/Check-out, we have many articles and troubleshooting tips to fix it, then what difference this article is going to make it.</P>
<P>The SharePoint UI will show that the document is checked-out, if you query SQL server and check the document Test.htm, it will show as checked-out.&nbsp; We can’t fix this issue with common troubleshooting method until we know the root cause of the issue.</P>
<P><STRONG>Root Cause: </STRONG>When you save a document file as .htm to a SharePoint document library, it creates additional resource folder and files, it won’t be visible in SharePoint UI.&nbsp; When we try to edit Test.htm, the main file is getting checked-out but not all the resource folder and files.&nbsp; When we try to save the Test.htm back to document library, it will try to update the resource folder and files as well, since those files are not checked out, we are getting the above error message.</P>
<P>here is the sample data …</P>
<P>Create a document library named “TestLib” <BR>Upload a document named Test.docx <BR>Checkout the document <BR>Run the following query on SQL server. <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select checkoutuserid, checkoutdate, checkoutexpires,dirname, leafname from dbo.AllDocs with (nolock) where dirname = 'TestLib' <BR>Result will look like.</P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-fareast-font-family: 'Times New Roman'" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Forms<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>template.doc <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-fareast-font-family: 'Times New Roman'; mso-highlight: yellow" lang=EN-IN>1073741823<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>2009-03-28 08:56:17.000<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>Test.docx <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-fareast-font-family: 'Times New Roman'; mso-highlight: yellow" lang=EN-IN>1073741823<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>2009-03-28 08:56:17.000<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>2009-03-28 09:06:18.000<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Test.docx</SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-fareast-font-family: 'Times New Roman'" lang=EN-IN> <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-fareast-font-family: 'Times New Roman'" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Forms<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Upload.aspx<o:p></o:p></SPAN></P>
<P mce_keep="true"></SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN><FONT color=#000000 size=2 face=Arial>Go to document library, Edit the document Test.docx, update content, save it as “Web Page” Test.htm to the same document library.</FONT></P></SPAN>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN>
<P mce_keep="true"></SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN><FONT color=#000000 size=2 face=Arial>Browse to the document library you will see 2 files, Test.docx and Test.htm. <BR>Run the same above SQL query and compare this result.</FONT></SPAN></P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN><FONT color=#000000 size=2 face=Arial>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>Forms <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>item0003.xml <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>item0001.xml</SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN" lang=EN-IN> <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Test_files <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>props0004.xml <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>props0002.xml <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>props0006.xml</SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN" lang=EN-IN> <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>1073741823<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>2009-03-28 08:57:08.000<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Test.htm</SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN" lang=EN-IN> <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>filelist.xml <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>colorschememapping.xml <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>item0005.xml <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Test.docx <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; BACKGROUND: yellow; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN; mso-highlight: yellow" lang=EN-IN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>NULL<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TestLib/Test_files<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>themedata.thmx</SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: EN-IN" lang=EN-IN><o:p></o:p></SPAN></P>
<P mce_keep="true"></FONT></SPAN><FONT size=3 face="Times New Roman"><FONT size=2 face=Arial>When we try to save a document as *.htm to document library, it creates resource files, those files are not getting checked-out while check-out Test.htm.&nbsp; But when we try to save the document back to document library, it will try to update all the resource files, since those files are not checked-out, we get the above error message.</FONT></FONT></P>
<P mce_keep="true">This is what you see in profiler trace</P>
<P mce_keep="true">Proc_FetchDocForUpdate</P>
<P mce_keep="true">declare @p14 tinyint<BR>set @p14=1<BR>exec proc_FetchDocForUpdate 'EAAB2D32-13D0-4935-896F-B038AE90D92B','937BEB2C-B921-4167-BAC0-F33A8F6B0FA5',N'TestLib/Test_files',N'item0010.xml',1073741823,-2,0,1,0,0,1,0,5242880,@p14 output<BR>select @p14</P>
<P mce_keep="true">It is trying to edit the file "item0010.xml" which is not checked out.</P>
<P mce_keep="true"><STRONG>Workaround:</STRONG> </P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN></SPAN>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN>
<P><FONT color=#000000 size=2 face=Arial>We have issues only with the file format “Web Page (*.htm; *.html)”</FONT></P></SPAN>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN>
<P><FONT color=#000000 size=2 face=Arial>Instead of using .htm and .html, use the following file formats while saving webpages to document library. <BR>&nbsp;&nbsp;&nbsp;&nbsp; “Single File Web Page (*.mht; *.mhtml)” <BR>&nbsp;&nbsp;&nbsp;&nbsp; “WebPage, Filtered (*.htm; *.html)”</FONT></P></SPAN>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN>
<P mce_keep="true"></SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN>&nbsp;<A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IssueswithCheckinCheckoutforpublisheddoc_79D7/Capture.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IssueswithCheckinCheckoutforpublisheddoc_79D7/Capture.jpg" mce_href="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IssueswithCheckinCheckoutforpublisheddoc_79D7/Capture.jpg"><IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=Capture border=0 alt=Capture src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IssueswithCheckinCheckoutforpublisheddoc_79D7/Capture_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IssueswithCheckinCheckoutforpublisheddoc_79D7/Capture_thumb.jpg" width=580 height=128 mce_src="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IssueswithCheckinCheckoutforpublisheddoc_79D7/Capture_thumb.jpg"></A> </P></SPAN>
<P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt; mso-ansi-language: en-in" lang=EN-IN></P></SPAN>]]></content:encoded>
    </item>
    <item>
      <title>BlobCache - MOSS</title>
      <link>https://docs.microsoft.com/archive/blogs/selvagan/blobcache-moss</link>
      <pubDate>Thu, 11 Dec 2008 01:22:00 GMT</pubDate>
      <dc:creator><![CDATA[Selvagan]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/selvagan/2008/12/11/blobcache-moss/</guid>
      <description><![CDATA[What is BlobCache?
Disk-based Caching for Binary Large Objects
Disk-based caching controls...]]></description>
      <content:encoded><![CDATA[<SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><B style="mso-bidi-font-weight: normal"><FONT color=#000000>What is BlobCache?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></B></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Disk-based Caching for Binary Large Objects</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Disk-based caching controls caching for binary large objects (BLOBs) such as image, sound, and video files, as well as code fragments. Disk-based caching is extremely fast and eliminates the need for database round trips. BLOBs are retrieved from the database once and stored on the Web client. Further requests are served from the cache and trimmed based on security.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><o:p><FONT color=#000000>&nbsp;</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><B style="mso-bidi-font-weight: normal"><FONT color=#000000>Enabling and Modifying Disk-based Caching for SharePoint sites.<o:p></o:p></FONT></B></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Disk-based caching is disabled by default. To enable and customize the disk-based cache, you must modify the following statement in the web.config file for the SharePoint Web application.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>By default, it looks like this:<BR>&lt;BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="false" /&gt;</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>In order to improve the performance of your site, the BlobCache should be enabled.<BR>&lt;BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="true" /&gt;</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Example:</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>&lt;BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" max-age="86400" enabled="false"/&gt;</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>In the preceding example:</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>•&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location is the directory where the cached files will be stored<BR>•&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path specifies in the form of a regular expression which files are cached based on the file extension<BR>•&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxSize is the maximum allowable size of the disk-based cache in gigabytes<BR>•&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; max-age specifies the maximum amount of time in seconds that the client browser caches BLOBs downloaded to the client &nbsp;computer. If the downloaded items have not expired since the last download, the same items are not re-requested when the &nbsp;page is requested. The max-age attribute is set by default to 86400 seconds (that is, 24 hours), but it can be set to a time period &nbsp;of 0 or greater.<BR>•&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled is a Boolean that disables or enables the cache.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt" mce_keep="true">&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><B style="mso-bidi-font-weight: normal"><FONT color=#000000>Flushing the Disk-based Cache:<o:p></o:p></FONT></B></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><o:p><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We can flush current site collection object cache.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Site collection administration -&gt; site collection object cache -&gt; disk based cache reset.</FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>If we have multiple WFE in a farm, each WFE will maintain its own copy of Disk-based Cache.&nbsp;&nbsp;MOSS</FONT><FONT color=#000000> does not have a Web user interface (UI) to flush&nbsp;Disk-based&nbsp;Cache on all the&nbsp;servers in a farm and there is no option to select specific WFE.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><EM><STRONG>When we use web user interface to flush,&nbsp;reset&nbsp;will happen at the WFE server where the current IE session established.&nbsp; </STRONG></EM></FONT><FONT color=#000000>Eg:: Configure DNS round robin&nbsp;for a URL, open IE(1) and browse the site, it establish connection with WFE1.&nbsp;&nbsp;Open another IE(2) and browse the site, it establish connection with WFE2.&nbsp; When you do flush thru IE(1), WFE1 disk-based cache will get&nbsp;reset, do the same thru IE(2), WFE2 cache will get reset.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>We have to&nbsp;use&nbsp;STSADM command to flush all binary large object (BLOB) caches associated with a specific Web Application on different Web front-end computers in a farm</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>STSADM -o setproperty -propertyname blobcacheflushcount -propertyvalue 11 -url&nbsp; <A href="https://mywebapp:port" mce_href="https://mywebapp:port">https://mywebapp:port</A></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>&nbsp;</P></FONT>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><B style="mso-bidi-font-weight: normal"><FONT color=#000000>How BOLBCACHE works:<o:p></o:p></FONT></B></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>After enabled blobcache in web.config, do IISRESET and browse&nbsp;/settings.aspx first, instead of home page (Collaboration portal site).</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>If we browse the settings.aspx, it creates <B style="mso-bidi-font-weight: normal">Change.bin, dump.bin</B> and <B style="mso-bidi-font-weight: normal">flushcount.bin</B> (all the files will be in 1KB size)</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Browse the home page now, it will create a folder <B style="mso-bidi-font-weight: normal">PUBLISHINGIMAGES</B> folder, all the images rendered from database will be stored here and the above bin files also will get updated (we can see the difference in file size)</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Every time when a new image file rendered from database, the image folder gets a copy of the image.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>The bin files (index) will get updated with additional entry.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Every request from client will check the index file first; if the required image is not there in index, the request will go to database to get page content and image.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>It will not check the image folder whether the image is there or not.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>If the index file says there is no such image then the request goes to database, after the image rendered the image folder and index file get updated, so that next request will not go to database.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>What happens, if the image is not there in cache folder or image file is corrupted?</STRONG></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><SPAN style="COLOR: red"><STRONG><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></STRONG></SPAN><FONT color=#000000>We will not get the image; we get ‘X’ in place of image.<o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>What you mean by image file not there?</STRONG></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filename.jpg.cache file is missing.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>What you mean by image corrupted?</STRONG></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When you try to open the image file using image viewer (use IE), it will show ‘X’, because it is not a image file format (we get the same ’X’ in SharePoint page as well)</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>Solution:</STRONG>&nbsp; We have to reset index file.&nbsp; Site settings -&gt; Site collection object cache -&gt; Check the box for “Force this server to reset its disk based cache”.&nbsp; It will completely delete all the images and reset the bin files back to 1KB, so that next request will go to database and the complete index will be getting rebuilt.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>Workaround:</STRONG> If you do not want to reset the complete index.&nbsp; Find out the missing image and copy to the image folder, name it as “filename.JPG.cache”<BR>Refresh the page now; it should pick up the image.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>Index file update:</STRONG></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><o:p><FONT color=#000000>Everytime when web.config initialize the index file loaded from blobcache folder to memory, all new entries will keep getting updated in index file where in memory.&nbsp; <BR>IISRESET /stop will dump the updated index file from memory to blobcache folder.<BR>IISRESET /start will load the index file from blobcache folder to memory.<BR>As long as the application pool is alive the index file will be getting updated in memory itself.<BR>&nbsp;</FONT></o:p> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><SPAN style="COLOR: red"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>Index file corruption:</STRONG></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>Index file corruption is possible only when IISAdmin crashed or the index file overwritten with wrong information.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>When IIS try to load index file from blobcache to memory and identifies that, it is corrupted file (not a valid file), it will get completely rebuilt (flush) as fresh file (1KB), all the old entries and images will be lost.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000></FONT>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000><STRONG>Q &amp; A:</STRONG></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>1.&nbsp; In a farm environment, is there any way of having all the WFEs' blob caches synchronized among each other?<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; No, it cannot be synchronized. When a new file is added, SharePoint loads in memory the list of “cached” files in order to avoid checking the file system every time.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>2.&nbsp; In a single WFE environment using web gardening, how does blob caching function? Is there any sync that happens among the working processes?<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BLOB cache doesn’t support web gardening. The reason for that is because thre is different processes to access the same blobcache (there’s one blobcache per IIS web&nbsp;Site). As &nbsp;result, the second web process is not able to access the BlobCache. When a recycle occurs and the original W3WP process dies gracefully the&nbsp;lock released and the new W3WP process is then able to access &nbsp;BlobCache. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT color=#000000>3.&nbsp; What would be the best way of using blob cache in a farm environment (best practices)?<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If the requirement is to “centralize” static cached files, then 3rd party content distribution network (CDN) solutions like Akamai need to be used.</FONT></P><FONT color=#000000></FONT><FONT color=#000000>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><BR>4.&nbsp; What limitations does SharePoint have to deal with blob cache in a farm environment?<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;a.&nbsp; Blob caching does not work with Web Gardening.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b.&nbsp; Blob caching does not synchronize data across WFEs – so we might be seeing different versions of the files for a short duration across different WFE servers.</P></SPAN></FONT>]]></content:encoded>
    </item>
    <item>
      <title>Incoming Email Configuration - MOSS</title>
      <link>https://docs.microsoft.com/archive/blogs/selvagan/incoming-email-configuration-moss</link>
      <pubDate>Sat, 26 Jan 2008 04:59:00 GMT</pubDate>
      <dc:creator><![CDATA[Selvagan]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/selvagan/2008/01/26/incoming-email-configuration-moss/</guid>
      <description><![CDATA[Components:   •&nbsp;&nbsp; WSS 3.0 / MOSS Server•&nbsp;&nbsp; SPTimer service•&nbsp;&nbsp; SMTP...]]></description>
      <content:encoded><![CDATA[<p>Components:  <blockquote> <p>•&nbsp;&nbsp; WSS 3.0 / MOSS Server<br>•&nbsp;&nbsp; SPTimer service<br>•&nbsp;&nbsp; SMTP Relay<br>•&nbsp;&nbsp; Active Directory management service<br>•&nbsp;&nbsp; User account which has rights in AD (Delegate control for a specific OU) </p></blockquote> <p>About Incoming E-mail:  <blockquote> <p>•&nbsp;&nbsp; Feature of MOSS that enables SharePoint sites to receive and store e-mail messages and attachments in lists and libraries. <br>•&nbsp;&nbsp; Users can upload documents to SharePoint document library. <br>•&nbsp;&nbsp; Each list and library will have unique email address. </p></blockquote> <p><strong>Simple Scenario:</strong>  <p>Easy to configure, very less resources required.  <p>You cannot use your existing corporate email client to send emails to Sharepoint lists.  <p>Users have to remember all the email address for Sharepoint list items or it has to stored in local contacts list, there is no central location where you can store like Active Directory or GAL.  <blockquote> <p>Windows 2003 server<br>Internet Information Services 6.0 <br>SMTP service <br>.Net Framework 3.0 <br>WSS 3.0 / MOSS server </p></blockquote> <p>&nbsp; <p><strong>SMTP Configuration:</strong>  <p><u>Server Configuration:</u>  <p>Though you have exchange server in organization we have to install SMTP service on one of the web front end server in Sharepoint farm. Make sure SMTP component is installed on one of your Sharepoint server, Sharepoint timer service will pick email/attachments from known local SMTP service only.<br>When you install SMTP service on your local Sharepoint server, it will create a domain under SMTP Virtual server.<br>Need not to configure anything manually, but few things needs to be checked before proceeding further.  <p>Open IIS manager -&gt; Default SMTP virtual Server -&gt; Domains -&gt; MOSSserver.domain.com -&gt; Properties<br>Check the drop directory location, default location would be "C:\inetpub\mailroot\Drop" where all the emails will be stored till Sharepoint timer service pick it up.&nbsp; Sharepoint timer service will check this folder every 5 minutes (default).  <p>Check the security level for the the folder "C:\inetpub\mailroot\Drop"<br>Make sure the 'WSS_ADMIN_WPG' local group has full control on this folder.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/SMTP.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/SMTP.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="484" alt="SMTP" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/SMTP_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/SMTP_thumb.jpg" width="526" border="0"></a>  <p><u></u>&nbsp; <p><u>Client Configuration:</u>  <p>Client computers can be any windows operating system with email clients, either MS Outlook or Outlook Express to send email to SharePoint list.  <p>Launch Outlook Express -&gt; Create new email account<br>Display name: MOSS Administrator<br>email address: <a href="mailto:mossadmin@MOSSserver.domain.com">mossadmin@MOSSserver.domain.com</a> </p> <p>Incoming Email Server type: POP3<br>Incoming Email server: MOSSserver<br>Outgoing Email server: MOSSserver<br>Username: mossadmin<br>Password: xxxxxx</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_10.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_10.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="445" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_4.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_4.png" width="644" border="0"></a> </p> <p><u>Note:</u> You might get POP3 server connection failure, we can ignore this because we have configured only SMTP server not the POP3 service on Sharepoint server.&nbsp; For incoming E-mail configuration SMTP server configuration is enough.  <p><u>Test: </u> <p>Open outlook express and send an email to &lt;DocLibrary&gt;@SELVAWEB.SELDOM.com with attachment.<br>Check the folder "C:\inetpub\mailroot\Drop" and make sure the email dropped here in the format of *.eml file.  <p><strong><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="184" alt="Drop" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop_thumb.jpg" width="644" border="0"></a> </strong></p> <p><strong></strong>&nbsp;</p> <p><strong></strong>&nbsp; <p><strong></strong>&nbsp; <p><strong>SHAREPOINT Configuration:</strong>  <p><u>Global Settings from Admin:</u>  <p>Browse to Central Administration site -&gt; Operations -&gt; Incoming Email Settings (<a href="https://server:2345/_admin/IncomingEmail.aspx)">https://server:2345/_admin/IncomingEmail.aspx)</a>  <blockquote> <p>Enable incoming E-mail: Yes<br>Setting mode: Automatic<br>Directory management Service: No<br>Incoming E-mail server display address: MOSSserver.domain.com<br>Safe E-mail servers: Accept mail from all e-mail server </p></blockquote> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Admin_1.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Admin_1.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="484" alt="Admin" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Admin_thumb_1.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Admin_thumb_1.jpg" width="394" border="0"></a> </p> <p>&nbsp; <p><u>Settings for Individual List items:</u>  <p>Browse to SharePoint site and create a document library.  <p>Document library settings -&gt; Incoming email settings  <p>Allow this document library to receive e-mail?&nbsp; - Yes&nbsp; <br>E-mail address:&nbsp; &lt;DocLibrary&gt;@SELVAWEB.SELDOM.com<br>E-Mail Attachments: Save all attachments in root folder<br>Overwrite files with the same name? -&nbsp; Yes<br>Save original e-mail?&nbsp; - Yes<br>Save meeting invitations?&nbsp; - Yes<br>E-mail Security policy: Accept E-mail from any sender  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_4.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="484" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_1.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_1.png" width="345" border="0"></a>  <p><u>Sending E-mail to a Sharepoint document library:</u>  <p>1. Sending email  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_12.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_12.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="444" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_5.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_5.png" width="644" border="0"></a>  <p>2. Email dropped in SMTP drop folder  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop_1.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop_1.jpg"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="184" alt="Drop" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop_thumb_1.jpg" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/Drop_thumb_1.jpg" width="644" border="0"></a>  <p>3. Email picked by Sharepoint timer service and uploaded to a specific document library.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_14.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_14.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="350" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_6.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb_6.png" width="644" border="0"></a>  <p>&nbsp; <p>&nbsp; <p>&nbsp; <p><strong>Advanced Scenario:</strong>  <p>Easy to configure, When we create Sharepoint list item it will create new contact entry in Active Directory as per configuration in Sharepoint Admin.&nbsp; All the Sharepoint list address will be stored in Active directory as a contact object, where users can access from any client in a Domain.&nbsp; We can use our existing corporate email client.  <p>Windows 2003 server<br>Internet Information Services 6.0 <br>SMTP service <br>.Net Framework 3.0 <br>WSS 3.0 / MOSS server  <p>Active Directory</p> <p><strong>Setting up Active Directory OU:</strong>  <p>Create new Organizational Unit in Active Directory and grant permission for Sharepoint service account using delegate control option.  <p>In this scenario we have created new OU named SPS  <p><strong>Central Admin configuration:</strong>  <p><u>Global Settings from Admin:</u>  <p>Browse to Central Administration site -&gt; Operations -&gt; Incoming Email Settings (<a href="https://server:2345/_admin/IncomingEmail.aspx)">https://server:2345/_admin/IncomingEmail.aspx)</a>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_6.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_6.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="590" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/selvagan/WindowsLiveWriter/IncomingEmailConfigurationMOSS_116D7/image_thumb.png" width="411" border="0"></a>  <p>&nbsp; <p><strong>Settings for list item:</strong>  <p>Create a document library and configure Incoming E-mail settings as mentioned above.  <p>Check the OU in Active Directory, you will find a contact item created.&nbsp; We can manage all the contact item thru Active Directory.  <p>&nbsp; <p><strong>Creating connector in Exchange server for </strong> <p><strong>Using Exchange Connector to forward emails:</strong>]]></content:encoded>
    </item>
    <item>
      <title>Form Based Authentication Sample Code - MOSS</title>
      <link>https://docs.microsoft.com/archive/blogs/selvagan/form-based-authentication-sample-code-moss</link>
      <pubDate>Sat, 26 Jan 2008 04:27:00 GMT</pubDate>
      <dc:creator><![CDATA[Selvagan]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/selvagan/2008/01/26/form-based-authentication-sample-code-moss/</guid>
      <description><![CDATA[LDAP Authentication: 

Central Administration Web.config 
&lt;membership...]]></description>
      <content:encoded><![CDATA[<H4 class=TextColor1 id=subjcns!FCADA70113E1982B!842 style="MARGIN-BOTTOM: 0px"><U><STRONG>LDAP Authentication:</STRONG></U> </H4>
<DIV class=bvMsg id=msgcns!FCADA70113E1982B!842>
<P><U>Central Administration Web.config</U> 
<P>&lt;membership defaultProvider="PONDYform"&gt;<BR>&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;add name="PONDYform" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="selvadc" port="389" useSSL="false" userDNAttribute="distinguishedName" userNameAttribute="sAMAccountName" userContainer="CN=Users,DC=PONDY,DC=com" userObjectClass="person" userFilter="(|(ObjectCategory=group)(ObjectClass=person))" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn" /&gt;<BR>&nbsp; &lt;/providers&gt;<BR>&lt;/membership&gt; 
<P>&lt;roleManager defaultProvider="AspNetWindowsTokenRoleProvider" enabled="true" cacheRolesInCookie="true" cookieName=".PeopleDCRole"&gt;<BR>&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;add name="LpRoleMgr" type="Microsoft.Office.Server.Security.LDAPRoleProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="selvadc" port="389" useSSL="false" groupContainer="DC=PONDY,DC=com" groupNameAttribute="cn" groupMemberAttribute="member" userNameAttribute="sAMAccountName" dnAttribute="distinguishedName" groupFilter="(ObjectClass=group)" scope="Subtree" /&gt;<BR>&nbsp; &lt;/providers&gt;<BR>&lt;/roleManager&gt; 
<P><U>Web Application Web.config</U> 
<P>&lt;membership defaultProvider="PONDYform"&gt;<BR>&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;add name="PONDYform" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="selvadc" port="389" useSSL="false" userDNAttribute="distinguishedName" userNameAttribute="sAMAccountName" userContainer="CN=Users,DC=PONDY,DC=com" userObjectClass="person" userFilter="(|(ObjectCategory=group)(ObjectClass=person))" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn" /&gt;<BR>&nbsp; &lt;/providers&gt;<BR>&lt;/membership&gt; 
<P>&lt;roleManager defaultProvider="LpRoleMgr" enabled="true" cacheRolesInCookie="true" cookieName=".PeopleDCRole"&gt;<BR>&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;add name="LpRoleMgr" type="Microsoft.Office.Server.Security.LDAPRoleProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="selvadc" port="389" useSSL="false" groupContainer="DC=PONDY,DC=com" groupNameAttribute="cn" groupMemberAttribute="member" userNameAttribute="sAMAccountName" dnAttribute="distinguishedName" groupFilter="(ObjectClass=group)" scope="Subtree" /&gt;<BR>&nbsp; &lt;/providers&gt;<BR>&lt;/roleManager&gt; </P><U><STRONG>
<H4 class=TextColor1 id=subjcns!FCADA70113E1982B!842 style="MARGIN-BOTTOM: 0px"><U><STRONG></STRONG></U>&nbsp;</H4>
<H4 class=TextColor1 style="MARGIN-BOTTOM: 0px"><U><STRONG>ASP&nbsp; .Net&nbsp;Authentication:</STRONG></U> </H4></STRONG></U>
<P><U>Central Administration Web.config</U> 
<P>&lt;membership defaultProvider="AspNetSqlMembershipProvider"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;remove name="AspNetSqlMembershipProvider" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add connectionStringName="AspNetSqlMembershipProvider" passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" description="Stores and retrieves membership data from the Microsoft SQL Server database" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/providers&gt;<BR>&lt;/membership&gt; 
<P>&lt;roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;remove name="AspNetSqlRoleProvider" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add connectionStringName="AspNetSqlMembershipProvider" applicationName="/" description="Stores and retrieves roles data from the local Microsoft SQL Server database" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/providers&gt;<BR>&lt;/roleManager&gt; 
<P><U>Web Application Web.config</U> 
<P>&lt;membership defaultProvider="AspNetSqlMembershipProvider"&gt;<BR>&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;remove name="AspNetSqlMembershipProvider" /&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;add connectionStringName="AspNetSqlMembershipProvider" passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" description="Stores and retrieves membership data from the Microsoft SQL Server database" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;<BR>&nbsp; &lt;/providers&gt;<BR>&lt;/membership&gt; 
<P>&lt;roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider"&gt;<BR>&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;remove name="AspNetSqlRoleProvider" /&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;add connectionStringName="AspNetSqlMembershipProvider" applicationName="/" description="Stores and retrieves roles data from the local Microsoft SQL Server database" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;<BR>&nbsp; &lt;/providers&gt;<BR>&lt;/roleManager&gt; 
<P>---------------------------------------------- 
<P><STRONG><U></U></STRONG>
<P><STRONG><U>How to configure the Central Administration web.config if you have multiple web application running with different FBA authentication method.</U></STRONG> 
<P><U>I have combined the above two authentication method in the sample below.</U> 
<P>&nbsp; &lt;connectionStrings&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name="AspNetSqlMembershipProvider" connectionString="server=selvadc;database=aspnetdb;Integrated Security=SSPI;" providerName="System.Data.SqlClient" /&gt;<BR>&nbsp; &lt;/connectionStrings&gt; 
<P>&lt;system.web&gt; 
<P>&lt;membership&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;remove name="AspNetSqlMembershipProvider" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add connectionStringName="AspNetSqlMembershipProvider" passwordAttemptWindow="10" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" description="Stores and retrieves membership data from the Microsoft SQL Server database" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name="PONDYform" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="selvadc" port="389" useSSL="false" userDNAttribute="distinguishedName" userNameAttribute="sAMAccountName" userContainer="CN=Users,DC=PONDY,DC=com" userObjectClass="person" userFilter="(|(ObjectCategory=group)(ObjectClass=person))" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/providers&gt;<BR>&lt;/membership&gt; 
<P>&lt;roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;remove name="AspNetSqlRoleProvider" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add connectionStringName="AspNetSqlMembershipProvider" applicationName="/" description="Stores and retrieves roles data from the local Microsoft SQL Server database" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add name="LpRoleMgr" type="Microsoft.Office.Server.Security.LDAPRoleProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="selvadc" port="389" useSSL="false" groupContainer="DC=PONDY,DC=com" groupNameAttribute="cn" groupMemberAttribute="member" userNameAttribute="sAMAccountName" dnAttribute="distinguishedName" groupFilter="(ObjectClass=group)" scope="Subtree" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/providers&gt;<BR>&lt;/roleManager&gt; </P>
<P mce_keep="true">&nbsp;</P></DIV><CONNECTIONSTRINGS><ADD name="AspNetSqlMembershipProvider" providerName="System.Data.SqlClient" connectionString="server=selvadc;database=aspnetdb;Integrated Security=SSPI;"></ADD></CONNECTIONSTRINGS><SYSTEM.WEB><MEMBERSHIP><PROVIDERS><REMOVE name="AspNetSqlMembershipProvider"><ADD type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="AspNetSqlMembershipProvider" description="Stores and retrieves membership data from the Microsoft SQL Server database" passwordFormat="Hashed" requiresUniqueEmail="false" applicationName="/" requiresQuestionAndAnswer="true" enablePasswordReset="true" enablePasswordRetrieval="false" passwordAttemptWindow="10" connectionStringName="AspNetSqlMembershipProvider"></ADD><ADD otherRequiredUserAttributes="sn,givenname,cn" scope="Subtree" userFilter="(|(ObjectCategory=group)(ObjectClass=person))" userObjectClass="person" userContainer="CN=Users,DC=PONDY,DC=com" userNameAttribute="sAMAccountName" userDNAttribute="distinguishedName" useSSL="false" port="389" server="selvadc" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" name="PONDYform"></PROVIDERS></MEMBERSHIP><ROLEMANAGER enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"><PROVIDERS><REMOVE name="AspNetSqlRoleProvider"><ADD type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="AspNetSqlRoleProvider" description="Stores and retrieves roles data from the local Microsoft SQL Server database" applicationName="/" connectionStringName="AspNetSqlMembershipProvider"></ADD><ADD scope="Subtree" userNameAttribute="sAMAccountName" useSSL="false" port="389" server="selvadc" type="Microsoft.Office.Server.Security.LDAPRoleProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" name="LpRoleMgr" groupFilter="(ObjectClass=group)" dnAttribute="distinguishedName" groupMemberAttribute="member" groupNameAttribute="cn" groupContainer="DC=PONDY,DC=com"></ADD></PROVIDERS></ROLEMANAGER>]]></content:encoded>
    </item>
  </channel>
</rss>