Tuesday, August 25, 2015

SharePoint : Access Denied when crawling mysites

Error Message: Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled.

Solution 1: Add backconnection host names in the registry

under HKLM\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
Add a Multi-String Value with name "BackConnectionHostNames".
Add the host names for the sites that are on the local server.

Solution 2: Disable loop-back check on the server  ( or add host name to

Under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa"
Create a new 32bit DWORD value "DisableLoopbackCheck" with value as 1

Solution 3: Give your content access account "Retrieve People Data for Search Crawlers" permission on the user profile service application.

Solution 3 : Verify that the search content access account has full read permissions on the web-application. 

SharePoint 2013 web application authentication fails

Error: SharePoint 2013 web application authentication fails, prompts for credentials 3 times and displays blank page.

Kernel Mode Authentication is not supported in SharePoint Products. I would suggest turning this off. If you want this enabled, there is a workaround s - https://technet.microsoft.com/library/dd573004(office.13).aspx 

Change the ApplicationHost.config file to have the bit
<windowsauthentication enabled="true" useapppoolcredentials="true">< /windowsauthentication>

Saturday, August 22, 2015

Tips for writing or enhancing formal documents : From my personal observations

Tips for writing or enhancing formal documents : From my personal observations.

Certain words are used more commonly in speaking where the body language of the speaker assists in conveying the real intention of the words usage. A tip would be write as you normally would and check for such common words and see if it is the right word for the sentence.

I have pointed out a few examples below. 

Good: Check if the word good accurately describe the situation that you are trying to convey. It is common to use the term good, but it might not have the accuracy in conveying the message. E.g. with good training you might have meant that the training was intensive of fast paced or effective or thorough, however the reader will not get the same meaning. 

Small: Similar to the word good above.

Also:  Is a word used a lot in certain demography while speaking. Check if this word is really necessary in the sentence. 

The:  Is a word used a lot in certain demography while speaking. Check if this word is really necessary in the sentence.

Helping / assisting: e.g. I received some assistance in the work. Here since the writer was the one who was involved in the work, he/she knows the type of assistance received however the reader could take it in either way.  You could have received assistance in terms of guidance or effort. By guidance I mean how to do the work. By effort I mean since there was lot of work you received another helping hand and you probably even provided guidance to the helper in getting the task completed.

The same: Used a lot in India instead of "the (item, etc.) described above"


Some of the words are more due to usage differences in different cultures. E.g. The term company a lot in India instead of employer which is a more common and accepted usage in Australia.  

This is also evident sometimes in the way some ideas are written. Some cultures are not used to writing in a definitive way. One example is “I hope this experience gave me an insight into…” whereas the intention was to convey “This experience gave me an insight into…” the former sometimes written in a way of saying that I have the knowledge in a modest way. It is advised to be definitive in terms of what you are conveying. A yes, no or don’t know. 

Feel free to add your comments in case you have observed similar words or phrases and I can add to the list.

Friday, August 21, 2015

SharePoint : Failed to load dependency assembly

A windows update broke search in SharePoint.

We could not resolve the error in the server. We have to recreate search service in a new server.
You are luck if your search topology has redundancy.

Errors in ULS:

AssemblyReflector : Failed to load dependency assembly in load context and in load from context. Assembly: BihConsumerInterop System.IO.FileNotFoundException: Unable to find the specified file.

Errors in Process Monitor

HKU\S-1-5-21-494056553-2953882651-1462924595-7389\Software\Microsoft\.NETFramework NAME NOT FOUND
HKU\S-1-5-21-494056553-2953882651-1462924595-7718_Classes\CLSID\{BDEADF26-C265-11D0-BCED-00A0C90AB50F}\InprocServer32 NAME NOT FOUND

HKLM\SOFTWARE\Microsoft\.NETFramework\JitLockWrite NAME NOT FOUND

SharePoint 2013 : Error while accessing MySite after changing MySite URL

Error while accessing MySite after changing MySite URL.

Solution :
Verify permissions on mysite service application for the account used to change the URL.
Re enable the service connection to the webapplication.

ULS Error:

Exception occurred loading user profile (/default.aspx): Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.GetRawPartitionID has null proxy  
 at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.GetRawPartitionID(SPServiceContext serviceContext)  
 at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.get_CurrentPartitionId()  
 at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.OnInit(EventArgs e).

Friday, August 14, 2015

SharePoint : Workflow stuck at a stage, on a list with unique permissions

In SharePoint 2013, workflow runs with the users permissions unless it has an app step with elevated permissions. If your list has unique permissions, ensure that your workflow history list and task list have write permissions for the user.

Another item to check for are steps in the workflow where the user do not have permissions to do. One instance is if the user has no delete access on the list but there is a step in the workflow to delete an item in the list.  This was not an issue in SharePoint 2010 as the workflow was running as system account.

Also, do not make your workflow to depend on or read the last modified date on the item. Because the workflow will change it.

Thursday, August 6, 2015

SharePoint 2013 : Access Denied while attempting to restore site collection

$webApp = Get-SPWebApplication -identity "webapplicationURL"