Adding Site Collection Admin in CSOM in a SharePoint 2013 App

My Microsoft Consulting Services buddy (David Weinstein) and I couldn’t find any documentation on adding a Site Collection Administrator in SharePoint 2013.  I thought I would try to remedy that. When looking at our documentation I noticed a comment stating that this doesn’t work.  At first, I thought maybe the commenter was accurate.  When first…


Why the SharePoint 2013 App Model is better than sliced bread

+ > I was responding to a post on the Apps for SharePoint forum, and it ended up being so long that I decided to make it a blog post.  If you want some additional context you can go check it out. From a SharePoint app if you want to read to and write to…


JavaScript Intellisense Issue in App for SharePoint 2013 VS Template

I found that Intellisense was not working properly in Visual Studio 2012 for a SharePoint 2013 app using the template that gets installed with the Microsoft Office Developer Tools for Visual Studio 2012 (Preview 2). These screenshots help illustrate the issue: The above screenshot shows Intellisense working correctly for the web object directly after the…


Node.js errors with WebMatrix on IIS 8 (Windows 8 RTM)

After installing Node.js to try my hand at some server side JavaScript using WebMatrix, I was getting a 500 internal server error. This is what was returned to the browser: iisnode was unable to read the configuration file. Make sure the web.config file syntax is correct. In particular, verify the  <a href=https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config>iisnode configuration section</a> matches…


Considerations for configuring application pools in SharePoint

I usually recommend my customers group similar web applications into the same application pool.  Each application pool brings additional server resources like memory.  In addition, the supported boundary for Application Pools is 10.  Let’s say we have the following web applications. http://collab http://intranet http://extranet http://paycheck I would consider the following configuration: App Pool Name: SharePoint…


Disable SharePoint 2010 list throttling at the list level

You can disable list throttling at the list level in SharePoint 2010. Note that in order to do this, you must have Farm Administrator privileges. First, this can only be done via PowerShell, SharePoint Manager, or Object Model. I will be covering the PowerShell method in this post, but here is a screen shot of…


Getting all values from a Choice field in SharePoint 2010 using JavaScript

I recently ran into an issue where I needed to get possible values for a SharePoint 2010 choice column.  Thought I would share the code in case anyone else runs across this need.  This code uses the ECMAScript Client-Side Object Model.    //Variable to hold the value once returned from SharePoint client.svc     var distinctChoices =…


Determine the edition of SharePoint Server 2007

To determine which edition of SharePoint Server 2007 is installed for the purposes of inventory, the following registry key can be interrogated.  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\OfficeServerPremium If the value is 0 then the edition is Standard.  If the value is 1 the edition is Enterprise. The screenshot below helps to illustrate this.  


Determine which SharePoint 2010 Products and SKUs are installed

To determine which SharePoint 2010 Products are installed for the purpose of inventory or conditional code logic, you can interrogate the registry. The screenshot below illustrates the keys that need to be evaluated. The following table shows a GUID to SKU mapping that can be used to determine which products and SKUs are installed. BEED1F75-C398-4447-AEF1-E66E1F0DF91E…