SharePoint 2013

SharePoint: Specifying Content Database for new Site Collections when using Host Named Site Collections

Over the last few months I’ve been asked numerous times and I’ve seen quite a few e-mail conversations on how to work with new Host Named Site Collections (HNSC) and Content Databases. In this post I will show you how I have solved the problem using the native API hooks in SharePoint. Background Host Named Site Collections are not a new thing in SharePoint, it has been with us for quite some time, but not been extensively used due to previous limitations (and there still are some).

SharePoint 2013

SharePoint 2013 Managed Metadata field and CSOM issues in 2010-mode sites

Introduction SharePoint 2013 introduces a new model on how Site Collections are upgraded using the new Deferred Site Collection Upgrade. To keep it simple it means that SharePoint 2013 can run a Site Collection in either 2010 mode or 2013 mode, and SharePoint 2013 contains a lot of the SharePoint 2010 artifacts (JS files, Features, Site Definitions) to handle this. When you’re doing a content database attach to upgrade from 2010 to 2013, only the database schema is upgraded and not the actual sites (by default).

Windows Azure

Visual guide to Azure Access Controls Services authentication with SharePoint 2010 - part 1

A year and a half ago I posted the Visual guide to Windows Live ID authentication with SharePoint 2010 series, a post that got a tremendously amount of hits (and still gets) and tons of comments (and new ones still coming in). It showed quite a cumbersome way to Live ID enable your SharePoint 2010 Web Applications using the Microsoft Service Manager, MSM, (which works some times and some times not).

SharePoint 2010

SharePoint 2010 Central Administration Service Application Shortcut Web Part

While fiddling, developing and configuring SharePoint 2010 I use the Service Application management a lot. This requires that you go to Central Administration, click on Manage service applications and then click on the service application that you need to configure or manage. I believe that managing the service applications are one of the most common tasks for people like me (I know some of you readers gets more fired up about the monitoring and upgrade parts of CA though).

SharePoint 2010

SharePoint Mythbusting: The response header contains the current SharePoint version

I thought it was about time to bust one quite common myth in the SharePoint world (and there are lot of them!). This one in particular is interesting because it can cause you some interesting troubles, or at least some embarrassment. This is about that you can determine the current SharePoint [2010] version by checking the HTTP Response Header called MicrosoftSharePointTeamServices. So let’s bust that myth, or at least try!

SharePoint 2013

Visual guide to upgrading a SharePoint 2010 Shared Services farm to SharePoint 2013

Introduction SharePoint 2010 introduced the Service Application concept and that architecture model also includes the possibility to publish and consume service applications between farms. For instance you could have the Managed Metadata service application in one of your farms and use it in another farm. There are several interesting and valid scenarios for this and some of them include having dedicated Shared Services farms, that is a farm that’s only hosting service applications and not any content applications.

SharePoint 2010

How Claims encoding works in SharePoint 2010

I’ve seen it asked numerous times on forums and I’ve been asked over and over how to interpret the encoded claims - so here it is: a post which will show you all the secrets behind how claims are encoded in SharePoint 2010. Updates: - 2012-03-09 Added Forms Authentication info. - 2012-03-11 Updated with information about how the claim type character is generated for non-defined claims Background If you have been using previous versions of SharePoint 2007, been working with .

SharePoint 2010

Introducing the SharePoint 2010 Get-SPClaimTypeEncoding and New-SPClaimTypeEncoding cmdlets

A couple of months back, when the weather was grey and it was cold (well, it still is here in Sweden, glad I did a tour to the Riviera last week), I wrote a post about how Claims encoding works in SharePoint 2010, simply called “How Claims encoding works in SharePoint 2010". In that post I discussed how SharePoint encoded Claims from relatively long descriptive claims, containing URN’s, to a smarter and shorter format - smaller to store, faster to compare format etc.

Microsoft Office

Create SharePoint 2010 Managed Metadata with Excel 2010

Building the metadata structure in the Term Store Manager in SharePoint 2010 is not the most convenient way. I prefer working with the metadata structure and terms in an Excel document so that I can discuss the structure with colleagues and clients before implementing it. The Term Store Manager allows you to import a comma separated text file containing a Term Set. By default the Excel 2010 Save as CSV does not save in the correct format and for that I have made a Excel 2010 macro enabled template which produces the correct format.

Downloads

SharePoint 2010 Developer Dashboard configuration feature

The Developer Dashboard in SharePoint 2010 can be configured using STSADM commands, PowerShell or some coding. To easy turn the Developer Dashboard on and off I have created a Farm scoped feature that allows you to configure the Developer Dashboard from Central Administration > General Application Settings > Development Settings. The Developer Dashboard contains more configuration options than just to turn it on or off. With this feature you can configure all of the options available for the dashboard:

SharePoint 2010

Understanding the Application Addresses Refresh Job in SharePoint 2010

In this article I would like to give you some information about a very important timer job in SharePoint 2010 - the Application Addresses Refresh Job. If you do not understand what it is used for you might see some strange (to you) error messages when configuring SharePoint. Even if you’re familiar with it it might be a good idea to continue reading. Purpose of the Application Addresses Refresh Job The Application Addresses Refresh Job has one specific job to do - keep track of all available and online instances of all service application end-points.

SharePoint

Speaking at the International SharePoint Conference London 2012

In less than a month the greatest SharePoint conference on this side of the pond will take place in London - the International SharePoint Conference (ISC). The ISC is the new name for the conference held in London and previously called Best Practices Conference and Evolutions Conference. This will actually be my first year at the conference, but I always wanted to go there - and now I’m one of the speakers in the fantastic line up!

Personal

What is a Microsoft Certified Architect?

Last Friday I got the fantastic message that I had successfully passed the Microsoft Certified Architect - SharePoint 2010 (MCA) certification, something I’m really proud of - but something most of the community never ever heard of. During this weekend I’ve been pinged and messaged by a lots of people asking the question “What is a Microsoft Certified Architect?". In this post I intend to answer it as thorough as possible, including my own personal aspects of it.

SharePoint 2010

The sixth edition of the DIWUG SharePoint Magazine is out

The best free SharePoint magazine published online, the DIWUG SharePoint e-Magazine, did yesterday release their sixth edition. As usual this is a great edition with a mix of articles for every aspects of the SharePoint universe. The articles are written by SharePoint community members and the magazine is compiled and managed by Mirjam van Olst and Marianne van Wanrooij. This edition contains articles ranging from hard core Service Application federation, to SharePoint Online and Azure development to articles on how to engage your users and project teams in SharePoint.

Windows Azure

Visual guide to Azure Access Controls Services authentication with SharePoint 2010 - part 6 - Facebook integration

Another post you think! Does this guy have a life? Well, actually I do. But once you get me started , I’m hard to stop… This sixth post in the Visual guide to Azure Access Controls Services authentication with SharePoint 2010 is going to show you how to leverage some of the features that Azure ACS provides you with when using Facebook as Identity Provider. I’m going to show you how to use the Facebook Graph API and retrieve information about the user (and possible his/hers friends) - this is of interest if you’re going to build a community or something similar on top of SharePoint 2010.

Windows Azure

Visual guide to Azure Access Controls Services authentication with SharePoint 2010 - part 5 - Custom Claims

