Symptons: You get stopped-extension-dll-exceptions in MIIS client while running full or incremental user profile sync. Fix: This problem arises from user profiles that have URL in PictureURL field, but the picture is not accessible. You can fix this issue by…
Export Dll’s from GAC using SUBST command
The SUBST command allows you to create a shortcut to a path on your file system and assigns that shortcut a drive letter. I really like this approach because you have the option of using Windows Explorer without having to…
SharePoint Development Tools – Part 2
Applications SysInternals Suite Suite of troubleshooting utilities FiddlerWeb Debugging Proxy Notepad ++Notepad with steroids ILSpyOpen-source .NET assembly browser \ decompiler ULS ViewerULSViewer allows users to open a ULS log file and display its contents in a user friendly…
How to see actual exceptions or errors in SharePoint instead of Unknown errors message
When an exception comes in SharePoint environment usually the page we see is Unknown error, nothing else. To see the actual exception details follow the steps below. Go to the location where your SharePoint application is present in the file…
Auto fill SharePoint person field with default logged in user
Addd a Content Editor Web Part to the New Form page. To do this, add the following to the end of the new form url: ?ToolPaneView=2 You will then be able to add web parts to the page. Add the…
Sorting SharePoint 2010 SPFolders and SPFiles
Sort SP Folders // folder is some SPFolder, e.g. SPList.RootFolder List spFolders = folder.SubFolders.Cast().ToList(); spFolders.Sort((f1, f2) => f1.Name.CompareTo(f2.Name)); foreach (SPFolder subFolder in spFolders) { // Your code here } Sort SP Files // folder is some SPFolder, e.g. SPList.RootFolder List…
Configuring the SharePoint 2013 Managed Metadata service for Navigation
http://www.toddklindt.com/blog/Lists/Posts/ViewPost.aspx?ID=354
SharePoint Powershell to backup web.config with date time stamp
param( [string] $fileName) $location=$filename-replace “web.config$”,”” if (-not(Test-Path $fileName)) {break} “Original filename: $fileName” $fileObj = get-item $fileName $DateStamp = get-date -uformat “%Y-%m-%d@%H-%M-%S” $extOnly = $fileObj.extension if ($extOnly.length -eq 0) { $nameOnly = $fileObj.Name $con=”._copy” copy “$fileObj” “$fileObj$con” rename-item “$fileObj$con” “$location$nameOnly-$DateStamp” }…
Powershell command to get Service Application Pools
Get-SPServiceApplicationPool
Powershell command to Get machines in the farm
Write-Host “Servers in the farm:” Get-SPServer | select name, role