<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint 2010 Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/sharepoint-2010/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/sharepoint-2010/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Mon, 03 May 2021 10:50:11 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>Upgrading from SharePoint 2010 to SharePoint 2013 &#8211; Pointers &#038; Links</title>
		<link>https://blog.binarybits.net/upgrading-from-sharepoint-2010-to-sharepoint-2013-pointers-links/</link>
					<comments>https://blog.binarybits.net/upgrading-from-sharepoint-2010-to-sharepoint-2013-pointers-links/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Thu, 19 Dec 2013 10:25:36 +0000</pubDate>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[Upgrading]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=588</guid>

					<description><![CDATA[<p>I am in the process of Upgrading a web application from SharePoint 2010 to SharePoint 2013. While I am preparing a cheat sheet, this article will have all the sites and pointers I have referred so that it can be referred by anyone in the future. Migration Related References: Migrate to SharePoint 2013 &#8211; Supported [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/upgrading-from-sharepoint-2010-to-sharepoint-2013-pointers-links/">Upgrading from SharePoint 2010 to SharePoint 2013 &#8211; Pointers &#038; Links</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I am in the process of Upgrading a web application from SharePoint 2010 to SharePoint 2013.</p>
<p>While I am preparing a cheat sheet, this article will have all the sites and pointers I have referred so that it can be referred by anyone in the future.</p>
<p>Migration Related References:<br />
<a title="Migrate to SharePoint 2013 - Supported scenarios" href="http://en.share-gate.com/blog/migrate-to-sharepoint-2013-supported-upgrade-scenarios" target="_blank">Migrate to SharePoint 2013 &#8211; Supported scenarios</a><br />
<a title="SharePoint 2013 Upgrade Process - Microsoft Reference" href="http://www.microsoft.com/en-us/download/details.aspx?id=30371" target="_blank">SharePoint 2013 Upgrade Process</a> (<a href="http://downloads.binarybits.net/blog/SP2010ToSP2013Migration/sp2013-upgrade-process.pdf" target="_blank">Click here for direct link</a>)</p>
<p>The post <a href="https://blog.binarybits.net/upgrading-from-sharepoint-2010-to-sharepoint-2013-pointers-links/">Upgrading from SharePoint 2010 to SharePoint 2013 &#8211; Pointers &#038; Links</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/upgrading-from-sharepoint-2010-to-sharepoint-2013-pointers-links/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SharePoint 2010 &#8211; Disaster Recovery</title>
		<link>https://blog.binarybits.net/sharepoint-2010-disaster-recovery/</link>
					<comments>https://blog.binarybits.net/sharepoint-2010-disaster-recovery/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Thu, 07 Nov 2013 15:18:13 +0000</pubDate>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=582</guid>

					<description><![CDATA[<p>Recently out of normal development routine I was discussing with my development team regarding the IT side of SharePoint 2010. One of the aspects we were discussing about was the &#8220;Disaster Recovery.&#8221; Being developers, &#8220;Disaster Recovery&#8221; was a mere term rather than an important IT aspect for them and I fastly realized it was slightly [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/sharepoint-2010-disaster-recovery/">SharePoint 2010 &#8211; Disaster Recovery</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently out of normal development routine I was discussing with my development team regarding the IT side of SharePoint 2010.</p>
<p>One of the aspects we were discussing about was the &#8220;Disaster Recovery.&#8221; Being developers, &#8220;Disaster Recovery&#8221; was a mere term rather than an important IT aspect for them and I fastly realized it was slightly boring for them.</p>
<p>Post discussion I decided to give them some links so that they can refer when needed. Found out following were some of the links they can quickly read and understand.</p>
<p><a title="Disaster Recovery for SharePoint 2010" href="http://blogs.msdn.com/b/manhar/archive/2012/10/29/disaster-recovery-for-sharepoint.aspx" target="_blank">Disaster Recovery for SharePoint 2010<br />
</a><a title="Configure Disaster Recovery Farm with SharePoint 2010" href="http://blogs.technet.com/b/mahesm/archive/2010/04/30/configure-disaster-recovery-farm-with-sharepoint-2010.aspx" target="_blank">Configure Disaster Recovery Farm with SharePoint 2010<br />
<a style="line-height: 1.5;" title="SharePoint Server 2010 - 10 Steps to Disaster Recovery" href="http://blogs.msdn.com/b/uksharepoint/archive/2011/08/31/sharepoint-server-2010-10-steps-to-disaster-recovery.aspx" target="_blank">SharePoint Server 2010 &#8211; 10 Steps to Disaster Recovery</a></a></p>
<p>The post <a href="https://blog.binarybits.net/sharepoint-2010-disaster-recovery/">SharePoint 2010 &#8211; Disaster Recovery</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/sharepoint-2010-disaster-recovery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Restrict People Picker To Search Within a Site Collection</title>
		<link>https://blog.binarybits.net/restrict-people-picker-to-search-within-a-site-collection/</link>
					<comments>https://blog.binarybits.net/restrict-people-picker-to-search-within-a-site-collection/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Tue, 04 Dec 2012 06:56:56 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=425</guid>

					<description><![CDATA[<p>Sjekk hjemmesiden casino online Euro.</p>
<p>The post <a href="https://blog.binarybits.net/restrict-people-picker-to-search-within-a-site-collection/">Restrict People Picker To Search Within a Site Collection</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sjekk hjemmesiden  <a href="http://bestenorskecasinos.com/">casino online</a> Euro.</p>
<p>The post <a href="https://blog.binarybits.net/restrict-people-picker-to-search-within-a-site-collection/">Restrict People Picker To Search Within a Site Collection</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/restrict-people-picker-to-search-within-a-site-collection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Setting password for Managed Account</title>
		<link>https://blog.binarybits.net/setting-password-for-managed-account/</link>
					<comments>https://blog.binarybits.net/setting-password-for-managed-account/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Sat, 03 Nov 2012 11:01:37 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=398</guid>

					<description><![CDATA[<p>Password for Managed Account in SharePoint 2010 can be set in the following ways. Set a new password for Managed Account #If there is only one managed account, the following line could be written as: #$inputManagedAcct = Get-SPManagedAccount $inputManagedAcct = Read-Host "Enter managed account as Domain\User" #Input the desired new password $inputPasswd = Read-Host "Enter [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/setting-password-for-managed-account/">Setting password for Managed Account</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Password for Managed Account in SharePoint 2010 can be set in the following ways.</p>
<p><strong>Set a new password for Managed Account</strong></p>
<pre class="lang:ps decode:true">#If there is only one managed account, the following line could be written as: 
#$inputManagedAcct = Get-SPManagedAccount

$inputManagedAcct = Read-Host "Enter managed account as Domain\User"

#Input the desired new password
$inputPasswd = Read-Host "Enter new password for managed account" –AsSecureString 

#Change the password for the managed account to the new value Set-SPManagedAccount -Identity $inputManagedAcct -NewPassword $inputPasswd</pre>
<p>To update the account password to a new automatically generated value, from the Windows PowerShell command prompt, type the following:</p>
<blockquote><p>Set-SPManagedAccount –Identity domain\user -AutoGeneratePassword $true</p></blockquote>
<p><strong>Update the password for a Managed Account that has already been reset through Active Directory</strong></p>
<p>If the password for a managed service account has been manually changed outside of SharePoint (such as directly in Active Directory), you can update the password to the new value in SharePoint 2010 as follows</p>
<pre class="lang:ps decode:true">#If there is only one managed account, the following line could be written as: 
#$inputManagedAcct = Get-SPManagedAccount

$inputManagedAcct = Read-Host "Enter managed account as Domain\User:" 
#Input the Managed Account $inputPasswd = Read-Host "Enter password from Active Directory for managed account:" –AsSecureString 

#Change the password in SharePoint for the managed account to the new value 
Set-SPManagedAccount -Identity $inputManagedAcct -ExistingPassword $inputPasswd –UseExistingPassword $true</pre>
<p>To update the account password to a already changed password, from the Windows PowerShell command prompt, type the following:</p>
<blockquote><p>Set-SPManagedAccount -Identity domain\user -UseExistingPassword</p></blockquote>
<p>For more information look at <a href="http://blogs.technet.com/b/seanearp/archive/2011/01/25/updating-passwords-on-sharepoint-2010.aspx">http://blogs.technet.com/b/seanearp/archive/2011/01/25/updating-passwords-on-sharepoint-2010.aspx</a></p>
<p>The post <a href="https://blog.binarybits.net/setting-password-for-managed-account/">Setting password for Managed Account</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/setting-password-for-managed-account/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Access Denied &#8211; SharePoint code execution</title>
		<link>https://blog.binarybits.net/access-denied-sharepoint-code-execution/</link>
					<comments>https://blog.binarybits.net/access-denied-sharepoint-code-execution/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Thu, 23 Aug 2012 07:58:06 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=315</guid>

					<description><![CDATA[<p>When doing certain code operations in SharePoint like getting list of templates will lead to &#8220;Access Denied&#8221; exceptions. For such instances we can wrap the code within the following lines to execute code with elevated privileges. SPSecurity.RunWithElevatedPrivileges(delegate() { //Code goes here });</p>
<p>The post <a href="https://blog.binarybits.net/access-denied-sharepoint-code-execution/">Access Denied &#8211; SharePoint code execution</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When doing certain code operations in SharePoint like getting list of templates will lead to &#8220;Access Denied&#8221; exceptions. For such instances we can wrap the code within the following lines to execute code with elevated privileges.</p>
<pre class="lang:c# decode:true">SPSecurity.RunWithElevatedPrivileges(delegate()
{
        //Code goes here
});</pre>
<p>The post <a href="https://blog.binarybits.net/access-denied-sharepoint-code-execution/">Access Denied &#8211; SharePoint code execution</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/access-denied-sharepoint-code-execution/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.</title>
		<link>https://blog.binarybits.net/unable-to-evaluate-expression-because-the-code-is-optimized-or-a-native-frame-is-on-top-of-the-call-stack/</link>
					<comments>https://blog.binarybits.net/unable-to-evaluate-expression-because-the-code-is-optimized-or-a-native-frame-is-on-top-of-the-call-stack/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Thu, 23 Aug 2012 07:07:50 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=311</guid>

					<description><![CDATA[<p>We were developing a Server Object Model based functionality in SharePoint involving site creation using template. During development we use to get the following error in quick watch window. Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. To solve this issue we added [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/unable-to-evaluate-expression-because-the-code-is-optimized-or-a-native-frame-is-on-top-of-the-call-stack/">Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We were developing a Server Object Model based functionality in SharePoint involving site creation using template. During development we use to get the following error in quick watch window.</p>
<blockquote><p>Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.</p></blockquote>
<p>To solve this issue we added the following code before the actual statement and issue was solved.</p>
<pre class="lang:default decode:true">SPSecurity.CatchAccessDeniedException = false;</pre>
<p>&nbsp;</p>
<p>The post <a href="https://blog.binarybits.net/unable-to-evaluate-expression-because-the-code-is-optimized-or-a-native-frame-is-on-top-of-the-call-stack/">Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/unable-to-evaluate-expression-because-the-code-is-optimized-or-a-native-frame-is-on-top-of-the-call-stack/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Deleting a file from library using SharePoint ASMX web service</title>
		<link>https://blog.binarybits.net/deleting-a-file-from-sharepoint/</link>
					<comments>https://blog.binarybits.net/deleting-a-file-from-sharepoint/#comments</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Mon, 13 Aug 2012 03:53:34 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=285</guid>

					<description><![CDATA[<p>The following is the code for deleting a particular file from a library using SharePoint ASMX web service. The technique involves identifying the document ID using &#8220;GetListItems&#8221; of the file and then executing &#8220;UpdateListItems&#8221; public string DeleteFileFromSharePoint(string siteUrl, string libraryName, string fileName, FileDeleteInput input) { Lists listService = new Lists(); //Web reference of http://&#60;server&#62;/sites/&#60;site&#62;/_vti_bin/lists.asmx listService.Url = "http://&#60;server&#62;/sites/&#60;site&#62;/_vti_bin/lists.asmx"; [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/deleting-a-file-from-sharepoint/">Deleting a file from library using SharePoint ASMX web service</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The following is the code for deleting a particular file from a library using SharePoint ASMX web service.<br />
The technique involves identifying the document ID using &#8220;GetListItems&#8221; of the file and then executing &#8220;UpdateListItems&#8221;</p>
<pre class="lang:c# decode:true">public string DeleteFileFromSharePoint(string siteUrl, string libraryName, string fileName, FileDeleteInput input)
    {
        Lists listService = new Lists(); //Web reference of http://&lt;server&gt;/sites/&lt;site&gt;/_vti_bin/lists.asmx
        listService.Url = "http://&lt;server&gt;/sites/&lt;site&gt;/_vti_bin/lists.asmx";
        listService.UseDefaultCredentials = true;
        string sourceUrl = fileName;
        string output = string.Empty;

        try
        {
            int fileId = GetFileIdFromList(siteUrl, libraryName, fileName, listService.Url);

            XmlDocument doc = new XmlDocument();
            XmlElement Batch = doc.CreateElement("Batch");
            Batch.SetAttribute("OnError", "Continue");
            Batch.SetAttribute("ListVersion", "1");
            Batch.SetAttribute("ViewName", "");
            string strBatch = "&lt;Method ID='1' Cmd='Delete'&gt;";
            strBatch += "&lt;Field Name='ID'&gt;" + fileId + "&lt;/Field&gt;";
            strBatch += "&lt;Field Name='FileRef'&gt;" + siteUrl + libraryName + "/" + fileName + "&lt;/Field&gt;";
            strBatch += "&lt;/Method&gt;";
            Batch.InnerXml = strBatch;

            XmlNode returnvalue = listService.UpdateListItems(libraryName, Batch);

            if (returnvalue.InnerXml.Contains("0x00000000"))
            {
                output = "Success: File Deleted";
            }
            else if (returnvalue.InnerXml.Contains("Invalid file name"))
            {
                output = "Failure: No such file exists";
            }
            else if (returnvalue.InnerXml.Contains("Access denied"))
            {
                output = "Failure: No such file exists";
            }
            else
            {
                output = "Failure: File couldn't be deleted";
            }
        }
        catch (SoapException ex)
        {
            throw ex;
        }
        catch (Exception)
        {
            throw ex;
        }
        return output;
    }

    protected int GetFileIdFromList(string siteUrl, string libraryName, string fileName, string serviceUrl)
    {
        int id = 0;

        Lists listService = new Lists(); //Web reference of http://&lt;server&gt;/sites/&lt;site&gt;/_vti_bin/lists.asmx
        listService.Url = serviceUrl;
        listService.UseDefaultCredentials = true;

        // Build the CAML Query
        System.Text.StringBuilder queryStringBuilder = new System.Text.StringBuilder();
        queryStringBuilder.Append("     &lt;Query&gt;");
        queryStringBuilder.Append("         &lt;Where&gt;");
        queryStringBuilder.Append("             &lt;Eq&gt;");
        queryStringBuilder.Append("                  &lt;FieldRef Name=\"FileLeafRef\" /&gt;");
        queryStringBuilder.Append("                  &lt;Value Type=\"Text\"&gt;" + fileName + "&lt;/Value&gt;");
        queryStringBuilder.Append("             &lt;/Eq&gt;");
        queryStringBuilder.Append("        &lt;/Where&gt;");
        queryStringBuilder.Append("    &lt;/Query&gt;");

        XmlDocument query = new XmlDocument();
        query.LoadXml(queryStringBuilder.ToString());

        //Build the View Query 
        queryStringBuilder.Clear(); // Clear the string builder
        queryStringBuilder.Append("    &lt;ViewFields&gt;");
        queryStringBuilder.Append("    &lt;FieldRef Name=\"ID\" /&gt;&lt;FieldRef Name=\"Title\" /&gt;&lt;FieldRef Name=\"Name\" /&gt;");
        queryStringBuilder.Append("    &lt;/ViewFields&gt;");

        XmlDocument viewFields = new XmlDocument();
        viewFields.LoadXml(queryStringBuilder.ToString());

        //Build the CAML Query Options
        queryStringBuilder.Clear(); // Clear the string builder
        queryStringBuilder.Append("    &lt;QueryOptions&gt;");
        queryStringBuilder.Append("         &lt;Folder&gt;" + libraryName + "/&lt;/Folder&gt; /&gt;");
        queryStringBuilder.Append("    &lt;/QueryOptions&gt;");

        XmlDocument queryOptions = new XmlDocument();
        queryOptions.LoadXml(queryStringBuilder.ToString());

        XmlNode listItems = listService.GetListItems(libraryName, null, query, viewFields, null, queryOptions, null);

        foreach (XmlNode outerNode in listItems.ChildNodes)
        {
            if (outerNode is XmlWhitespace)
                continue;
            else
            {
                if (outerNode.Name == "rs:data")
                {
                    foreach (XmlNode innerNode in outerNode.ChildNodes.OfType&lt;XmlNode&gt;())
                    {
                        if (innerNode is XmlWhitespace)
                            continue;
                        else
                        {
                            id = Int32.Parse(innerNode.Attributes["ows_ID"].Value.ToString());
                        }
                    }
                }
            }
        }

        return id;
    }</pre>
<p>&nbsp;</p>
<p>The post <a href="https://blog.binarybits.net/deleting-a-file-from-sharepoint/">Deleting a file from library using SharePoint ASMX web service</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/deleting-a-file-from-sharepoint/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Using SharePoint 2010&#8217;s OOB search result to search in a particular library</title>
		<link>https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/</link>
					<comments>https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Sun, 12 Aug 2012 06:32:33 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Library Search]]></category>
		<category><![CDATA[SharePoint Search]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=271</guid>

					<description><![CDATA[<p>There was a requirement to have a search text box and a button in landing page and show OOB search result from a single document library. After doing some analysis on OOB search the following is the code which we came up with. The technique is use the query string with query items &#8220;k=query&#8221;, &#8220;cs=This [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/">Using SharePoint 2010&rsquo;s OOB search result to search in a particular library</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There was a requirement to have a search text box and a button in landing page and show OOB search result from a single document library.</p>
<p>After doing some analysis on OOB search the following is the code which we came up with.</p>
<p>The technique is use the query string with query items &#8220;k=query&#8221;, &#8220;cs=This List&#8221; &amp; &#8220;u=list&#8217;s absolute url&#8221;. Underlined items are the items which change dynamically.</p>
<blockquote><p>http://server/sites/site/_layouts/OSSSearchResults.aspx?k=MyQuery&amp;cs=This List&amp;u=http://server/sites/site/MyLibrary</p></blockquote>
<pre class="lang:default decode:true">&lt;div&gt;
    &lt;script type="text/javascript"&gt;
        function Search() {
            var libraryName = 'Library'; //Library Name            
            var url = window.location.protocol + "//" + window.location.host + _spPageContextInfo.siteServerRelativeUrl; //http://server/sites/&lt;sitecollection&gt; orhttp://server/sites/&lt;sitecollection&gt;/site
            var searchUrl = url + '/_layouts/OSSSearchResults.aspx';

            var queryText = document.getElementById('querybox').value;
            var queryUrl = searchUrl + '?k=' + queryText + '&amp;cs=This List&amp;u=' + url + '/' + libraryName; //http://server/sites/&lt;sitecollection&gt;/_layouts/OSSSearchResults.aspx?k=&lt;Query from input box&gt;&amp;cs=This List&amp;u=http://server/sites/&lt;site&gt;/&lt;Library Name&gt;

            window.navigate(queryUrl);
            //alert(queryUrl);
        }            
    &lt;/script&gt;
    &lt;input id="querybox" name="querybox" /&gt;
    &lt;input onclick="Search()" name="SearchInLibrary" value="Search In Adapter Document Library" type="button" /&gt;
&lt;/div&gt;</pre>
<p>The post <a href="https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/">Using SharePoint 2010&rsquo;s OOB search result to search in a particular library</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/using-sharepoint-2010s-oob-search-result-to-search-in-a-particular-library/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The HTTP request is unauthorized with client authentication scheme &#8216;Ntlm&#8217;. The authentication header received from the server was &#8216;NTLM&#8217;</title>
		<link>https://blog.binarybits.net/the-http-request-is-unauthorized-with-client-authentication-scheme-ntlm-the-authentication-header-received-from-the-server-was-ntlm/</link>
					<comments>https://blog.binarybits.net/the-http-request-is-unauthorized-with-client-authentication-scheme-ntlm-the-authentication-header-received-from-the-server-was-ntlm/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Sat, 04 Aug 2012 07:31:01 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[HTTP 401]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Unauthorized]]></category>
		<category><![CDATA[Webservice]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=243</guid>

					<description><![CDATA[<p>For one of the SharePoint implementation I was suppose to call the SharePoint 2010 ASMX service within a Custom WCF services hosted in a different server than the SharePoint 2010 host. So as usual I added the service reference (PS: The add web reference is not available in WCF solution). Then I was getting the [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/the-http-request-is-unauthorized-with-client-authentication-scheme-ntlm-the-authentication-header-received-from-the-server-was-ntlm/">The HTTP request is unauthorized with client authentication scheme &#8216;Ntlm&#8217;. The authentication header received from the server was &#8216;NTLM&#8217;</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>For one of the SharePoint implementation I was suppose to call the SharePoint 2010 ASMX service within a Custom WCF services hosted in a different server than the SharePoint 2010 host.</p>
<p>So as usual I added the service reference (PS: The add web reference is not available in WCF solution). Then I was getting the following error whenever the ASMX method was hit in the WCF.</p>
<blockquote>
<p>&quot;The HTTP request is unauthorized with client authentication scheme &#8216;Ntlm&#8217;. The authentication header received from the server was &#8216;NTLM&#8217;&quot;</p>
</blockquote>
<p>After breaking my head for few minutes, decided to hit the Google and got the solution in the source mentioned at the end.</p>
<p>So finally the code which worked is listed below.</p>
<pre lang="csharp" line="1"> 
  EndpointAddress endpoint = new EndpointAddress(new Uri(&quot;http://SharePointserver/_vti_bin/InvoiceServices.svc&quot;));

  BasicHttpBinding httpBinding = new BasicHttpBinding();

  httpBinding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;

  httpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;

  InvoiceServicesClient myClient = new InvoiceServicesClient(httpBinding, endpoint);

  myClient.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;

  //Invoke the service method here…</pre>
<p>Source: <a title="http://stackoverflow.com/questions/2608887/sharepoint-web-services-the-http-request-is-unauthorized-with-client-authenti" href="http://stackoverflow.com/questions/2608887/sharepoint-web-services-the-http-request-is-unauthorized-with-client-authenti">http://stackoverflow.com/questions/2608887/sharepoint-web-services-the-http-request-is-unauthorized-with-client-authenti</a></p>
<p>Note, in the above it might look like half of the link is missing and actually it works.</p>
<p>The post <a href="https://blog.binarybits.net/the-http-request-is-unauthorized-with-client-authentication-scheme-ntlm-the-authentication-header-received-from-the-server-was-ntlm/">The HTTP request is unauthorized with client authentication scheme &#8216;Ntlm&#8217;. The authentication header received from the server was &#8216;NTLM&#8217;</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/the-http-request-is-unauthorized-with-client-authentication-scheme-ntlm-the-authentication-header-received-from-the-server-was-ntlm/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-05-28 21:02:22 by W3 Total Cache
-->