This is the fifth post in the Visual guide to Azure Access Control Services authentication with SharePoint 2010 and this time it is time to augment some claims using the Azure ACS. We’ll do this to prepare for the next exciting part. For this post I assume you have configured at least one Web Application to use Facebook login using Azure ACS - make sure that you’ve followed post 1 and post 3 and optionally post 4 thoroughly.

Security

Visual guide to Azure Access Controls Services authentication with SharePoint 2010 - Index Post

This post serves as an index for all the articles in the Visual guide to Azure Access Controls Services authentication with SharePoint 2010. This series is a set [not yet determined amount] of articles where I show you how to leverage the Azure Access Controls Services (ACS) in combination with SharePoint 2010 to make it easier for you to use identity providers such as Google ID, Windows Live ID, Facebook AuthN etc.

Security

Visual guide to Azure Access Controls Services authentication with SharePoint 2010 - part 4 - multiple web applications

Back with another promised post in the Visual guide to Azure Access Controls Services authentication with SharePoint 2010. This time I’m going to show you how to work with multiple web applications. We’re going to use the stuff we configured in part 1 (basic setup) and part 3 (Facebook setup), and hopefully we’re avoiding the problems discussed in part 2 (common problems). Scenario In this article I would like to show you how to use Azure ACS and SharePoint 2010 when we have multiple Web Applications in SharePoint.

Security

Visual guide to Azure Access Control Services authentication with SharePoint 2010 - part 3 - Facebook

Welcome back to a third post in the Visual Guide to Azure Access Control Services authentication with SharePoint 2010. In the first part I showed you how to do the basic configuration of Azure ACS and SharePoint 2010 and log in using a Google Id. The second part discussed the most common problems I’ve seen so far. In this post we’ll continue extending the ACS Relying Party to support another Identity Provider - namely Facebook!

Security

Visual guide to Azure Access Control Services authentication with SharePoint 2010 - part 2 - common problems

This is a the second part of the Visual guide to Azure Access Control Services authentication with SharePoint 2010. I hope you’ve read part 1 which showed you how to configure SharePoint 2010 to use Windows Azure Access Control Services, ACS, as the federated Identity Provider, IP. In this post I’ll go through the most common errors that you might stumble upon (most likely due to the fact that you didn’t follow part 1 thoroughly).

SharePoint 2010

Enhanced Search Migration Tool for SharePoint 2010

The SharePoint Enterprise Search Migration Tool (SMT), created by Microsoft, is a great little tool for moving/migrating search settings from one SharePoint Search Service Application to another, and even from a SharePoint 2007 SSP to a SharePoint 2010 SSA or FAST for SharePoint. The tool is available for download from the MSDN Archive - both as a binary and its source code. It is a console application that creates an XML when exporting the settings and uses the same XML when importing the settings, and it works great in a scripting environment.

SharePoint 2010

Encrypted e-mails causes corrupted Crawled Properties in SharePoint 2010 Search Service Applications

For a couple of weeks (ahem, months) I’ve been struggling with a strange Search Service Application issue. Some time back I went to check out on some Crawled Properties when making a tool to help copying settings between SSA’s (more on this tool in another post). Then I noticed that there were tons of Crawled Properties with just garbled binary data(!) as the property name. I searched like crazy for a while to find where these came from, there was nothing in the logs of any kind related to this.

Visual Studio

Visual Studio 11 Developer Preview with the new SharePoint Developer tools

Visual Studio 11 Developer Preview is now available for download für alles and it does not only include the Windows 8 stuff like the previous preview did - this one contains the thing we all want - the SharePoint Developer tools. Overall the performance of Visual Studio 11 is blazingly fast! I regret I tested it - since I will go back to 2010 tomorrow (or even tonight). They team has done a great job and included a lot of the PowerTools natively; such as the new Solution Explorer, the improved search feature etc.

SharePoint 2010

Scheduled incremental crawls suddenly stopped due to a stale Timer Service in SharePoint 2010

It is always fun to get back on site after a couple of days off work. SharePoint 2010 is like an annoying little critter, if you’re not there to cuddle with it it will do the most strange things. I currently have a support case open regarding some issues with crawled properties (I hope that will be another story to tell another day) and went into the Search Service Application admin pages in Central Admin to check some things.

Personal

Summing up the year of 2011 and embracing 2012

It’s that time of the year, when you’re thinking about what you’ve done and accomplished the last twelve months. I’ve been writing a summary for the last five years (2006, 2007, 2008, 2009 and 2010) and I always think it’s fun to look back at the year gone and do some predictions for the upcoming one. This year has been totally crazy - I’ve been enjoying my work and clients/projects at Connecta and I totally love that we have such a strong team and offering.

Security

Suddenly getting Access Denied on your SharePoint 2010 User Profile Sync

The last week I stumbled upon a really interesting new and shiny User Profile Synchronization issue - one of these things that just make your day! We had to manually initialize a full synchronization, after doing some updates to one of the user profile properties, and the user profile synchronization would not just start… Everything looked fine (on the surface) and we tried the incremental sync, which also looked like it was starting but nothing happened.

SharePoint 2010

SharePoint Online and External Data using JSONP

It was some time since I did a real blog post and I have been fiddling with a specific topic, which I’m going to write about, for quite some time now. I’ve been working an Office 365 Intranet and been doing two conferences lately where I’ve demonstrated Office 365 and Windows Azure integration. One of the challenges (and boy, there are many) of Office 365 and SharePoint Online are access to External Data or services.

Windows 7

Recap of the European SharePoint Conference 2011

Back home after a few days in Berlin for the European SharePoint Conference 2011. It was a great conference with good speakers and really nice attendees. It was three days full of sessions, expert panels, shoot-outs and SharePoint fun! Thanks to everyone who was there (especially those who came to my sessions :-) and the team behind the conference! And as always it great to meet up with the SharePoint MVP‘s, MCM’s and now even MCA’s!

SharePoint

SharePoint Conference 2011 wrap-up

I’ve now been home for about 48 hours since visiting Anaheim, California, for this years edition of the Microsoft SharePoint Conference. It has been a great week in California with colleagues, friends, clients and new acquaintances. This year, eight people from my company, Connecta, travelled over for the conference. We all had a blast with some spare time before and after the conference, which included a visit to Six Flags - Magic Mountain and a drive along the Pacific coast.

SharePoint 2010

Changes in the SharePoint 2010 Cumulative Update packaging since August 2011

A couple of days ago the SharePoint 2010 Cumulative Update for August 2011 was released. Always a good time to see some things fixed and some things break. Installing a Cumulative Update is always a risky business, and you should only install them if you any experience problems that the CU resolves and only when you thoroughly tested it. One CU to rule them all! Without going into details about the content and fixes in the August 2011 CU there is one other thing that is of real interest - and that is how MIcrosoft has changed the packaging process for the Cumulative Updates.

SharePoint 2010

Conference and presentation season - fall 2011

This fall is going to be pretty busy in terms of conferences and presentations and I’ll have my fair share. Here’s what I’ve planned for this fall, so far. Webinar: No Farm Solution in sight! On Tuesday the 6th of September I will do a webinar discussing SharePoint Online and Office 365 and how you can build solutions using SharePoint Online, Silverlight, Windows Azure and more without creating any farm solutions:

SharePoint 2010

Yet another object to dispose correctly in SharePoint 2010 - SPUserSolution

