SQL Access to Configuration DB required

In many cases you pass an URL string to connect to SharePoint. In my case I wanted to verify the URL by using this code: 1: Uri requestUri; 2: if (!Uri.TryCreate(absoluteUrl, UriKind.Absolute, out requestUri)) 3: throw new ArgumentException(absoluteUrl + " is no a valid URL."); 4: 5: SPWebApplication webApplication = SPWebApplication.Lookup(requestUri); And here comes the “but”. I did not know that the account, which is executing the code, needs permissions to the Configuration Database!

Cleanup your VMs from old Updates

Windows Update leaves lots of files, which you don’t need anymore. The Disk Cleanup utility lets you remove those files. Unfortunately the tool needs to be “installed” on Windows Server 2008 and 2008 R2. There is a Guide over here –> http://technet.microsoft.com/en-us/library/ff630161%28WS.10%29.aspx Instructions for Windows Server 2012 are within the comments of the linked article.

When a Feature gets installed

Have you ever thought about the Features folder and when a folder will be created for one of you features? Well, I did 🙂 Why is this relevant, anyway? To be able to activate a feature on a given scope, it has to be installed first. That’s why. Action <td valign="top"> <strong>Result</strong> </td> </tr> <tr> <td valign="top"> stsadm -o addsolution </td> <td valign="top"> The solution is added to the farm.

CKS – Dev for Visual Studio 2012 and 2013

The new release brings support for Visual Studio 2013 🙂 The CKS – Development Tools Edition for Visual Studio 2012 and 2013 is a collection of Visual Studio templates, Server Explorer extensions and tools providing accelerated SharePoint 2010/2013 development based on Microsoft’s SharePoint 2010/2013 development tools. http://visualstudiogallery.msdn.microsoft.com/cf1225b4-aa83-4282-b4c6-34feec8fc5ec?SRC=VSIDE

Activating Features after Solution Deployment via VS

Visual Studio allow a F5 Deployment. I guess you all know that. The part where you have to think carefully is, when you add Features to your project. Should you activate “Activate On Default”? Well, it depends (as always). Usually I don’t enable that setting, because features tend to be activated on scopes you won’t expect. The problem Take a WebApplication scoped feature for example. It might create SafeControl entries for your controls.

Slow DFS Crawling in SharePoint

If you are indexing you DFS with SharePoint 2007/2010, you should take a look at this hotfix http://support.microsoft.com/kb/967671. It addresses this issue “When you crawl the file shares in Microsoft Office SharePoint Server 2007 or Microsoft SharePoint Server 2010, you experience poor performance”.

SPQuery for my tasks

Developing solution with multiple languages (or a language which is not English) sometimes can be a bit painful. To configure a Webpart to display only my tasks, I would filter for [Me] or [Ich]. To achieve the same via code / CAML, you can filter by UserID and not the string “Me”. 1: <Where> 2: <Eq> 3: <FieldRef Name="AssignedTo" /> 4: <Value Type="Integer"> 5: <UserID /> 6: </Value> 7: </Eq> 8: </Where> 9: <OrderBy> 10: <FieldRef Name="

Do long running operations on SPListItem creation

Events on SPListItems like ItemAdding or ItemAdded are nothing new. Many of you have already used them. Recently I had a requirement to create a new SPSite, when an item in a list has been created. So an ItemReceiver was my choice. But the customer wants something special 🙂 During the creation process, which takes some seconds, the user should see a loading animation. Here comes the problem. The ItemEventReceiver is running in the background, and has no knowledge about the GUI process.

CKS – Dev for Visual Studio 2012

The Tools have been released for VS 2012. Great! The CKS – Development Tools Edition for Visual Studio 2012 is a collection of Visual Studio templates, Server Explorer extensions and tools providing accelerated SharePoint 2010/2013 development based on Microsoft’s SharePoint 2010/2013 development tools. The current 1.0 release includes the following features: Server Exploration from CKSDev 2010 v2.4 – Visual Studio 2012 version of the Visual Studio 2010 exploration. Includes all the existing server explorer features.

Now Available: Office Developer Tools for Visual Studio 2012

Finally! Now Available: Office Developer Tools for Visual Studio 2012 There are some points to mention, where the final release of the tools differ from previous preview releases: validation experience that helps you to find and fix common errors prior to submitting your apps to the Office Store A continuous integration workflow Windows Azure cloud service projects for creating provider-hosted Apps A dramatically improved Workflow designer The download link: http://aka.

ShareCamp und ShareConf, ich bin dabei

In diesem Jahre geht es rund mit Veranstaltungen. Nach der SharePoint Konferenz bin ich auch beim ShareCamp dabei und auf der ShareConf mit einem Vortrag dabei. Mal schauen was noch so kommt 🙂

SharePoint Konferenz im März, ich bin dabei

Im März ist wieder SharePoint Konferenz Termin. Ich werden mit zwei Vorträgen dabei sein. SharePoint 2013 und Social. Was ist neu, was kann man machen? Enterprise-Lösungen mit Business Connectivity Services Nach der BASTA 2012, BASTA Spring 2012, BASTA 2011, BASTA 2010, BASTA 2009 und den SharePoint Konferenzen 2010, 2009 ist das mein 7. Auftritt als Speaker. Cool. Es macht ja auch jedes mal aufs Neue Spaß 🙂

UserProfile Service, Managed Properties are not available

“Your search encountered an error. If the problem persists, contact the portal site administrator.” Great. That would be me 🙂 I wanted to manage some properties within the User Profile Service Application. But an error message kept me from doing so. A quick look for the running SharePoint services from the Central Administration looked ok. The UPS services is up and running. Then it hit me. Even if SharePoint tells you everything is OK, it might not be the case.