Category Archives: Code

VS2013 Update 1

Just after the 2 sessions on VS2013 at the DIWUG tonight we have Update 1 for VS2013 ready for download. “This is a targeted update, addressing some key areas of customer feedback since the Visual Studio 2013 release.  For example, we heard your feedback about running Visual Studio in environments without IE10+, and have made several improvements to this… Read More »

FTC to CAM: Content Types, Site Columns and declaritive XML

So, remember a while back, when SP2013 was first released and there was this TechNet Article stating something on Sandboxed Solutions being deprecated? Well that was changed soon after off course. But still Vesa “vesku” Juvonen has been posting some great articles on moving from FTC (Full Trust Code Solutions) to the new CAM (Cloud App… Read More »

MVC, SharePoint Apps and SharePointContextFilter

Visual Studio 2013, in RC now, comes with MVC App Templates for SharePoint 2013 and SharePoint Online. The MVC template gives you several different layouts. Empty all the way to some pre-configured application. The best part, with this new MVC Template comes a pair of helper classes: [SharePointContextFilterAttribute] and [SharePointContext]. “These APIs wrap a series of steps… Read More »

Announcing the SharePoint Diagnostic Studio

Bill Baer posted an announcement over at the the sharepoint blog: “In the new version of the SharePoint Administration Toolkit we’ve introduced a new and revised SharePoint Diagnostics Studio that represents a complete departure from previous diagnostics toolkits. The next generation SharePoint Diagnostics Tool, the SharePoint Diagnostics Studio, presents server diagnostic information in a visual and… Read More »

Microsoft SharePoint Online Code Analysis Framework (MSOCAF)

At Microsoft SharePoint Online, as a part of the validation and verification process, a tool is used: MSOCAF. “MSOCAF analysis executes a set of rules against the custom solutions, prior to submission for deployment approval into the pre-production and production environments. The MSOCAF application is built using an extensible framework so that the SharePoint Online… Read More »

Enterprise Search query giving FaultException when using an ORDER BY

Ran into this on a project when using the “FullTextSqlQuery” object to query against the Enterprise Search Service of SharePoint 2010. Had a query that included an Order By clause on my own Managed property other than the normal RANK.

I kept getting an exception: “System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]” The problem was my Managed Property could not… Read More »

Custom SPJobDefinition and “Access denied” error

If you create a custom SPJobDefinition and use a Feature Event Receiver to deploy and install this (Timer) SPJobDefinition you receive an error when you call the Update() method: “Access Denied” How to code and install a SPJobDefinition Paul Kotlyar found this on the subject: “Upon detailed investigation of Microsoft.SharePoint.dll  I discovered that SharePoint guys added a… Read More »

Claims Based authentication and the PublishingCache

If you are using Claims Based Authentication on your WebApplication then the Publishing Cache doesn’t work properly. Have a look into your Developer Dashboard to see what is going on: The warning and critical error are: 7362 – Warning Publishing Cache 7363 – Critical Publishing Cache Why is this? Because with Claims Based Authentication the Cache… Read More »

Powershell and SP2010 (2) – Installing a solution

After reading this blogpost: WaitForWSPJob tool by MIchel Barneveld i had an idea, in SP2010 we can use Powershell to do the waiting because we can access the OM directly.

The script will wait for any execution jobs: Download the powershell script solution.ps1 Update (newer version) : Download the powershell script solution.ps1 Some more powershell