If you’ve been in the SharePoint business for a while (at least a couple of days) you should be aware of the SharePoint objects that needs to be properly disposed; SPSite and SPWeb in particular. Objects that need disposal inherits from the IDisposable interface and requires that you call the Dispose() method when you’re done with the object - this is to ensure that the object frees up resources that the .

Personal

I'm on the SharePoint Pod Show talking about Web Parts

The 65th SharePoint Pod Show is out featuring…tada…me :-) The SharePoint Pod Show is THE podcast about SharePoint and is done by Rob Foster, Nick Swan and Brett Lonsdale and has featured a lot of great SharePointers from all around the world throughout the years. If you haven’t already listened to the podcasts, then you got 65 episodes to catch up on! There are some epic ones, such as my favorite one #50 - which is about performance tuning.

SharePoint 2010

Improve performance of your SharePoint 2010 applications using Windows Server AppFabric caching

Besides SharePoint my very dear topics is performance optimizations and new technologies, so here’s a post mixing all these together. Background Caching is one way to improve the performance of any application, there are several ways to do it in-memory, disk etc etc. SharePoint 2010 has a set of caching capabilities, most of them are in-memory caches and some involve disk or even SQL based. One problem with (especially) in-memory caching is that if you have a farm different servers may display different results, which is due to the fact that the different servers cached information at different times.

SharePoint 2010

Stale Managed Metadata Databases in SharePoint 2010

This is a short story about how you can get and resolve stale Managed Metadata Service (MMS) databases in SharePoint 2010. I’ve been working with Managed Metadata quite much and done some backup/restore juggling from production to test and to dev environments. Which by the way works really smooth. I’ve also recreated the MMS databases a couple of times. After applying Service Pack and the re-released June 2011 CU I went into Central Administration to take a look at the databases and their upgrade status.

Web Parts

Deploying Web Parts Farm-wide using the WebPartAdderExtension element in SharePoint 2010

