The SharePoint Timer Service service terminated unexpectedly

One of my customer was getting “The SharePoint Timer Service service terminated unexpectedly” error. In our case because “Sharepoint Timer Service” was stopping on one machine when we try to deploy a solution it was not finishing the job. Also some timer jobs were in paused state for the problemmatic machine. There may be many reasons for…


Configuring People Picker in a one-way trust environment with powershell

You use the People Picker control to find and select users, groups, and claims when a site, list, or library owner assigns permissions in SharePoint 2013. When you have a SharePoint farm and you want to use accounts from another domain you need one-way or two-way trust between those domains. A two-way trust is not…


Different time zone for central admin

I was working for a customer issue yesterday. As you see from screenshot although the server time was 10/22/2015 9:48 A.M. timerjobs were running around 10/21/2015 8:48 P.M. The difference between server and central admin was 13 hours:) First I checked time of all servers in the farm. And all of them look same and…


Missing "Sign in as Different User" option in sharepoint 2013

If you are using this menu option in previous versions of sharepoint, there is no link for “Sign in as Different User” anymore… But there is 2 workarounds for having the same functionality; 1. Change the siteurl with yours and it will ask you for the new username and password http://siteurl/_layouts/closeConnection.aspx?loginasanotheruser=true 2. Open internet explorer…


Sharepoint 2013 Document Library Drag&Drop feature requirements

One of the coolest new feature of Sharepoint 2013 is drag&drop functionality when uploading a file from your computer to a sharepoint library. But this has some limitations. Html 5 capable browser has this feature by default so if you have internet explorer 10 you can use it by default. But if you are using…


Unable to view Sharepoint Web application General Settings

  If you try to open general settings of a web application in sharepoint and get an error “Updates are currently disallowed on GET requests. To allow updates on a GET, set the ‘AllowUnsafeUpdates’ property on SPWeb.” You can try this script from powershell. $myweb = get-spwebapplication http://nameofproblemwebapp $myweb.HttpThrottleSettings$myweb.Update()  


Failed to install the product: Drive Name:globaloserver.msi error code: 1603(0x643) error when installing sharepoint 2013

Today when installing a virtual development environment for Sharepoint 2013 I got “SharePoint Server 2013 encountered an error during setup”  error. When I checked the details of the error in error log file   I found an entry “Failed to install the product: c:\global\oserver.msi error code: 1603(0x643) error when istalling sharepoint 2013” I tried many different…


How many lines of code do i have?

I am doing code reviews from time to time to my customers. When asking how lines of code do they have generally they do not know how to find it with an easy way. Visual studio 2012 and 2010 has a cool feature called code metrics which you can use under analyze tab or just…


Secure Coding Basics

Most developers are reluctant to take the responsibility in security and assume that this is the job of web administrators and network engineers. You may have best infra in terms of security but if your developers are not writing secure code your system can easily be hacked. Security is a broad concept but I just…