Archive | July 2014

XML view of Core Results Web Part

Remove the current xslt of web part and add below xslt.


<?xml version=”1.0″ encoding=”UTF-8″?>
<xsl:stylesheet version=”1.0″ xmlns:xsl=””&gt;
<xsl:output method=”xml” version=”1.0″ encoding=”UTF-8″ indent=”yes”/>
<xsl:template match=”/”>
<xmp><xsl:copy-of select=”*”/></xmp>


some or all identity references could not be translated Error

To resolve this error “Some or all identity references could not be translated” Follow below steps.


  1. Use Get-SPServiceApplicationPool command to view all app pool accounts.
  2. Change the required app pool account using below command.

Get-SPServiceApplicationPool -Identity “SecurityTokenServiceApplicationPool” | Set-SPServiceApplicationPool -Account domain\newaccount

  1. Remove managed account using

Get-SPManagedAccount -identity “domain\oldaccount” |Remove-SPManagedAccount


If there is any service left and can’t delete account, use below commands in order.


function Set-ServiceIdentity($svc, $username)


$pi = $svc.Service.ProcessIdentity

$pi.CurrentIdentityType = “SpecificUser”

if ($pi.Username -ne $username) {

$pi.Username = $username





Change service name of below command appropriately.

$svc = Get-SPServiceInstance | Where-Object {$_.TypeName -eq ‘Web Analytics Data Processing Service’}


Set-ServiceIdentity $svc “domain\newaccount”



Deploy REST (JSON) WCF Service in IIS 7

Below steps can be valid if your WCF REST Service is working in Visual Studio development server and not in IIS.

If you configured IIS after installing visual studio execute below command and register .NET Framework 4 in IIS.

C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i

Then check whether the App Pool of the web app is running with .NET Framework 4.