Here goes another post using the WebPartAdderExtension Element. I previously wrote an introduction to custom Web Part Gallery sources and a second one on how to enhance the end-user experience when adding new Web Parts. Now I’m going to show you another trick that this technique can be used for. Introduction Deploying Web Parts are normally done by using the Module element in the Elements manifest and using that element uploading/deploying Web Part Controls Description files (.

Web Parts

Improve the experience using Modal Dialogs when adding Web Parts in SharePoint 2010

This is a follow-up post on yesterdays introduction to the WebPartAdder (which lately has been one of my favorite features of SharePoint 2010). In that post I mentioned that you could invoke a JavaScript function when a Web Part is added using a custom Web Part Gallery source. The Silverlight Web Part If you have been working with SharePoint as an end-user you’ve probably seen the nice modal dialog that pops up when you’re adding a Silverlight Web Part to a page, see the image to the right.

Web Parts

Dynamically populate the Web Part Gallery using the WebPartAdder in SharePoint 2010

Writing this post has been on my agenda for some time, initially I intended to put it into my SharePoint 2010 Web Parts in Action book, but there was not enough time, you know how it is! This is an excellent new feature to SharePoint 2010 which allows you to dynamically populate the Web Part Gallery with Categories and Web Parts. So here we go. Introduction to the Web Part Adder and the Web Part Gallery Think of the List and Libraries category in the Web Part Gallery - it is dynamically populated with the lists and libraries available in the current web.

SQL Server

The SharePoint 2010 4TB content database limit fine prints - just a warning!

I guess by now we all seen or read about the new SharePoint 2010 guidance on scaling limits announced by the product group today. To sum it up it this is the new guidance on content database sizing: up to 200GB - still the recommendation 200GB to 4TB - yes, it’s been done and can be done (with the help of a skilled professional architect :-) 4TB or more - only for near read-only “record centers” with very sparse writing This looks good right, and it can be in some cases.

SharePoint 2010

Service Pack 1 for SharePoint 2010 is here

About a year has passed since SharePoint 2010 RTM:ed and now the first Service Pack is released, Service Pack 1. A Service Pack is always a big deal for SharePoint. Service Packs contains all the previous cumulative updates and in most cases some new features. SP1 for SharePoint 2010 is all that. Before diving into some of the new stuff I want to raise a finger of warning. Plan and test your SP1 upgrade thoroughly!

SharePoint 2010

Give your SharePoint 2010 custom Application Proxy Groups pretty names

SharePoint 2010 allows you to configure your Service Application in Application Proxy Groups. By default all Service Applications ends up in the Default Proxy Group, named default. This Proxy Group is used by all Web Applications unless otherwise specified. Sometimes there is need to create specific Proxy Groups for different Web Applications, the reasons may vary but often it is a result of having different service offerings. For instance you would like to have different Managed Metadata Service Applications for different Web Applications.

SharePoint 2010

You cannot create property based search scopes in Office 365 (SharePoint Online)

Post is updated, see comments at the end of the post. We’re really getting close to the go live of Office 365 and I am, and I guess a lot of you are as well, preparing to launch a couple of Intranets and sites. As you know by now there are some major differences between SharePoint 2010 on-premise and SharePoint Online in Office 365. And there are also some more subtle ones that jumps up right in your face.

Personal

Microsoft Certified Master - SharePoint 2010, thoughts and reflections

Now with the Microsoft Certified Master course two and a half weeks behind me and the great news that I accomplished all the exams, and might call myself a Microsoft Certified Master for SharePoint 2010, only a few days old I thought I should write something about the program, experience and value of it. Recent blog posts about the Microsoft certification programs also put some extra fuel onto the urge of writing about it.

SharePoint 2010

How to do active authentication to Office 365 and SharePoint Online

This is a post detailing how you perform active authentication to SharePoint Online in Office 365. Active authentication is required when you need to authenticate in code to programmatically access SharePoint objects, using for instance Client Object Model, web services or WebDAV from outside of Office 365. When you are “in” SharePoint Online or using the web browser this is not needed since you are either already authenticated and the web browser handles the authentication using active authentication.

SharePoint 2010

Speaking at the European SharePoint Conference in October

I’m proud to announce that I have been selected to speak at the European SharePoint Conference, held in Berlin 17-20 October 2011. This is the largest SharePoint conference in Europe this year and there are plenty of good speakers and sessions, so get your seat while they still are available. I will have two sessions: Integrating Office 365 and Windows Azure - Tuesday, 18th at 11:15 This session focuses on how to extend Office 365 using Windows Azure.

Visual Studio

CKSDev version 2.0 is released - includes Contextual Web Part SPI

The by far best utility for SharePoint 2010 developers is the CKSDev extension (Community Kit for SharePoint - Developer extensions). It’s an extension to Visual Studio 2010, available through the built-in Extension Manager. To install it, just hit Tools > Extension Manager and then search for “CKSDEV” in the Online Gallery. Version 2.0 of CKSDev was released yesterday, and if you already have it installed you should have been notified about the update.

SharePoint 2010

Get rid of the annoying SPAN tags in SharePoint 2010 pages

For quite some time I’ve been pretty annoyed (and that’s an understatement) of the strange span-tags generated by the output of pages in SharePoint 2010. Not only are they annoying they also make the markup invalid, since the span tags are omitted after the closing html tag (duh!). So in order to get to the bottom of this I decided to face my fears and entered debugging mode. It only took me a few minutes to find out what was going wrong, and I didn’t even have to step (almost) through any SharePoint code to find it out.

Personal

Happy Birthday SharePoint - 10 amazing years!

Earlier today Jeff Teper, Microsoft Corporate Vice President, wrote about the 10th birthday of SharePoint. This post made me lean back and close my eyes for a while and think back of what has happened during the last decade - and it is a lot of stuff! And I’ve playing with SharePoint more or less since then! The SharePoint story for me started back in 2000. I was running my own company, iBizkit, and we built a “SharePoint like” Intranet portal product.

SharePoint 2010

Understand Top Browser statistics in SharePoint 2010 Web Analytics

The Web Analytics feature in SharePoint 2010 is a great new addition and allows you to get some insights on how your users behave whether it’s an Intranet, Extranet or a public facing web site. One of the reports is called Top Browsers and shows which web browser that the users are using to access the site. For a public facing web site this report might make sense but for an Intranet the results may cause you a headache if you do not understand how to interpret the data.

Windows Azure

Presentations and code for Office 365 and Windows Azure sessions from TechDays 2011

Back in the saddle from another TechDays event here in Sweden. This year it was all about the cloud! It was as always a great show and an awesome party. Thank you Microsoft, all presenters, all attendees and sponsors. I did two sessions - or actually one session divided into two segments about Office 365 and Windows Azure. I tried to squeeze in as much cloud technology as I could in a one big demo.

Microsoft

Presenting at TechDays 2011 Sweden on Office 365 and Windows Azure

In less than a week Sweden’s largest Microsoft conference will take place in Örebro - TechDays 2011, same place as last year. The conference is already fully booked with 1.700 participants, but there’s a waiting list! The theme of the conference is “The Cloud Story”. This year I will do two sessions, or rather one long sessions split into two parts on Office 365 + Windows Azure. This will be over two hours full of great demoes and information.

SharePoint 2010

Calling a WCF Service using jQuery in SharePoint - the correct way

Today an article was published on the SharePoint Developer Team Blog called Calling a WCF Service using jQuery. The content and purpose of the article is good and interesting but the way it is implemented can not be considered best practice and is definitely not the way we (I) teach SharePoint 2010 development. For instance this article manually registers assemblies in the Global Assembly Cache! Something that we never should do!

SharePoint 2010

About the Customer Experience Improvement Program in SharePoint 2010

The other day I was setting up another SharePoint 2010 farm and got the usual question to participate in the Customer Experience Improvement Program (CEIP). As always I bailed out of this. Why? Sending information to a third party about my SharePoint farm doesn’t appeal me, even if it’s Microsoft. You know, they might check how I configure my farm, how I use it etc., and then sit back and laugh at me.

Scripting

Working with URLs in SharePoint 2010 JavaScripts

The SharePoint 2010 user interface relies heavily on JavaScripts, just take a look at the Ribbon which is completely generated by a bunch of JavaScripts. Often customizations of SharePoint also involve JavaScripts. You need it to open modal dialogs, add notifications, create Ribbon Page Components etc. etc.. JavaScript is just one of the programming languages you must know as a SharePoint developer - and you can do amazing stuff with it (just take a look at SPServices by Marc D Anderson).

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 8 - The Spinner Control

Back again (sorry about the delay) with a new part in the SharePoint 2010 Ribbon Controls series (all parts available here). This time I’m going to show you an interesting control - the Spinner control. What is a Spinner control? The spinner is an up/down (increase/decrease) control with some smart abilities to handle different units. For instance it is used when setting image and table sizes in the default ribbon. The Spinner control has a value (number) and a unit (pixel, percent, points etc.

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 7 - The ToggleButton control

Back with another SharePoint 2010 Server Ribbon Controls post, this time a shorter one, compared to previous posts. We’ll take a look at the ToggleButton control. I know I said I’m going to talk about the DropDown in this post, but I’d reconsidered and take the easy ones first - since the DropDown control will be divided into several posts. What is a ToggleButton control? The ToggleButton control is very similar in behavior to the Button control with the difference that you can toggle the state of the button; it can either be on or off.

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 6 - The CheckBox control

Welcome back to part 6 of my SharePoint 2010 Ribbon Controls series (full series index can be found here). This time we’ll take a look at the CheckBox control. What is the CheckBox control? If you’ve not been hiding under a rock you should now what a CheckBox is - it’s a box you can check. It can have two states - checked or not checked. Sample CheckBox control A CheckBox can look like this when implemented in the Ribbon:

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 5 - The Button control

Now it’s time for the SharePoint 2010 Ribbon Button Control in the Ribbon Control series (full series index can be found here), What is the Button control? The Button control needs no further description - it’s a button on which the users can click to execute commands. Buttons can exist alone or in menus (which will be covered later in the series). Sample Button control A Button control could be implemented as follows:

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 4 - The TextBox Control

Welcome back to another post in the SharePoint 2010 Ribbon Controls series (full series index available here). Now it is time to introduce the TextBox control, which can be used to allow users to enter text information in your Ribbon customzations. What is the TextBox control? If you’re familiar with .NET development (WinForms or ASP.NET) then you already know what a TextBox is. It allows your users to enter and change text.

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 3 - The Label Control

The first control in the SharePoint 2010 Ribbon Controls series (full series index available here) will be about the Label control. What is the Label control? The Label control is a simple control that allows you to add a Label to any of your Ribbon groups. Labels are most often used in combination with other controls such as text boxes and drop downs. You can using a label target another control so that if you click on the label then the other control gets focus.

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 2 - Common Control Properties

This first real post in the SharePoint 2010 Ribbon Controls series (full series index available here) will be about some of the common properties that most or all of the Ribbon controls shares. I assume that you have some basic knowledge of SharePoint 2010 Ribbon customization, if not check out one of my previous posts. What is a Ribbon control? A SharePoint 2010 Ribbon Control is the interactive parts of the Ribbon.

SharePoint 2010

SharePoint 2010 Ribbon Controls - Part 1 - Summary

Welcome to 2011, this will for sure be an exciting year! I thought I start this year off with a series of blog posts about the different controls that can be used in the SharePoint 2010 Ribbon. Hopefully a bit better than the current MSDN documentation. The series will discuss each control that are available for usage in the SharePoint 2010 Ribbon and show you through examples and code how to use them.

Personal

Summing up the year of 2010 and embracing 2011

The time has come for me to do my summary post of 2010. This is my fifth summary post (2006, 2007, 2008 and 2009). This year has been truly amazing. Working in the SharePoint world has been so interesting and challenging with the brand new Office 2010 and SharePoint 2010 products. I have been knee-deep in SharePoint 2010 work both for my employer (Connecta) and for personal reasons (pure fun, book, learning…).

Web Parts

Understanding the SharePoint 2010 Sandbox limitations

Recent discussions I’ve been involved with and blog posts have highlighted some of the SharePoint 2010 Sandbox limitations (either as bugs or as a feature). I have also talked about this during SEF 2010 and SPCSEA 2010. While writing my book SharePoint 2010 Web Parts in Action I had the opportunity to discover these limitations early on and have learned to live with it. If you read my book you will find a lot of references to “this does not work in the Sandbox” (you’ve already ordered it huh?

SharePoint 2010

Custom Health Rule for SharePoint 2010 that checks for Debug build assemblies

Finally back in the blogging saddle, keep stacking ideas and post embryos but never time to finish them. This post is about how you create custom Health Rules for SharePoint 2010 and this health rule is of particular interest since it checks for debug build assemblies in all installed farm solutions. Health Rules Health Rules in SharePoint 2010 is a great way to make administrators aware of possible problems and issues with your farm; such as running out of disk space, living up to best practices etc.

SharePoint

About Cumulative Updates and Service Packs

Yesterday the SharePoint Team posted on their blog about a major issue with the latest Cumulative Update for SharePoint 2010 and recommending not to install it. If you have installed it you might experience major problems with User Profile services - contact Microsoft Support as soon as possible for help. So what about these Cumulative Updates? Everyone that has been in the business for some time working with products such as SharePoint and other products such as SQL Server knows that the CU’s are coming every each month or quarter.

SharePoint 2010

Southeast Asia SharePoint Conference wrap-up

I just came home from a great trip to Singapore and the Southeast Asia SharePoint conference. It has been a great adventure travelling that far and meet so many SharePoint fans, Southeast Asia is really hot. The conference has been perfectly arranged by Debbie, Randy and Steve at a great location. Thank you! A new conference in the area was announced during the closing session, and if I’m allowed I’ll gladly come back!

SharePoint 2010

SharePoint and Exchange Conference 2010 and User Group meeting wrap up

This years SharePoint and Exchange Conference, the seventh in order, took place this week. For the second year I was there as a speaker and had just as great time as last year. It is currently the largest conference in Scandinavia focusing on SharePoint and Exchange technologies and its growing for each year. Göran Husman (MVP) and Beatrice from Humandata has done an excellent job in putting this conference together and finding such good speakers; both national and international.

LiveID

Visual guide to Windows Live ID authentication with SharePoint 2010 - part 3

Here is the third part of my Visual guide to Windows Live ID authentication in SharePoint 2010. This part takes off just where we ended the last part. If you haven’t read part 1 and part 2 then make sure to read them through before continuing. Submitting site for compliance In order to get your INT site into the PROD/production environment you need to make sure that your site follows the compliance rules.

Microsoft Office

NullReferenceException when uploading multiple files in SharePoint 2010

Recently came across a really interesting bug in SharePoint 2010. It’s when you are trying to upload multiple files using the ActiveX control, where you can drag and drop files or select multiple files. I started receiving “Object reference not set to an instance of an object” exceptions from the STSUpld control. The usual Google, ahem, Bing check revealed nothing. Just that I was not alone having this problem (hence this post).

SharePoint 2010

Dissecting the SharePoint 2010 Taxonomy fields

An intense Twitter conversation initiated by Fabian about how Managed Metadata is updated in SharePoint 2010 gave me the idea to note down a few interesting bits about the Taxonomy Fields and how they work within a Site Collection. I hope/guess that Fabian will write a good post (as usual) about his findings as well. Introduction The possibility to tag documents in SharePoint is one of my favorite features and one of the reasons that I think you should move to SharePoint 2010 as soon as possible.

SharePoint 2010

SharePoint 2010 and Visio 2010: Better together - Part 3

Welcome back to the SharePoint 2010 and Visio 2010 Better together series for this third part. In part 2 I showed you how to use Visio 2010 to convert your business requirements into workflows that later could be used in SharePoint 2010, using SharePoint Designer 2010 as the man in the middle. This time I’ll show you how Visio comes into play even after you have deployed your workflows and running them in your organization.

LiveID

Visual guide to Windows Live ID authentication with SharePoint 2010 - part 2

UPDATE 2012-02-01: A new and better approach to this is detailed in a new Visual Guide - Visual guide to Azure Access Control Services authentication with SharePoint 2010. I’m back with the second part of the Visual guide to Windows Live ID authentication with SharePoint 2010 series. Part 1 was a huge success and has received a lot of feedback and hits - I hope many of you out there successfully configured your web sites and extranets.

SharePoint 2010

Sweden SharePoint User Group (SSUG), Meeting in October

Introduction After a long and well deserved vacation we’re now back with new strength! It’s time for our first SSUG meeting for the fall! Please do remember; This is a FREE event – we never have and never will charge anyone for loving SharePoint and sharing the awesomeness :-) Meeting details Let’s meet up at Microsoft HQ for our first SSUG meeting this fall! You will have the possibility to mingle around with SharePoint MVPs, folks from Microsoft and of course all our splendidly cool members!

Visual Studio

Making every site in SharePoint 2010 into a BI Center

The other day I had an interesting and great workshop with a customer about the BI features in SharePoint 2010. SharePoint Insights is one thing that really gets me going - so much great stuff can be unleashed using Excel, Visio and PerformancePoint Services. One thing that annoys me with the default settings in SharePoint 2010 is the BI Center. A BI Center does not support the “BI for everyone” mantra - that center only turns numbers and KPI fans on.

SharePoint

Join me for a chat with the SharePoint MVP Experts

Next Wednesday I will sit in the SharePoint MVP Experts panel for a Q&A session where you can ask your questions about SharePoint. The SharePoint MVP Experts Q&A chat is your opportunity to chat and get instant answers about any SharePoint related questions, including topics such as development, design, configuration and setup. There will be several SharePoint MVP’s ready to answer your questions… When? The chat will take place the 29th of September at 9AM PDT.

SharePoint 2010

SharePoint 2010 and Visio 2010 - better together - part 2

This is the second post in the SharePoint 2010 and Visio 2010 - better together series. And it is time to really check out what this great combination have to offer, and the most obvious subject to start with is that we can now use Visio to design the workflows, which then are imported to SharePoint via SharePoint Designer 2010. So let’s get started. If you ever built workflows for previous versions of SharePoint you either used SharePoint Designer 2007 or Visual Studio 2005/2008.

SharePoint 2010

Sandboxed workflow activities in SharePoint 2010

One of the really great features in SharePoint 2010 is the Sandbox, which allows the end-users to upload solutions using the web interface, instead of relying on administrators adding the solutions directly to the farm. One of the things that that can be deployed to the Sandbox is custom workflow activities. These activates can then be used by the end-users building workflows with SharePoint Designer. It is really powerful to add custom sandboxed activities and it is very easy as well!

LiveID

Visual guide to Windows Live ID authentication with SharePoint 2010 - part 1

UPDATE 2012-02-01: A new and better approach to this is detailed in a new Visual Guide - Visual guide to Azure Access Control Services authentication with SharePoint 2010. Using Windows Live ID as login provider for SharePoint is a really huge thing. It makes the scenario for public facing web sites, extranets etc. much more easier, for instance there is no need to maintain passwords and users in the same degree.

SharePoint 2010

SharePoint 2010 and Visio 2010 - better together

This is the first post in a series about SharePoint 2010 and Visio 2010 and how the two products integrate with each other. I remember when I first saw Visio many, many years ago. It was before Microsoft acquired it from Visio Corporation. It was my dad using it to make blue prints of our summer house. As most of the gadgets and software he buys he needs a helping hand, not saying he is not technical, but I tend to catch up on such stuff faster than him, so I learnt the basics.

Visual Studio

Understanding folders and namespaces in Visual Studio 2010 SharePoint Solutions, Packages and Features - part 2

This is a follow-up post to the Understanding folders and namespaces in Visual Studio 2010 SharePoint Solutions, Packages and Features (probably my longest blog post title, except this one…). In that post I discussed how folders and namespaces are handled in Visual Studio 2010 SharePoint projects. I will continue to show some details and tips on how you can affect the outcome of your project/packages. Long feature folder names As the previous post showed the features generated by Visual Studio ends up as a subfolder in the {SharePoint Root}\TEMPLATE\FEATURES folder.

SharePoint 2010

SharePoint 2010 August 2010 Cumulative Update makes User Profile Service Application inaccessible (Updated)

UPDATED 2010-10-03: Obviously the KB2276339 is not a Aug CU hotfix KB2352342 is the correct one. The second Cumulative Update (CU) is out for SharePoint 2010. It contains two hotfixes; one for Foundation and one for Server. The Foundation fix contains the really important update that should fix the problem with LINQ to SharePoint and anonymous users. You can get the fixes here: SharePoint Foundation 2010 August 2010 CU hotfix (KB2266423) SharePoint Server 2010 August 2010 CU hotfix (KB2276339) SharePoint Server 2010 August 2010 CU hotfix (KB2352342) - KB article not live yet but you can request the hotfix here.

Visual Studio

Understanding folders and namespaces in Visual Studio 2010 SharePoint Solutions, Packages and Features

Yesterday Todd Bleeker (SharePoint MVP) wrote a post about the SharePoint Project SPI‘s where he explains how SPI effectively are folders within a SharePoint solution. I thought that I should continue that discussion a bit and looking at how these folders and other things such as packages and features affects the actual deployed artifacts. Packages A package (#3 in the figure to the right) is the actual WSP file that will be created containing all your objects from your solution that will deployed to the SharePoint application servers.

Visual Studio

How to create a SharePoint 2010 application using Visual Studio 2010 LightSwitch

Visual Studio 2010 LightSwitch is a new kid on the block in the Visual Studio suburbs. Basically it is a rich client application editor for Visual Studio that allows you to develop (or should I say “click-through”) an application very easy without any programming skills at all. You can create a custom database, attach to an external data source or WCF RIA service and last but not least hook it up to SharePoint.

SharePoint 2010

Upcoming speaking engagements - Stockholm to Singapore

Summer is not yet over (at least not according to the calendar) and this autumn is already being planned and filled with some great stuff. Part from working on a great SharePoint 2010 project, waiting for the book to be ready and some other stuff I also have planned a few speaking events - which I’m really thrilled about. SharePoint and Exchange Forum 2010 Stockholm - 18th-19th October For the second consecutive year I will speak at the largest SharePoint and Exchange event in Scandinavia, arranged by my good friend and SharePoint MVP Göran Husman - the SharePoint Exchange Forum 2010 (#SEF).

SharePoint

About the SharePoint 2010 certifications

A little more than a year ago I wrote a post after finishing all four SharePoint 2007 exams called “70-640 passed! Do you really call this a certification!". I thouht the exams were to easy and did not say much about your SharePoint skills at all and I had hopes for the new SharePoint 2010 exams. I did hope that they would stop focusing on IntelliSense and API knowledge and more focus on best practices, design decisions and problem solving.

Visual Studio

Minifying custom JavaScript files in SharePoint 2010

As you know the usage of JavaScript has been more and more used in web applications over the past years for technologies such as AJAX. JavaScript can accomplish really cool stuff on the client side and make the user interface more interactive and responsive. Just take a look at SharePoint 2010 - that’s some heavy JavaScripts there (a bit to heavy IMHO). So lets assume that you are building some new cool stuff, in SharePoint of course, and why not a Page Component for a contextual Web Part.

Visual Studio

Nifty trick with Visual Studio 2010 replaceable parameters for SharePoint 2010 Web Parts

If you have been working with SharePoint 2010 development using Visual Studio 2010 you have most certainly stumbled upon the new replaceable parameters that replaces data in your solution files during the packaging process. For instance Visual Studio uses $SharePoint.Project.AssemblyFullName$ in the Web Part control description (.webpart) files and this is replaced with the assembly full name (strong name) during packaging. By default it looks like this when you create a new Web Part:

SharePoint 2010

SharePoint 2010 June 2010 Cumulative Update installation failed

I have been updating a couple of SharePoint 2010 servers and farms to the latest June 2010 Cumulative Update (CU) as well as installing a slipstreamed package. The slipstreamed install worked flawless using the same technique as with SharePoint 2007. But patching some of my servers seriously failed on both Windows Server 2008 R2 and Windows 7 with both SharePoint Foundation 2010 and SharePoint Server 2010. Here are some of my experiences of the patching.

SharePoint 2010

How to provision SharePoint 2010 Rating columns in Content Types

This post continues in the same neighborhood as yesterdays post about provisioning Managed Metadata columns. This time we take a look at the Ratings in lists (and while we’re at it check out another earlier post about how to customize the look and feel of ratings). The ratings allows anybody to rate items in lists and libraries in SharePoint 2010 Server. This is another highly usable and awesome feature tied to the Managed Metadata Service Application (MMS).

SharePoint 2010

How to provision SharePoint 2010 Managed Metadata columns

This post will show you how to provision Site Columns that uses Managed Metadata in SharePoint 2010. Managed Metadata is one of the new and exciting features of SharePoint Server 2010. It allows you to centrally manage metadata terms and keywords. Creating Managed Metadata columns using the SharePoint web interface is a simple task but the problem is that it does not allow you to move your Site Columns from one farm to another that easily.

SharePoint 2010

SharePoint 2010 Site Definition images must use the correct format

When you create a Site Definition for SharePoint 2010 you should provide an image that illustrates the Site Definition. It allows the users to separate the Site Definitions from each other, find the correct one faster and it looks quite nice! In SharePoint 2010 Silverlight is used when selecting Site Actions > New Site. This gives you a nice and fast interface to search for the correct Site Definition. The image of the Site Definition is here very prominent.

SharePoint

Status of ChartPart for SharePoint 2010

I have recently been getting quite a few requests and comments about the status of ChartPart for SharePoint - a charting Web Part that I built about a year ago and shared on Codeplex. This latest version have had more than 6.000 downloads which I think is amazing, version 1 had close to 10.000 downloads. I temporarily put this project on hold a couple of months a go, due to two major reasons; the built-in Chart Web Part in SharePoint 2010 and that I’m currently writing a book (which essentially means that I have no time at all).

SharePoint 2010

DevSum 2010 presentation about SharePoint 2010 BCS

DevSum 2010 is over two days packed with cool sessions. I had the last session of the day and conference but some brave SharePointers showed up and eagerly listened. I hope you enjoyed it and if you need some evening lecture you can download the presentation below, which was about SharePoint 2010 Composites and especially Business Component Services. DevSum 2010 had some great content from local gurus and MVPs and the Microsoft Pattern & Practices group was here and shared some valuable knowledge!

SharePoint 2010

DIWUG SharePoint eMagazine 2nd edition

The 2nd edition of the Dutch Information Worker User Group SharePoint eMagazine is out! It’s a free SharePoint magazine, focusing on SharePoint 2010. The first edition released a couple of months ago was a fantastic opening issue with awesome content and It looks like this edition is keeping up the high standard. Looking forward to the series continuing… This issue contains some really interesting content ranging from an article about WCM in SharePoint 2010 from Waldek Mastykarz, CKS:DEV from Wes Hackett and feature/solution life-cycle/versioning by Anders Rask.

SharePoint 2010

SharePoint 2010 Sandboxed Web Parts does not support file uploading

This is just a friendly reminder for you who tries to build a Sandboxed Web Part for SharePoint 2010 and trying to use the FileUpload or HtmlInputFile controls - it will not work. The uploaded files are not transferred to the sandboxed processes and cannot be used in the sandbox. The SharePoint 2010 sandbox runs in a separate process and all requests from the IIS to SharePoint are marshaled over to the User Code process.

Web Parts

Custom application pages in the SharePoint 2010 Sandbox

The Sandbox in SharePoint 2010 allows Site Collection administrators to upload solutions in their Site Collections without access to the physical server. This is a great way to open up for creativity and for each Site Collection owner to expand the functionality of their Site Collection without adventuring the stability of the SharePoint farm. Sandbox Solutions do have some limitations, for instance we cannot add new Application Pages. Application pages are normally pages added to the _layouts folder, which are located in the {SharePoint Root}\TEMPLATE\LAYOUTS physical folder on each server.

Microsoft Office

Dissecting the Office Web Apps cache in SharePoint 2010

The Office Web Apps, OWA, in SharePoint 2010 is a great way to enhance the SharePoint experience. It allows users without a decent OS or a locally installed Office client to view and edit Word, Excel, PowerPoint and OneNote documents. When you install and correctly configures Office Web Apps (yea, can be a bit of a hazzle if you like me avoid the Farm Configuration wizard) and then enable the required Site Collections feature a cache will be created.

SharePoint 2010

SharePoint 2010 user profile properties temporarily disabled

I am currently setting up SharePoint 2010 farms back and forth testing out the most optimal ways using least privileges and different configurations. The by far most complex part in the configuration is the User Profile Service Application and the User Profile Sync. Spencer Harbar have fortunately documented how to do it properly in his Rational Guide to implementing SharePoint Server 2010 User Profile Synchronization article. Following that you will likely not fail…

SharePoint 2010

Timer job changes and additions in SharePoint 2010

Timer jobs is a great feature of SharePoint to use when you need to perform background execution at regular or specific times or when you need to execute code on all or selected servers in the farm. A timer job is a persistable object deriving from the SPJobDefinition class. SharePoint 2010 has updated this class in many ways, to the better. Not only can the timer jobs be configured and monitored better through Central Administration they can also be invoked on demand.

SharePoint

Tips for doing SharePoint demos on virtual machines

It’s Friday and thought that I should share some small tips on how to make your SharePoint demonstration experience better. I assume that you have a quite powerful laptop with virtual machines running SharePoint. I used to do my demos directly in the virtual machine, in full screen mode. This requires that I have all the necessary client components installed such as Office, SharePoint Designer, the Windows Server Desktop Experience feature enabled etc.

SharePoint 2010

Plan your SharePoint 2010 Content Type Hub carefully

Currently setting up a new environment on SharePoint 2010 (which was made available for download yesterday if anyone missed that :-). One of the new features of SharePoint 2010 is to set up a Content Type Hub (which is a part of the Metadata Service Application), which is a hub for all Content Types that other Site Collections can subscribe to. That is you only need to manage your content types in one location.

SharePoint 2010

A whole lot of SharePoint 2010 guidance available - weekend reading

SharePoint 2010 is just around the corner and Microsoft is starting to release guidance and planning documents for the new and shiny version. Up until now there has been little guidance on hardware and software limits/boundaries/recommendations of SharePoint 2010 and comparisons with SharePoint 2007. But now when the release is imminent is essential to get up to speed on this. Here is a compilation of some of them that I find really interesting and will take for weekend reading.

SharePoint 2010

Create custom Rating icons for SharePoint 2010 Server

SharePoint 2010 contains functionality for rating documents and items using a classic five-star rating approach. But those starts looks a little bit like the Google stars, right? Wouldn’t it be cool to brand the rating and use custom icons like this: The solution is quite easy actually. You need to create a set of images and then set a few properties on the SPWeb object of the top-level site in the Site Collection.

SharePoint 2010

SharePoint 2010 - The Developer Tour in Sweden

The release SharePoint 2010 and Office 2010 is imminent and I can already smell them! Microsoft Sweden with André Henriksson will take a tour around our beautiful country and show all the good stuff that is coming for us developers called SharePoint 2010 - The Developer Tour. Me and my awesome MVP mate Tobias Zimmergren will help out during some stops of the tour. It’s a half day full with developer goodies that you can’t miss out on!

Personal

Upcoming engagements of spring 2010

I’d like to take the opportunity to tell you about some of my upcoming engagements this spring. SharePoint 2010 - the Developer Tour - May 17th, Stockholm A half day introduction to SharePoint 2010 development arranged by Microsoft in Stockholm. If you are new to SharePoint development or a skilled SharePoint 2007 developer you should not miss this out. Together with Microsoft we will dive into the wonderful world of the new Visual Studio 2010 SharePoint Developer Tools and SharePoint Designer 2010.

SharePoint 2010

Working with SharePoint 2010 Correlation ID in PowerShell and code

SharePoint 2010 the logging has been extended with a new Correlation ID which is unique for each request or operation. The Correlation ID makes it very easy to track down any unexpected errors since you can search for the id in the trace logs. This unique ID is also maintained between servers for instance when making a call to a service application. The SharePoint 2010 error page also shows this Correlation ID so that any end-users seeing the message can contact support and give the the Correlation ID.

SharePoint 2010

Deployment and security options of custom code in SharePoint 2010

In SharePoint 2010 there are more ways to deploy custom code than in its predecessors, the reason is the introduction of the Sandboxed solutions. There are basically now three different ways to deploy custom assemblies: Full trust solutions, aka Farm solutions - The assemblies are registered in the GAC and runs under full trust Partial trust solutions, aka Web Application solutions - The assemblies are deployed to the bin folder of a specific Web Application Sandboxed solutions, aka User code solutions - The assemblies (solutions) are deployed to the Site Collection gallery These are the basic variants of how to deploy custom assemblies.

SharePoint 2010

Confusing names of commands in SharePoint 2010

If you have been developing with SharePoint for the last few years you probably are very aware of the SPWeb and SPSite naming is a bit confusing. SPWeb is actually a site and SPSite is a site collection. It’s always fun explaining this to new SharePoint developers… In SharePoint 2010 this naming convention confusion continues and now expands to the administration of SharePoint. Let’s for example take the example when you are activating or deactivating features.

SharePoint 2010

SharePoint 2010 Web Parts in Action - book site is live

As some of you know I’m writing a book on SharePoint 2010 Web Parts development to be published by Manning Publications. I have set up a site dedicated to this book project where you can follow the progress of it. You can find the site at http://www.sharepointwebpartsinaction.com/ I am currently half way through the writing and we are closing in on the Manning MEAP program. So if you are interested in the latest news on the book head on over to the site…

Web Parts

What is new with the CssRegistration control in SharePoint 2010

The CssRegistration class (in Microsoft.SharePoint.WebControls namespace) is one of the most useful controls in SharePoint 2010. It existed in SharePoint 2007 but was fairly limited then. I thought I should guide you through why it is so useful in SharePoint 2010 and why and when you should use it. I briefly mentioned the CssRegistration control in my previous post on SharePoint 2010 themable CSS files. But first some background. Why the CssRegistration control?

Web Parts

Creating custom themable CSS files for SharePoint 2010

SharePoint 2010 has a completely rebuilt theme engine. Instead of having to modify .inf files, create folders and copy and pasting CSS files and images in the SharePoint root we can now create a theme in PowerPoint and upload it to the server. The default SharePoint CSS files are tagged with comments that tells SharePoint to substitute colors and images with the values from the theme. When you switch theme SharePoint generates a new set of CSS files and images with the result of this substation.

Visual Studio

Local SharePoint 2010 development on Windows 7 - awesome experience

I thought I should share my experience on working with SharePoint 2010 development on Windows 7. My previous posts on installing SharePoint 2007 on Vista and Windows 7 are posts that are quite popular. The downside with the “old” SharePoint version is that it was not officially supported to install it on a client machine, but SharePoint 2010 is supported for installation on Windows 7 and Windows Vista SP1 for development purposes.

Web Parts

SharePoint 2010 Wiki Pages displays the wrong content when passing Query String parameters

While I was testing building some mashups using SharePoint 2010, Web Parts and SharePoint Designer I found an interesting bug. Initial problem Here’s what I did; I set up a Wiki Content Page (the new kind of Web Part Pages) in SharePoint 2010 that was supposed to be called with Query String parameter named ID which should be used by a Web Part. Another page contained items linking to this page using different integer values for the ID query string parameter like this:

Visual Studio

SharePoint 2010 tools in Visual Studio 2010 violates basic naming conventions

The SharePoint 2010 Development Tools for Visual Studio 2010 is great and I really like the way that the project is built using the different artifacts. One thing really annoys me though and that is the way that the code is generated and named when you add items. For example if you create a project and then add a Web Part item to that project then Visual Studio will create a Web Part class with a namespace and class name like this:

Web Parts

A request to the Microsoft SharePoint Product Team

SharePoint is an amazing product and there are some fantastic opportunities to make awesome applications. It also has a great API which has had improved further in the upcoming SharePoint 2010 release. But there are several features available in the platform/API that just isn’t available to all of us, unless we sit in Redmond and are building the actual product. There are so many classes or methods that are marked internal or sealed, that I really would like to use.

SharePoint 2010

I am now an approved SharePoint 2010 Ignite instructor

A couple of weeks ago I participated in the SharePoint 2010 Ignite training and after a great, but quite hard, interview and discussion I have been approved as a SharePoint 2010 Ignite Developer trainer. I really look forward getting out there and teaching developers about all the awesome features and improvements in SharePoint 2010. If you are interested in training don’t hesitate in contacting me. Together with AddSkills I have planned for a couple of SharePoint 2010 upgrade classes this spring.

Web Parts

Creating a SharePoint 2010 Ribbon extension - part 2

This is the second post in my mini series on how to extend the SharePoint 2010 Ribbon. First post can be found here. The goal with this excersice is to extend the Editing Tools Insert tab with a smaller Insert Web Part drop-down, so we don’t have to expand the whole Web Part Gallery to insert a Web Part. In the last post we created a Visual Studio 2010 solution and added the drop-down to the correct tab in the Ribbon using the CustomAction element and some new SharePoint 2010 XML syntax.

Web Parts

Creating a SharePoint 2010 Ribbon extension - part 1

SharePoint 2010 contains numerous of improvements in the user interface and it has been built to be able to be extended. I guess that all of you have seen the Ribbon in SharePoint 2010 by now and probably even tried to add a button and fire away a Hello World JavaScript alert (it’s one of the HOLs available also). That’s quite an easy task. But doing some more advanced contextual and dynamic customizations to the Ribbon really makes you sweat!

Personal

Summing up the year of 2009 and embracing 2010

The year of 2009 is about to close and it’s time for me to summarize this year, as I’ve done for the last few years (2006, 2007 and 2008). This year has been one of the most inspiring and exciting years for me in a very long time. I have been doing so much fun stuff this year. The most significant change has been starting to work for my new employer Connecta (after nine years at basically the same employer).

SharePoint 2010

Improve your SharePoint 2010 applications with monitoring using SPMonitoredScope

SharePoint 2010 comes equipped with a set of new tools to improve the monitoring of your custom applications, there are built-in functionality to check how long your operations take, how many SQL Server calls are done etc. All this is logged and can be visualized in the Developer Dashboard. Another good thing with this is that it’s not something that just automatically is there but you can also hook yourself into the monitoring and the actual Developer Dashboard.

SharePoint 2010

Four interesting changes to the SharePoint Foundation 2010 API

Working with SharePoint 2010 is really a joy, you stumble upon great things all the time. The API has not had any revolutionary changes to be backwards compatible; but small changes here and there, both publically visible and internally, really makes the API better than before. SPListItem.SPContentTypeId To get the Content Type Id of an SPListItem you had to first get the SPContentType from the SPListItem.ContentType and then get the Id of the content type.

Visual Studio

Visual Web Parts in SharePoint 2010 cannot be Sandboxed

Visual Web Parts are a nice addition for SharePoint 2010 developers. A Visual Web Part is essentially SmartPart revisited and is one of the project types of the new SharePoint extensions for Visual Studio 2010. Sandboxing is one of the most interesting features of SharePoint 2010, especially for large scale implementations and hosting providers. The Sandboxing feature, or User Code Solution, allows you to easily upload a SharePoint feature into your farm into a special controlled environment – called a Sandbox.

SharePoint 2010

SEF 2009 Recap

SharePoint and Exchange Forum 2009 (#SEF09) is over and I’m pretty tired but really excited. Two full days, here in Stockholm, Sweden, of SharePoint 2010 information with some awesome speakers and topics. SEF09 was a great conference, about 200 participants – just about the right size to have the time to chat with a lot of people and having a good time. This year the SEF conference also was the official launch of Exchange 2010 and the first larger showing of SharePoint 2010 bits in Sweden.

SharePoint

Microsoft publishes three posters on upgrading to SharePoint 2010

Just hours before the SharePoint Conference 2009 starts in Vegas, and all information will flood out from the conference, blogs and twitter, Microsoft released three four posters that should help you in planning and updating your SharePoint 2007 installation to SharePoint 2010. Microsoft SharePoint Server 2010 Upgrade Approaches (added since original posting) Visually describes the different upgrade approaches Microsoft SharePoint Server 2010 Upgrade Planning Takes you through how to upgrade hardware and software on your servers.

SharePoint

Last Service Pack for PerformancePoint Server 2007 is out

The long awaited service pack for PerformancePoint Server 2007 is now released to the web - Service Pack 3. This is the last service pack for PerformancePoint Server since the PerformancePoint Server bits will from next week be turned into PerformancePoint Services in SharePoint 2010. Service Pack 3 is the last update to the standalone version of PerformancePoint, which was announced in January this year when Microsoft changed their BI strategy.

SharePoint

SharePoint User Group meeting 2009-09-08 recap

Last night we had a SharePoint User Group Meeting here in Stockholm, Sweden. It was a great evening with a lot of attendees, thank you all for showing up. It’s always fun to see new and old faces, sorry I didn’t have time to talk so much with you (due to my VM’s crashing just before my demos…). First, a big thanks to KnowIT and Jonas who provided us with a great place to host the meeting and some good food and beer!

SharePoint

Developers, prepare for the 64-bit revolution

The day has come when Microsoft officially started to talk about the next version of Office 2010 clients and SharePoint Server 2010 (no longer Office SharePoint Server). We have since some time known that SharePoint 2010 will be supported only on a 64-bit platform, just as Exchange 2007. The new stuff revealed yesterday (as preliminary) are that not only is 64-bit required, it will only be supported on the Windows Server 2008 64-bit platform (including R2) and it will require that you have SQL Server 2008 on a 64-bit platform.