Kirk Evans Blog

.NET From a Markup Perspective

Creating High Trust SharePoint Apps with Microsoft Office Developer Tools for Visual Studio 2012 – Preview 2

This post shows how to create a High Trust app using Microsoft Office Developer Tools for Visual Studio 2012 – Preview 2 tools. During SharePoint Conference 2012, Scott Guthrie announced the release of Microsoft Office Developer Tools for Visual Studio 2012 – Preview 2. These are the tools to add to Visual Studio 2012 to… Read more

Configuring Access Services 2013 on Premises

UPDATE: See Access Services 2013 Setup for an On-Premises Installation for updated guidance for configuring Access Services 2013 for the RTM version.   Recently I co-presented the developer track for Ignite training with Andrew Connell.  The training, developed by Critical Path, covered the new SharePoint and Office app models, workflow, BCS, and other topics.  One of the… Read more

Setting Up FBA and SQL Membership in SharePoint 2010 with PowerShell

This post provides PowerShell script to easily configure SQL FBA in SharePoint 2010. A long time ago, I wrote a blog post that shows how to configure the SQL Server Provider for FBA in SharePoint 2010.  I have been working on a project that requires me to configure FBA, and I got kind of tired… Read more

Inside the SharePoint 2010 My Site Cleanup Timer Job

This post will discuss what the SharePoint 2010 My Site Cleanup Timer Job is, what it does, and how to manage it.  If you need to implement your own cleanup process, this post will also provide building blocks for implementing your own solution to manage deleted users and My Sites. What is the My Site… Read more

Setting Object Cache Accounts in SharePoint 2010

This post will show how to set the PortalSuperUser and PortalSuperReader accounts for SharePoint 2010 using PowerShell. Background I frequently create web applications in my SharePoint 2010 environment that use Windows claims authentication.  When you specify the authentication to use claims, an important step is to set the Portal Super User and Portal Super Reader… Read more

Querying Active Directory Using Principal Extensions in System.DirectoryServices.AccountManagement

I recently had a project where I needed to query the extensionAttribute1 – extensionAttribute15 attributes for users from Active Directory.  I’ve already written about how to query Active Directory using System.DirectoryServices.DirectoryEntry.  In that post, a reader named Marc suggested I look at the new System.DirectoryServices.AccountManagement namespace, so I decided to challenge myself and create a… Read more

What Every SharePoint Admin Needs to Know About Host Named Site Collections

This post intends to tell you everything you need to know about host named site collections so that you can decide if they are appropriate for your environment.  This post is NOT telling you to run out and create everything as host named site collections in SharePoint, instead it is meant to help educate you… Read more

Updating SharePoint Managed Metadata Columns with PowerShell

This post shows how to update a field with a managed metadata term. Background As with all software projects, requirements change as soon as you deliver.  We created a huge list based on a nested folder structure. Of course, our customer thought navigating this was too cumbersome, requiring them to click through many folders.  They… Read more

Iterating Large SharePoint Lists with PowerShell

In a previous post, I wrote about creating a large list with PowerShell.  Now that the data is in SharePoint, how do you get the data back out? As a reminder, here is the structure that I created, where each “subsubfolder” contains 500 items, giving us a grand total of 50,000 items in a list… Read more

SharePoint Error 6398 – You do not have permission to run ‘SP_TRACE_CREATE’

Working with a customer, we noticed a large number of errors in the Windows Application event log for error 6398.  The errors look like: The Execute method of job definition Microsoft.SharePoint.Diagnostics.SPSqlDeadlockDiagnosticProvider (ID c020fbe2-7771-495c-95dd-ad7fb680e2e5) threw an exception. More information is included below. You do not have permission to run ‘SP_TRACE_CREATE’. and The Execute method of job… Read more