<?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>Prashant Nayak</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/pnayak/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/pnayak/feed.xml</link>
    <description>Sharing points about Solution on SharePoint and Cloud</description>
    <lastBuildDate>Tue, 16 Apr 2019 05:25:27 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SharePoint Conference 2014 Highlights</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/sharepoint-conference-2014-highlights</link>
      <pubDate>Mon, 03 Mar 2014 19:21:34 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2014/03/03/sharepoint-conference-2014-highlights/</guid>
      <description><![CDATA[Work like a network!&nbsp; Enterprise social and the future of...]]></description>
      <content:encoded><![CDATA[<ul>
<li><strong>Work like a network!&nbsp; Enterprise social and the future of work</strong></li>
<li><a href="https://blogs.office.com/2014/03/03/work-like-a-network-enterprise-social-and-the-future-of-work/">https://blogs.office.com/2014/03/03/work-like-a-network-enterprise-social-and-the-future-of-work/</a></li>
<li><strong>Creating the Office Graph</strong></li>
<li><strong><a href="https://about.yammer.com/product/platform/">https://about.yammer.com/product/platform/</a></strong></li>
<li><strong>Oslo</strong></li>
<li><a href="https://blogs.office.com/2014/03/03/onedrive-for-business-announcements/">https://blogs.office.com/2014/03/03/onedrive-for-business-announcements/</a></li>
<li>The Office 365 platform &mdash;new opportunities for developers</li>
<li><a href="https://blogs.office.com/2014/03/03/create-apps-for-office-365/">https://blogs.office.com/2014/03/03/create-apps-for-office-365/</a></li>
</ul>
<p><strong></strong></p>
<p><strong></strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Heroes to Mentors (Revisit)</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/heroes-to-mentors-revisit</link>
      <pubDate>Thu, 15 Nov 2012 15:48:00 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2012/11/15/heroes-to-mentors-revisit/</guid>
      <description><![CDATA[Becoming a Premier Field Engineer is not just a privilegebut it&rsquo;s more of an achievement for...]]></description>
      <content:encoded><![CDATA[<p>Becoming a Premier Field Engineer is not just a privilege<br />but it&rsquo;s more of an achievement for me. When I look at some of my peers, I<br />always feel proud to be part of the super charged team. They are like<br />"Always ON" :-) for helping customers and solving real world<br />technology problems. In many cases, not just Microsoft technologies but sometimes<br />help resolve other technology issues as well. PFE&rsquo;s entire goal is to make<br />customer and partners to  be very happy.</p>
<h2>Why do I care?</h2>
<p>Yeah, you may wonder, why should I care? Sure, it depends on<br />what you are looking for. I rather not explain here but my Fellow colleague,<br />Kirk Evans, can explain better than me. He has some fantastic blog posts about<br />this very subject and I highly recommend to read his blog posts about Premier<br />Field Engineering which you can find here.</p>
<p><a title="Kirk" href="https://blogs.msdn.com/b/kaevans/archive/2012/02/04/moving-from-heroes-to-mentors.aspx">Moving from heroes to mentors</a></p>
<h2>Why I love being PFE?</h2>
<p>I started working for Microsoft via its Consulting services<br />division (MCS). During MCS time, I have done consulting for about five years<br />and delivered many successful custom solutions. I wore number of hats such as<br />Developer, evangelist, architect etc. and helped many large, medium and small size<br />customers. After five years of custom development, I decided to look at Premier<br />Field Engineering and pursued to become Dedicate Premier Field engineer (DSE) &ndash;<br />Thanks to Kirk for his blog posts. This exposed me to some wide and very deep technical areas where I had never dare to dive, such as Network monitoring, Log<br />parsing, Performance Monitoring etc. This also provided me opportunities to work with<br />my various team mates who are absolute experts in the subject areas such as<br />Networking, DNS, AD, ADFS, Security etc. PFEs are exposed to some great<br />internal knowledge base to explore and find lots of valuable lesson learned and<br />various customer support cases. &nbsp;Engaging mPFE is not just engaging individual but engaging army of people and their expertise behind them. I always feel empowered with this role, as I can very quickly get technical questions answered, whether it may be for SQL Cluster,<br />or SAN related or some .NET 4.5 related code. Love to be part of such a talented and highly motivated team.</p>
<h2>Finally&hellip;</h2>
<p>Well, this was just to share my side of the story and<br />excitement. Also, to remind myself (as Kirk mentioned) to become &ldquo;Heroes To<br />Mentors&rdquo;. &nbsp;</p>
<p>Cheers!!!</p>
<p>Follow me at &nbsp;<a href="https://twitter.com/WazzUrPoint">WazzUrPoint</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Best Practices of using SharePoint Designer in an Enterprise Farm</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/best-practices-of-using-sharepoint-designer-in-an-enterprise-farm</link>
      <pubDate>Fri, 05 Aug 2011 13:16:00 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2011/08/05/best-practices-of-using-sharepoint-designer-in-an-enterprise-farm/</guid>
      <description><![CDATA[&nbsp;
Many of my customers asked me about some kind of basic guidelines for their end users for...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p>Many of my customers asked me about some kind of basic guidelines for their end users for using SharePoint designer in a large enterprise farm. Unfortunately, there is not much out there except scattered information, so I decided to put one myself to help SharePoint community.</p>
<h2>Purpose</h2>
<p>SharePoint designer (SPD) is a very powerful tool for designing and customizing SharePoint sites. However, understanding of proper usage of SharePoint designer is very important especially if the sites are hosted in an Enterprise environment with large number of users. This document provides some of the guidelines and various best practices of using SharePoint designer in a shared environment.</p>
<p>&nbsp;</p>
<h2>Guidelines</h2>
<p>Generally, SharePoint designer is ideally suited for business analysts, designers and power users. End users must be restricted using SPD. For SPD access, site collection administrator is responsible for providing access to these users on various sites. No tool is better if it&rsquo;s used incorrectly.</p>
<p>Followings are various best practices and guidelines for using SPD, which are as follows:</p>
<p>&nbsp;</p>
<h4>1. Data Form Web Parts</h4>
<p>Data Form web part (DFWP) allows connecting to various data sources and surface data on SharePoint sites.</p>
<p><strong>Best Practices: <br /></strong>It is best practice to avoid using DFWP which returns large number of list items or data items in a shared environment. Simple reason behind this guideline is, when loading large number of data using DFWP, SharePoint runs queries in background to fetch data which most times affect other users. Large custom queries affects performance of the SharePoint farm and sometimes <b>it has potential to bring entire SharePoint farm down</b>; therefore it is very important to use DFWP with simple and lite amount of data. Secondly, if the page (where DFWP is hosted) is constantly being requested at the same time by large number of users, then that can also affect overall performance of the SharePoint sites.</p>
<p>&nbsp;</p>
<h4>2. Customizing Pages</h4>
<p>There are primarily two ways SharePoint pages can be customized 1) using SPD and 2) using Browser.</p>
<p><strong>Best Practices: <br /></strong>Avoid creating pages using SPD as long the page can be customized using Browser. The reason behind this is when pages are customized using SharePoint designer <b>these pages will be now served from the back end database instead of a disk file on a front end web server. </b>Therefore, every time page is requested the page is loaded from database which is in slower than loading from disk file from web front end server. Also, note that these customized pages are <b>difficult to upgrade</b> for next version of SharePoint.</p>
<p>&nbsp;</p>
<h4>3. Branding</h4>
<p>Designers can change various look and feel of SharePoint sites, such as modifying Master pages, page layouts and Cascading style sheets.</p>
<p><strong>Best Practices: <br /></strong>For a large enterprise, it is best practice to have a consistent look and feel throughout entire SharePoint farm especially for intranet based portal sites. In general, one must avoid changing master pages, page layouts or CSS for for collaborative sites such as Team sites. In an Enterprise farm, usually there is a branding or design team who should be responsible for overall design. For consistent branding it is recommended to use developer based solutions instead of using SPD. <b>The use of SPD for branding should be limited to designers only.</b></p>
<p></p>
<h4>4. Workflow</h4>
<p>With SPD, one can design custom workflows that add no-code application logic to your SharePoint sites.</p>
<p><strong>Best Practices: <br /></strong><b>Avoid creating complicated workflows for a simple process.</b> In general, it is best practices to allow only Business Analysts to create custom workflows using SPD as they understand business process well and can simplify business processes. However, in cases where SPD based workflow is too complex to design then it is usually a good idea to involve developers who may be able to create using code.</p>
<p>&nbsp;</p>
<h4>5. Using jQuery</h4>
<p>jQuery is a very powerful JavaScript library which allows easier modification of elements on an HTML page without page refresh. In other words it uses Asynchronous JavaScript and XML (AJAX) based technology to communicate with server. Usually, this library can be used with Content Editor web part.</p>
<p><strong>Best Practices: <br /></strong>Avoid using jQuery for complex and large list items queries. Basically, this is the same guidelines as mentioned before which relates to DVWP. <strong>Avoid running large queries in background in a shared environment which affects performance of the entire farm and hence affecting other users.</strong> Another guideline is to avoid uploading jQuery to conventional document libraries, if one is already available in <em>_layouts</em> folder. This will avoid duplicate scripts all over the farm uploaded by various users and also jQuery in <em>_layouts</em> folder can be cached and loaded faster than one in a document library which in turn is loaded from the database.</p>
<p>Cheers.</p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2010 is finally here...</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/sharepoint-2010-is-finally-here</link>
      <pubDate>Mon, 19 Oct 2009 23:12:00 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2009/10/19/sharepoint-2010-is-finally-here/</guid>
      <description><![CDATA[Lot of people waiting for final announcement for SharePoint vNEXT (2010) and it&nbsp;finally...]]></description>
      <content:encoded><![CDATA[<P>Lot of people waiting for final announcement for SharePoint vNEXT (2010) and it&nbsp;finally annouced today&nbsp;over at SPC 2009 in Las Vegas. Tons of content, great sessions, exciting new features for SharePoint 2010.</P>
<P><FONT size=3><STRONG>My top 5 favorite features:</STRONG></FONT></P>
<P>1. Web 2.0 style UI</P>
<P>2. Metadata management across farms</P>
<P>3. Insight aka BI featuers (Performace Point services, Visio services, New Excel services, PowerPivot for Excel 2010 formerly Gemini etc)</P>
<P>4. BCS (Business Connectivity Services)</P>
<P>5. Developer Dashboard and Visual Studio 2010 support for SharePoint Development</P>
<P>For more info check&nbsp;out the link <A href="https://www.mssharepointconference.com/pages/default.aspx" mce_href="https://www.mssharepointconference.com/pages/default.aspx">https://www.mssharepointconference.com/pages/default.aspx</A>&nbsp;</P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>401 Unauthorized Error using WebRequest when accessing local SharePoint site</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/401-unauthorized-error-using-webrequest-when-accessing-local-sharepoint-site</link>
      <pubDate>Tue, 07 Apr 2009 08:22:00 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2009/04/07/401-unauthorized-error-using-webrequest-when-accessing-local-sharepoint-site/</guid>
      <description><![CDATA[&#160;  Colleague of mine asked me to research this issue and thought of sharing the solution as...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>Colleague of mine asked me to research this issue and thought of sharing the solution as this is not clearly discussed anywhere on the Internet.</p>  <h3>Problem:</h3>  <p>Accessing local SharePoint site (with Windows Integrated Authentication) works fine using IE, however if the same site is accessed via .NET console application using <strong><em>HttpWebRequest</em></strong> object it throws<font color="#ff0000"> 401 Unauthorized error</font>.</p>  <h3>Solution:</h3>  <p>I tried bunch of things such as <em>DefaultCredentials</em>, <em>NetWorkCredentials</em> and <em>ImpersonationTokenType</em> etc but none would work. Apparently it was not a code but it was something very simple. Guess what! it has to do with custom host entry. Weird huh?</p>  <p>Here’s the KB article that resolved the issue (followed method 2 and restart the machine)</p>  <p><a title="https://support.microsoft.com/default.aspx?scid=kb;en-us;896861" href="https://support.microsoft.com/default.aspx?scid=kb;en-us;896861">https://support.microsoft.com/default.aspx?scid=kb;en-us;896861</a></p>  <h3>Details:</h3>  <p>Usually SharePoint developers uses single VPC and create web application with URL entry like <a href="https://Litware">https://Litware</a> and adds an entry of <strong>Litware</strong> in Host file to point back to <strong>127.0.0.1</strong>. This works great for usual SharePoint development. </p>  <p>The IE works great as it automatically uses integrated authentication. However, for console application it doesn’t work when the Web site uses Integrated Authentication and has a name that is mapped to the local loopback address.</p>  <h6>[Remark: This solution is only been tested on Windows 2003 R2, MOSS 2007 SP1 and December Cumulative Update, .Net 3.5 Sp1.]</h6>  <p></p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:965d896e-5992-44bb-8833-0735ba184e2d" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/SharePoint+WebRequest+401+Unauthorized" rel="tag">SharePoint WebRequest 401 Unauthorized</a></div>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint developer’s quick tips</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/sharepoint-developers-quick-tips</link>
      <pubDate>Fri, 20 Feb 2009 14:34:44 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2009/02/20/sharepoint-developers-quick-tips/</guid>
      <description><![CDATA[This is mostly for my quick go to place to get some quick copy/paste when I am not around my...]]></description>
      <content:encoded><![CDATA[<p>This is mostly for my quick go to place to get some quick copy/paste when I am not around my machine!</p>  <h5>How to extract Public key token using Visual Studio? </h5>  <p align="left">Add a custom tool in Visual Studio as </p>  <div class="csharpcode">   <pre class="alt">C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\Sn.exe -Tp $(TargetDir)$(TargetName)$(TargetExt)</pre>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<p align="left">(select Output window)</p>

<h5>How to quickly get new GUID using Visual St</h5>

<p>Add a custom tool as</p>

<div class="csharpcode">
  <pre class="alt">C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools</pre>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<h5>SharePoint Schema Locations </h5>

<p>Create CAML.XML file using notepad and add following code</p>

<div class="csharpcode">
  <pre class="alt"><span class="lnum">   1:  </span>&lt;SchemaCatalog xmlns=<span class="str">&quot;https://schemas.microsoft.com/xsd/catalog&quot;</span>&gt; </pre>

  <pre><span class="lnum">   2:  </span>&lt;Schema href=<span class="str">&quot;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\wss.xsd&quot;</span> </pre>

  <pre class="alt"><span class="lnum">   3:  </span>targetNamespace=<span class="str">&quot;https://schemas.microsoft.com/sharepoint/&quot;</span>/&gt; </pre>

  <pre><span class="lnum">   4:  </span>&lt;/SchemaCatalog&gt;</pre>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<p>Drop this file to </p>

<div class="csharpcode">
  <pre class="alt">%ProgramFiles%\Microsoft Visual Studio 8\Xml\Schemas\</pre>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<h5>Recycle app pools in IIS6 </h5>

<p>IIS6</p>

<div class="csharpcode">
  <pre class="alt">%systemroot%\System32\iisapp.vbs /a <span class="str">&quot;&lt;app pool name&gt;&quot;</span> /r</pre>
</div>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<p>IIS7</p>

<pre class="csharpcode">%systemroot%\System32\inetsrv\APPCMD.exe recycle apppool <span class="str">&quot;&lt;App Pool Name&gt;&quot;</span></pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<h5>Quick MOSS Exception Logging (MOSS SDK says “Internal Use Only” – so be careful!) </h5>

<div class="csharpcode">
  <pre class="alt"><span class="lnum">   1:  </span><span class="kwrd">catch</span>(Exception Ex)</pre>

  <pre><span class="lnum">   2:  </span>&#160;</pre>

  <pre class="alt"><span class="lnum">   3:  </span>{</pre>

  <pre><span class="lnum">   4:  </span>&#160;</pre>

  <pre class="alt"><span class="lnum">   5:  </span>Microsoft.Office.Server.Diagnostics.PortalLog.LogString(”Exception Occurred: {0} ”, Ex.ToString());</pre>

  <pre><span class="lnum">   6:  </span>&#160;</pre>

  <pre class="alt"><span class="lnum">   7:  </span>}</pre>
</div>

<p>Nope! I am not taking any credit for it - collected it from various seasoned SharePointers! </p>

<h6>Happy SharePointing!</h6>]]></content:encoded>
    </item>
    <item>
      <title>Hide and automatically check [Sign me in automatically] check box in SharePoint FBA login page</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/hide-and-automatically-check-sign-me-in-automatically-check-box-in-sharepoint-fba-login-page</link>
      <pubDate>Fri, 08 Aug 2008 11:45:00 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2008/08/08/hide-and-automatically-check-sign-me-in-automatically-check-box-in-sharepoint-fba-login-page/</guid>
      <description><![CDATA[Why to hide and check "Sign me in automatically" button? 
Main reason is to facilitate smooth user...]]></description>
      <content:encoded><![CDATA[<P>Why to hide and check "<STRONG><EM>Sign me in automatically</EM></STRONG>" button? </P>
<P>Main reason is to facilitate smooth user experience, especially with respect to <STRONG><EM>Microsoft Office Integration with SharePoint</EM></STRONG>. This integration issue is extensively covered by Steve Peschka's MSDN article on FBA (Part 2 of 3). </P>
<P><STRONG>Issue: <BR></STRONG>When<EM>Windows SharePoint Services</EM> web application is extended with FBA then the <EM>MS Office Integration</EM> isn't that smooth and there are some extra steps involved working with Office Documents such as Manually check-out, check-in, download temporarily to desktop then edit and upload etc. </P>
<P><STRONG>Solution (or rather a workaround): <BR></STRONG>One of the work around to smoothen this experience is to check "<EM>Sign me in automatically</EM>" checkbox which sends the persistent cookie and thus Office programs works smoothly by using that cookie. </P>
<P>You might ask isn't that a risk to allow user to keep them signing in without their knowledge? Yes, but that's the trade-off. I am not saying compromise the security but its the happy middle ground for seamless user experience.</P>
<P><STRONG>Steps to modify login.aspx page:</STRONG></P>
<OL>
<LI>Create a sub-directory (<EM>myApp</EM>) in 12 hive's layouts directory (<EM><FONT size=1>C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\template\layouts</FONT></EM>) </LI>
<LI>Copy<STRONG> <EM>login.aspx</EM></STRONG> file to this sub-direcroty from parent directory (<EM>layouts</EM> directory) and rename it to <STRONG><EM>myLogin.aspx</EM>.</STRONG> </LI>
<LI>Modified <EM>myLogin.aspx</EM> page as shown further. </LI>
<LI>Change <STRONG><EM>web.config</EM></STRONG> file of the FBA Web application to redirect <STRONG><EM>login.aspx</EM></STRONG> page to your custom page <EM>(/_layouts/myApp/myLogin.aspx) as shown below</EM> <BR><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes"><BR>&lt;</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #a31515; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">authentication</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes"> </SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">mode</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">=</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">"<SPAN style="COLOR: blue">Forms</SPAN>"<SPAN style="COLOR: blue">&gt; <BR></SPAN></SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">&lt;</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #a31515; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">forms</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes"> </SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">loginUrl</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">=</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">"<SPAN style="COLOR: blue">/_layouts/myApp/myLogin.aspx</SPAN>"<SPAN style="COLOR: blue"> /&gt; <BR></SPAN></SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">&lt;/</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #a31515; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">authentication</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">&gt; 
<P mce_keep="true">&nbsp;</P></SPAN></LI></OL>
<TABLE class="" cellSpacing=0 cellPadding=2 width=534 border=1>
<TBODY>
<TR>
<TD class="" vAlign=top width=532>Modify <STRONG><EM>myLogin.aspx</EM></STRONG> page.</TD></TR>
<TR>
<TD class="" vAlign=top width=532>
<LI>First hide the checkbox&nbsp; by adding&nbsp; <SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="COLOR: red">style</SPAN><SPAN style="COLOR: blue">="</SPAN><SPAN style="COLOR: red">display</SPAN>:<SPAN style="COLOR: blue">none</SPAN>;<SPAN style="COLOR: blue">" </SPAN></SPAN>attribute to <SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">&lt;</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #a31515; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">td</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes"> <SPAN style="COLOR: red">colSpan</SPAN><SPAN style="COLOR: blue">=2&gt;</SPAN></SPAN> tag which surrounds check box. </LI>
<LI>Replace <SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">&lt;</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #a31515; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">table</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes"> <SPAN style="COLOR: red">class</SPAN><SPAN style="COLOR: blue">="ms-input"&gt;</SPAN> </SPAN>tag with following: <BR><BR><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">&lt;</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #a31515; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes">table</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-bidi-font-family: 'Times New Roman'; mso-no-proof: yes"> <SPAN style="COLOR: red">class</SPAN><SPAN style="COLOR: blue">="ms-input"</SPAN> <SPAN style="COLOR: red">onmousedown</SPAN><SPAN style="COLOR: blue">="javascript:for(var i=0;i&lt;document.forms[0].elements.length;i++){if (document.forms[0].elements[i].type=='checkbox'){document.forms[0].elements[i].checked=true;break;}};"</SPAN> <SPAN style="COLOR: red">onkeypress</SPAN><SPAN style="COLOR: blue">="javascript:for(var i=0;i&lt;document.forms[0].elements.length;i++){if (document.forms[0].elements[i].type=='checkbox'){document.forms[0].elements[i].checked=true;break;}}"&gt; </SPAN></SPAN></LI></TD></TR></TBODY></TABLE>
<P><STRONG>What's happening here? <BR></STRONG>Yeah, I know its hard to read. All I am doing is trapping <EM><STRONG>onmousedown</STRONG></EM> and <STRONG><EM>onkeypress</EM></STRONG> event on main table tag which surrounds <EM>User Name</EM> and <EM>Password</EM> text boxes, so that anytime user either enters user name or password or even copy/paste (using mouse <EM>or CTRL+V</EM>) this is sure way to fire the script and then it automatically checks the check box. </P>
<DIV class=Section1>
<P><STRONG>What's this in-line <EM>javascript</EM> doing? <BR></STRONG>Instead of using hard-coded ID for the check-box , I am looping through the form elements and enabling first checkbox upon key press or mouse down. Of course, assuming that "sign me in automatically" check box is first in the form element <EM>(you may want to tweak if you have extensively customized this OTB form and created your own with multiple check-boxes)</EM></P>
<P mce_keep="true">&nbsp;</P>
<P class=MsoNormal mce_keep="true">&nbsp;</P>
<DIV class=Section1>
<P class=MsoNormal style="MARGIN-BOTTOM: 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><STRONG>Why in-inline <EM>Javascript</EM> and why not simply add property <EM>Checked="true"</EM> in <EM>&lt;asp:checkbox&gt;</EM> control? <BR></STRONG>Because <EM>Checked="true"</EM> doesn't work, as on form load checkbox gets initialized and by default its unchecked. Secondly, in line <EM>javascript</EM> is allowed in SharePoint pages, however &lt;script&gt; tag is restricted dues to security reasons.</P></DIV></DIV>
<P>Hope this may save some hours for some of you. Just sharing the point for <EM>SharePoint </EM>:-)</P>]]></content:encoded>
    </item>
    <item>
      <title>Announcing Microsoft SharePoint Administration Toolkit 1.0</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/announcing-microsoft-sharepoint-administration-toolkit-1-0</link>
      <pubDate>Wed, 30 Apr 2008 16:07:15 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2008/04/30/announcing-microsoft-sharepoint-administration-toolkit-1-0/</guid>
      <description><![CDATA[This toolkit help reduce some of the pains for SharePoint administrators, especially managing ever...]]></description>
      <content:encoded><![CDATA[<p>This toolkit help reduce some of the pains for SharePoint administrators, especially managing ever growing Site collections. It contains two important functionality: </p>  <ul>   <li>Batch Site Manager, which can be used by an administrator to manage and administrate bulk operations for moving, deleting, and locking site collections within a SharePoint farm. </li>    <li>A new Stsadm command-line tool operation called <b>updatealert</b> that updates alert e-mails when the Uniform Resource Locator (URL) for a Web application is changed</li> </ul>  <p>Whitepaper is available <a href="https://go.microsoft.com/fwlink/?LinkId=117212&amp;clcid=0x409 " target="_blank">here</a>. (Binaries are soon to be available...)</p>]]></content:encoded>
    </item>
    <item>
      <title>Console app to start incremental crawl in MOSS 2007</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/console-app-to-start-incremental-crawl-in-moss-2007</link>
      <pubDate>Thu, 15 Nov 2007 16:37:00 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2007/11/15/console-app-to-start-incremental-crawl-in-moss-2007/</guid>
      <description><![CDATA[Wrote a little Console application to kick start incremental crawl in MOSS 2007.
Here's how it can...]]></description>
      <content:encoded><![CDATA[<P>Wrote a little Console application to kick start incremental crawl in MOSS 2007.</P>
<P>Here's how it can be used.</P>
<P><FONT face="courier new,courier" color=#0066cc><STRONG>Usage: StartIncrementalCrawl.exe SiteURL "Content SourceName" <BR></STRONG>(Example: StartIncrementalCrawl.exe&nbsp;<A href="https://mymosssite/" mce_href="https://mymosssite/">https://MyMOSSSite</A> "Local Office Sharepoint Server Sites" )</FONT></P>
<P>As you can see, First&nbsp;I am getting the [SearchContext] Reference and then [ContentSources] collection, then just search for the passed content source name string.&nbsp;&nbsp;Upon finding the&nbsp;content source,&nbsp;kick the incremental crawl on [ContentSrouce] object with static method <FONT face="Lucida Console">StartIncrementalCrawl()</FONT>. <BR><FONT color=#ff0000 size=1>(Note: This utility should be run under the context of Farm Admin only)</FONT></P>
<P>Copy paste&nbsp;following&nbsp;code in a console app. </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"> System;<?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; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"> System.Collections;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"> System.Text;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"> Microsoft.Office.Server.Search.Administration;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">using</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"> Microsoft.SharePoint;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">namespace</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"> PN.Moss.Samples<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green"> </SPAN><SPAN style="COLOR: gray">&lt;summary&gt;<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green"> Console app to start Incremental Crawl<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green"> <o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green"> Usage: StartIncrementalCrawl.exe SiteUrl "ContentSourceName"<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green"> (Example: StartIncrementalCrawl.exe https://MyMossSite "MyContentSource")<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;</SPAN><SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green"> <o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: gray">///</SPAN><SPAN style="COLOR: green"> </SPAN><SPAN style="COLOR: gray">&lt;/summary&gt;<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: #2b91af">Program<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: blue">void</SPAN> Main(<SPAN style="COLOR: blue">string</SPAN>[] args)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">try<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (args.Length &lt; 2)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Usage();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN>;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"Getting Search context..."</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">string</SPAN> strURL = args[0];<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">SearchContext</SPAN> context;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">using</SPAN> (<SPAN style="COLOR: #2b91af">SPSite</SPAN> site = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">SPSite</SPAN>(strURL))<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;</SPAN>context = <SPAN style="COLOR: #2b91af">SearchContext</SPAN>.GetContext(site);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Content</SPAN> sspContent = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">Content</SPAN>(context);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">string</SPAN> strContentSource = args[1];<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: blue">string</SPAN>.Format(<SPAN style="COLOR: #a31515">"Searching content source [{0}] ..."</SPAN>, strContentSource));<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">ContentSourceCollection</SPAN> sspContentSources = sspContent.ContentSources;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (!sspContentSources.Exists(strContentSource))<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"===================================================================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: blue">string</SPAN>.Format(<SPAN style="COLOR: #a31515">"ERROR: Unable to find content source [{0}]. \nPlease provide correct content source name."</SPAN>, strContentSource));<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"===================================================================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">else<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">ContentSource</SPAN> cs = sspContentSources[strContentSource];<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (cs.CrawlStatus == <SPAN style="COLOR: #2b91af">CrawlStatus</SPAN>.Idle)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"Starting Incremental Crawl..."</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>cs.StartIncrementalCrawl();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"===================================================================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"Incremental Crawl started Successfully.\nPlease check SSP web site for completion."</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"===================================================================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">else<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"===================================================================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: blue">string</SPAN>.Format(<SPAN style="COLOR: #a31515">"ERROR: Unable to start incremental crawl, as crawl status is not [idle].\n\n[INFO: Current Crawl Status={0}] \n\nPlease verify and try after crawl status becomes idle."</SPAN>, cs.CrawlStatus.ToString()));<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"===================================================================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">catch</SPAN> (<SPAN style="COLOR: #2b91af">Exception</SPAN> e)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"========================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"*** Exception Occured ***"</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"========================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(e.ToString());<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">private</SPAN> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: blue">void</SPAN> Usage()<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"========================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"Start Incremental Crawl"</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"========================="</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"Usage: StartIncrementalCrawl.exe SiteUrl \"ContentSourceName\""</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">""</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">Console</SPAN>.WriteLine(<SPAN style="COLOR: #a31515">"(Ex: StartIncrementalCrawl.exe https://MyMossSite \"MyContentSource\")"</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-no-proof: yes">}<o:p></o:p></SPAN></P>
<P mce_keep="true">&nbsp;</P><FONT size=1>
<P mce_keep="true">&nbsp;</P></FONT>]]></content:encoded>
    </item>
    <item>
      <title>HOWTO: Host Office Documents with VSTO automation inside SharePoint 2007 Document Library</title>
      <link>https://docs.microsoft.com/archive/blogs/pnayak/howto-host-office-documents-with-vsto-automation-inside-sharepoint-2007-document-library</link>
      <pubDate>Tue, 26 Jun 2007 22:15:00 GMT</pubDate>
      <dc:creator><![CDATA[Khalnayak]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pnayak/2007/06/26/howto-host-office-documents-with-vsto-automation-inside-sharepoint-2007-document-library/</guid>
      <description><![CDATA[It’s very easy to upload Word template to Microsoft Office SharePoint (MOSS) 2007&nbsp;document...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 10pt 0in"><FONT face=Calibri>It’s very easy to upload Word template to Microsoft Office SharePoint (MOSS) 2007&nbsp;document library. However, it’s not that straight forward to setup and deploy Word template with VSTO code behind in MOSS 2007 document Library.</FONT></P>
<P class=MsoNormal style="MARGIN: 10pt 0in"><FONT face=Calibri>Following guidelines shows how to deploy such documents to a MOSS 2007 document library and make sure they work in as long as Users have access to Deployment Manifest.</FONT></P>
<DIV style="BORDER-RIGHT: #dbe5f1 3pt solid; PADDING-RIGHT: 0in; BORDER-TOP: #dbe5f1 3pt solid; PADDING-LEFT: 0in; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0in; BORDER-LEFT: #dbe5f1 3pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: #dbe5f1 3pt solid; mso-element: para-border-div; mso-border-themecolor: accent1; mso-background-themecolor: accent1; mso-background-themetint: 51; mso-border-themetint: 51">
<H2 style="MARGIN: 10pt 0in 0pt"><FONT face=Calibri size=3>Prerequisites for Clients</FONT></H2></DIV>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 10pt 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>The Microsoft .NET Framework version 2.0</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>Microsoft Office 2003 applications that support VSTO 2005 document-based solutions <BR>OR <BR>Microsoft Office 2003 applications that support VSTO 2005 SE add-ins</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>Primary Interop assemblies<BR></FONT><SPAN style="FONT-SIZE: 9pt; LINE-HEIGHT: 115%"><FONT face=Calibri>A typical installation of Microsoft Office 2003 or a stand-alone product such as Word sets the applications to install the primary interop assemblies on first use of the product. A full installation installs the primary interop assemblies during the installation process.<BR>If you do not know whether a specific computer has the Primary Interop Assemblies installed, you should install the primary interop assemblies as part of your solution.</FONT></SPAN></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>VSTO 2005 SE runtime</FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo1"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>Visual Studio Tools for Office Language Pack (optional)</FONT></P>
<DIV style="BORDER-RIGHT: #dbe5f1 3pt solid; PADDING-RIGHT: 0in; BORDER-TOP: #dbe5f1 3pt solid; PADDING-LEFT: 0in; BACKGROUND: #dbe5f1; PADDING-BOTTOM: 0in; BORDER-LEFT: #dbe5f1 3pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: #dbe5f1 3pt solid; mso-element: para-border-div; mso-border-themecolor: accent1; mso-background-themecolor: accent1; mso-background-themetint: 51; mso-border-themetint: 51">
<H2 style="MARGIN: 10pt 0in 0pt"><FONT face=Calibri size=3>Steps for Building and Deploying VSTO solution:</FONT></H2></DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #4f81bd 1pt solid; PADDING-LEFT: 2pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #4f81bd 1pt solid; PADDING-TOP: 2pt; BORDER-BOTTOM: medium none; mso-element: para-border-div; mso-border-top-alt: solid #4F81BD .75pt; mso-border-top-themecolor: accent1; mso-border-left-alt: solid #4F81BD .75pt; mso-border-left-themecolor: accent1">
<H3 style="MARGIN: 15pt 0in 0pt"><FONT face=Calibri color=#243f60 size=3>1. Create VSTO Project </FONT></H3></DIV>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><FONT face=Calibri>Create VSTO project for the Document level add-in for Word 2003/2007 using Visual Studio Tools for Office 2005 SE. Add necessary code to successfully run the project.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><FONT face=Calibri></FONT>&nbsp;</P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #4f81bd 1pt solid; PADDING-LEFT: 2pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #4f81bd 1pt solid; PADDING-TOP: 2pt; BORDER-BOTTOM: medium none; mso-element: para-border-div; mso-border-top-alt: solid #4F81BD .75pt; mso-border-top-themecolor: accent1; mso-border-left-alt: solid #4F81BD .75pt; mso-border-left-themecolor: accent1">
<H3 style="MARGIN: 15pt 0in 0pt"><FONT face=Calibri color=#243f60 size=3>2. Build and Publish the solution </FONT></H3></DIV>
<P class=MsoNormal style="MARGIN: 10pt 0in"><FONT face=Calibri>Once successfully built and tested, publish the project.<B style="mso-bidi-font-weight: normal"> </B>Using Visual Studio 2005 publishing wizard, publish the project to network file share or SharePoint share. <BR><SPAN style="COLOR: red">(Note: End user MUST have access to this location without getting prompted to Network Credentials. This is the location where Deployment Manifest and assemblies will be located.)</SPAN></FONT></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #4f81bd 1pt solid; PADDING-LEFT: 2pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #4f81bd 1pt solid; PADDING-TOP: 2pt; BORDER-BOTTOM: medium none; mso-element: para-border-div; mso-border-top-alt: solid #4F81BD .75pt; mso-border-top-themecolor: accent1; mso-border-left-alt: solid #4F81BD .75pt; mso-border-left-themecolor: accent1">
<H3 style="MARGIN: 15pt 0in 0pt"><FONT face=Calibri color=#243f60 size=3>3. Grant full trust to the network folder</FONT></H3></DIV>
<P class=MsoNormal style="MARGIN: 10pt 0in"><FONT face=Calibri>Before granting permission, first Add <B style="mso-bidi-font-weight: normal">Msosec.dll </B>to the global assembly cache (GAC). Msosec.dll is the assembly that implements <B style="mso-bidi-font-weight: normal">Microsoft.Office.Security.Policy.OfficeDocumentMembershipCondition</B>, which is used to identify documents and workbooks. You can find <B style="mso-bidi-font-weight: normal">Msosec.dll</B> in the ADDINS folder under your Office installation location, which by default is <B style="mso-bidi-font-weight: normal">\Program Files\Microsoft Office\OFFICE11\ADDINS</B>.</FONT></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-element: para-border-div; mso-border-bottom-alt: solid windowtext .5pt">
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 10pt 0in; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: medium none; mso-border-bottom-alt: solid windowtext .5pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><U><FONT face=Calibri>How to Add MSOSEC.DLL to the assembly cache:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></U></B></P></DIV>
<P class=MsoNormal style="MARGIN: 10pt 0in"><FONT face=Calibri><B style="mso-bidi-font-weight: normal">GacUtil.exe</B> is targeted for developers and therefore it’s not shipped as part of the .NET 2.0 framework. For production environment, MSDN documentation suggests to use Windows Installer.</FONT></P>
<P class=MsoNormal style="MARGIN: 10pt 0in"><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Follow steps for creating Setup or Installer project in VS 2005.</FONT></P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 10pt 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>Create <B style="mso-bidi-font-weight: normal">[Setup]</B> project using Visual Studio 2005</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>Right Click <B style="mso-bidi-font-weight: normal">Project</B> and Select <B style="mso-bidi-font-weight: normal">View/File System</B>.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>Right Click <B style="mso-bidi-font-weight: normal">[File System On Target Machine]</B> and Add Special Folder <B style="mso-bidi-font-weight: normal">[Global Assembly Cache Folder]</B></FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Select [<B style="mso-bidi-font-weight: normal">Global Assembly Cache Folder</B>] and then Right-Click and add <B style="mso-bidi-font-weight: normal">[Assembly] </B>and select <B style="mso-bidi-font-weight: normal">C:\Program Files\Microsoft Office\Office11\ADDINS\MSOSEC.DLL</B></FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri>5.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>Build the solution and this will create <B style="mso-bidi-font-weight: normal">SETUP.EXE</B> and <B style="mso-bidi-font-weight: normal">XXXX.MSI</B> (XXXXX = [Name of the project]).</FONT></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-element: para-border-div; mso-border-bottom-alt: solid windowtext .5pt">
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 10pt 0in; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: medium none; mso-border-bottom-alt: solid windowtext .5pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%; mso-bidi-font-size: 10.0pt"><FONT face=Calibri>Grant full trust to the assemblies in each end user's security policy. <o:p></o:p></FONT></SPAN></B></P></DIV>
<P class=MsoNormal style="MARGIN: 10pt 0in"><SPAN style="FONT-SIZE: 11pt; LINE-HEIGHT: 115%; mso-bidi-font-size: 10.0pt"><FONT face=Calibri>There are basically 2 automated ways to do this.<o:p></o:p></FONT></SPAN></P>
<P class=MsoListParagraph style="MARGIN: 10pt 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l3 level1 lfo3"><B style="mso-bidi-font-weight: normal"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri>1)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><FONT face=Calibri>Create simple Batch file as follows: <BR><B style="mso-bidi-font-weight: normal">Example: <o:p></o:p></B></FONT></P>
<P class=MsoNormal style="BACKGROUND: #dddddd; MARGIN: 10pt 11.5pt 0pt 0.5in; VERTICAL-ALIGN: top; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">Cd %systemroot%\Microsoft.NET\Framework\v2.0.50727<o:p></o:p></SPAN></P>
<P class=MsoNormal style="BACKGROUND: #dddddd; MARGIN: 10pt 11.5pt 0pt 0.5in; VERTICAL-ALIGN: top; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">caspol -m -ag LocalIntranet_Zone -url \\ServerName\FolderName\* Nothing -n "My Data Folder" -d "Intermediate group for my documents"<o:p></o:p></SPAN></P>
<P class=MsoNormal style="BACKGROUND: #dddddd; MARGIN: 10pt 11.5pt 0pt 0.5in; VERTICAL-ALIGN: top; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">caspol -m -ag "My Data Folder" -custom "C:\Program Files\Microsoft Office\Office11\Addins\Msosec.xml" FullTrust -n "My Data Documents" -d "Grants FullTrust to all documents in my data folder"<o:p></o:p></SPAN></P>
<P class=MsoNormal style="BACKGROUND: #dddddd; MARGIN: 10pt 11.5pt 0pt 0.5in; VERTICAL-ALIGN: top; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt"><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Console'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">caspol -m -ag LocalIntranet_Zone -url \\DeployServer\ShareFolder\* FullTrust -n "Remote Deployment" -d "Deployment Walkthrough"<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 10pt 0in 10pt 0.5in"><A href="https://msdn2.microsoft.com/en-us/library/13wcxx6y(VS.80).aspx" mce_href="https://msdn2.microsoft.com/en-us/library/13wcxx6y(VS.80).aspx"><FONT face=Calibri color=#0000ff>https://msdn2.microsoft.com/en-us/library/13wcxx6y(VS.80).aspx</FONT></A></P>
<P class=MsoNormal style="MARGIN: 10pt 0in 10pt 0.5in; TEXT-ALIGN: center" align=center><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 14pt; LINE-HEIGHT: 115%; mso-bidi-font-size: 10.0pt"><FONT face=Calibri>OR<o:p></o:p></FONT></SPAN></B></P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 10pt 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l3 level1 lfo3"><B style="mso-bidi-font-weight: normal"><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri>2)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN></B><FONT face=Calibri>Create <B style="mso-bidi-font-weight: normal">Deployment Package</B> as follows:</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo4"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>Basically, create a trust manually on the one of the computer using .NET Framework 2.0, start the SDK Command Prompt and type<B style="mso-bidi-font-weight: normal"> MSCORCFG.MSC</B><SPAN style="mso-spacerun: yes">&nbsp; </SPAN></FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo4"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>In the left pane, right-click the Runtime Security Policy node.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo4"><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore">·<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri>From the menu, choose <B style="mso-bidi-font-weight: normal">Create Deployment Package</B>.</FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in"><A href="https://msdn2.microsoft.com/en-us/library/13wcxx6y(VS.80).aspx" mce_href="https://msdn2.microsoft.com/en-us/library/13wcxx6y(VS.80).aspx"><FONT face=Calibri color=#0000ff>https://msdn2.microsoft.com/en-us/library/13wcxx6y(VS.80).aspx</FONT></A></P>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #4f81bd 1pt solid; PADDING-LEFT: 2pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #4f81bd 1pt solid; PADDING-TOP: 2pt; BORDER-BOTTOM: medium none; mso-element: para-border-div; mso-border-top-alt: solid #4F81BD .75pt; mso-border-top-themecolor: accent1; mso-border-left-alt: solid #4F81BD .75pt; mso-border-left-themecolor: accent1">
<H3 style="MARGIN: 15pt 0in 0pt"><FONT face=Calibri color=#243f60 size=3>5.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>Upload the document template</FONT></H3></DIV>
<P class=MsoNormal style="MARGIN: 10pt 0in"><FONT face=Calibri>Once all of the above steps are completed, upload the Word Template document to MOSS 2007 document library. That's It.</FONT></P>
<P style="FONT-SIZE: 11pt; MARGIN: 10pt 0in"><FONT face=Calibri><STRONG>Good luck!</STRONG>&nbsp;&nbsp;</FONT></P>
<P class=MsoNormal style="MARGIN: 10pt 0in" mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
  </channel>
</rss>