<?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>My Learnings</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/anandmalli/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/anandmalli/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:47:27 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>SharePoint 2013 Preview : How to fix issue in Search Service Application?</title>
      <link>https://docs.microsoft.com/archive/blogs/anandmalli/sharepoint-2013-preview-how-to-fix-issue-in-search-service-application</link>
      <pubDate>Fri, 12 Oct 2012 03:41:46 GMT</pubDate>
      <dc:creator><![CDATA[Anand.Malli]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/anandmalli/2012/10/12/sharepoint-2013-preview-how-to-fix-issue-in-search-service-application/</guid>
      <description><![CDATA[Recently I've face some issues while creating Search Service Application in SharePoint 2013...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: verdana,geneva;">Recently I've face some issues while creating Search Service Application in SharePoint 2013 Preview.</span></p>
<p><span style="font-family: verdana,geneva;">After creation Search Service Application,&nbsp;search topology displays the following message: "Unable to retrieve topology component health states. This may be because the admin component is not up and running." When I started full crawl results, it got struck in "Starting".</span></p>
<p><span style="font-family: verdana,geneva;">ULS log shows following information:</span></p>
<p><span style="font-family: verdana,geneva;">Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance<br />Reason:&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-family: verdana,geneva;"></span></p>
<p>Failed to connect to system manager. SystemManagerLocations: net.tcp://&lt;&lt;some location&gt;&gt;<br />Technical Support Details:&nbsp;&nbsp; &nbsp;System.InvalidOperationException: Failed to connect to system manager. SystemManagerLocations: net.tcp://&lt;&lt;some location&gt;&gt; ---&gt; System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.tcp://sp13beta/E0C7FF/AdminComponent1/Management/NodeController that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</p>
<p><span style="font-family: verdana,geneva;"></span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;"></span></p>
<p><span style="font-family: verdana,geneva;"><strong>Reason behind the issue</strong>: Operation system prevents few responsible Dlls for Admin component (for search service application)&nbsp;to load.</span></p>
<p><span style="font-family: verdana,geneva;"><strong>Fix</strong>: Install this <a title="https://support.microsoft.com/kb/2567680" href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/KB 2567680" target="_blank">KB 2567680</a>&nbsp;and reboot the system.</span></p>
<p><span style="font-family: verdana,geneva;">NOTE: Rest of the prerequisites are already listed <a title="https://technet.microsoft.com/en-us/library/ee805948(v=office.15)#PrepareServers" href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/here" target="_blank">here</a>.</span></p>
<p><span style="font-family: verdana,geneva;"></span></p>
<p><span style="font-family: verdana,geneva;">Happy Coding...!!!</span></p>]]></content:encoded>
    </item>
    <item>
      <title>How To: Sign in as a different user in SharePoint 2013 Preview</title>
      <link>https://docs.microsoft.com/archive/blogs/anandmalli/how-to-sign-in-as-a-different-user-in-sharepoint-2013-preview</link>
      <pubDate>Tue, 25 Sep 2012 04:01:00 GMT</pubDate>
      <dc:creator><![CDATA[Anand.Malli]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/anandmalli/2012/09/25/how-to-sign-in-as-a-different-user-in-sharepoint-2013-preview/</guid>
      <description><![CDATA[&nbsp;
If you have started using SharePoint 2013 Preview, you might have noticed that there is no...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;">If you have started using SharePoint 2013 Preview, you might have noticed that there is no option to login as a different user.&nbsp;There is an&nbsp;option&nbsp;to sign out, but how to log back in?</span></p>
<p><span style="font-family: verdana,geneva;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/62/1134.signOut.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-62/1134.signOut.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/52/62/1134.signOut.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-52-62/1134.signOut.png" alt="" border="0" /></a></span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;">One can use the link which is available in SharePoint 2010</span></p>
<p><strong><span style="font-family: verdana,geneva;">/_layouts/closeConnection.aspx?loginasanotheruser=true</span></strong></p>
<p><span style="font-family: verdana,geneva;">It works in SharePoint 2013 Preview same as SharePoint 2010.</span></p>
<p><span style="font-family: verdana,geneva;">&nbsp;</span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;">Another&nbsp;option is to use&nbsp;"<strong>Run as</strong>" while launching your browser.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;">I believe it is a handy feature to have&nbsp;for developers or administrators to login as different user.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;">Happy Coding...!!!</span></p>]]></content:encoded>
    </item>
    <item>
      <title>How to: Get SPList based on the Internal Name from current SPWeb</title>
      <link>https://docs.microsoft.com/archive/blogs/anandmalli/how-to-get-splist-based-on-the-internal-name-from-current-spweb</link>
      <pubDate>Tue, 01 May 2012 03:23:00 GMT</pubDate>
      <dc:creator><![CDATA[Anand.Malli]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/anandmalli/2012/05/01/how-to-get-splist-based-on-the-internal-name-from-current-spweb/</guid>
      <description><![CDATA[While using JavaScript Object Model (ECMAScript) with SharePoint 2010, SP.ListCollection&nbsp;can be...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: verdana,geneva;">While using JavaScript Object Model (ECMAScript) with </span><span style="font-family: verdana,geneva;">SharePoint 2010, <a href="https://msdn.microsoft.com/en-us/library/ff410509.aspx">SP.ListCollection</a>&nbsp;</span><span style="font-family: verdana,geneva;">can be used to get <a href="https://msdn.microsoft.com/en-us/library/ff407990.aspx">SPList</a> by using </span><span style="font-family: verdana,geneva;">getById() or getByTitle(), however there is no such method to retrieve the list </span><span style="font-family: verdana,geneva;">based on the list&rsquo;s internal name. I&nbsp;found that SPList.RootFolder.Name is the </span><span style="font-family: verdana,geneva;">nearest thing to internal name which SPListItem has. </span><span style="font-family: verdana,geneva;">This will be required when site exists in different languages, </span><span style="font-family: verdana,geneva;">hence lists are having different titles. So, what we can do here is to get all </span><span style="font-family: verdana,geneva;">the lists and iterate over their rootfolder names and match with the desired </span><span style="font-family: verdana,geneva;">list internal name. In this scenario we have to invoke executeQueryAsync </span><span style="font-family: verdana,geneva;">multiple times.</span></p>
<p><span style="font-family: verdana,geneva;">Here is the code snippet:</span></p>
<p><code class="js"><br />&nbsp;var ctx;<br /> <br /> function getListByInternalName(desiredListName) {<br /> this.desireableList = undefined;<br /> this.desireableListUrlName = desiredListName;<br /> ctx = SP.ClientContext.get_current();<br /> this.web = ctx.get_web();<br /> this.lists = web.get_lists();<br /> ctx.load(this.lists);<br /> ctx.executeQueryAsync(Function.createDelegate(this, this.listsRetrievedSuccess),<br /> Function.createDelegate(this, this.listsRetrievedError));<br /> }<br /> <br /> function listsRetrievedSuccess() {<br /> this.listEnumerator = lists.getEnumerator();<br /> while (listEnumerator.moveNext()) {<br /> var list = listEnumerator.get_current();<br /> var rootFolder = list.get_rootFolder();<br /> ctx.load(rootFolder);<br /> }<br /> ctx.executeQueryAsync(Function.createDelegate(this, this.rootFoldersRetrievedSuccess),<br /> Function.createDelegate(this, this.rootFoldersRetrievedError));<br /> }<br /> <br /> function listsRetrievedError() { }<br /> <br /> function rootFoldersRetrievedSuccess() {<br /> listEnumerator.reset();<br /> while (listEnumerator.moveNext()) {<br /> var list = listEnumerator.get_current();<br /> var rootFolder = list.get_rootFolder();<br /> var name = rootFolder.get_name();<br /> if (name == desireableListUrlName) {<br /> desireableList = list;<br /> break;<br /> }<br /> }<br /> if (desireableList !== undefined) {<br /> listFoundCallback();<br /> }<br /> else {<br /> listNotFoundCallback();<br /> }<br /> }<br /> <br /> function rootFoldersRetrievedError() { }<br /> <br /> function listFoundCallback() {<br /> console.log(desireableList.get_title());<br /> }<br /> <br /> function listNotFoundCallback() {<br /> console.log("Matching list not found.");<br /> }<br /> </code></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; We can use the above function by calling like this:</p>
<p><code class="js">// list url: /MyCustomList<br /> getListByInternalName("MyCustomList");</code></p>
<p><code class="js"></code>&nbsp;</p>
<p>&nbsp;Happy Coding...!!!</p>]]></content:encoded>
    </item>
  </channel>
</rss>