“Updates are currently disabled in GET requests” exception while provisioning multiple site collections

Scenario: Recently i was working with creating site provisioning in SharePoint 2010. For that I have a list where user submits the request for the site that needs to be created (along with some required metadata). Then I have scheduled the timer job that picks up items from that list (based on the status), iterates through the items and provisions the site. Here is the method in Timer Job that iterates through the items and creates site collections. public static … Continue reading

Invalid viewstate Error in a Custom master page

When adding a new master page and moving around the delegate control with control id “SmallSearchInputBox” then you can experience an error that will appear either when editing columns or adding new workflows to your library or list. The Error will be something like this: “System.Web.UI.ViewStateException: Invalid viewstate.    Client IP: fe80::c07f:6fa4:e122:c0ef%11   Port: 1250   User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)   ViewState: /wEWCAKb9uO+DgKyx+vACgLNsInWBALjvdeFDwLWo p/GDwKMoP7ICwLU2oa9DQKizt7UDUIZl5wTN 95E6rz74k/p8OiMR4oZ   Referer: http://[servername]/_layouts/AddWrkfl.aspx?List={FC0 22FA4-C4A2-42C2-AC01-8C1F97C22534}   Path: /_layouts/CstWrkflIP.aspx” The reason … Continue reading

Incorrect values for User Fields while copying list items from one site collection to another

Scenario Recently, I was writting a piece of code to copy list item from a list in one site collection to the list in another site collection. I did the shallow copy (copying field by field). Both the lists were created using same List definition so they had same fields and content types etc. The item was successfully copied but then I noticed that the values of user fields were not correct. Here is the pice of code that i used … Continue reading

Auto-generate fileversion for all projects in a solution with T4

When developing software you often have the need to centrally manage some assembly attributes like the file version for multiple Visual Studio projects at the same time. The nice and easy approach I describe in this article allows you to do exactly that with almost no effort by utilizing the Text Template Transformation Toolkit (T4). T4 is built into Visual Studio since version 2005 but in my opinion it is one of the best hidden gems in Visual Studio. It helps you … Continue reading

Creating loosely coupled and generic process steps implementation

Recently, during one of the SharePoint implementations we came across the requirement to build the workflow for site provisioning engine that we are developing. One of the requirements of the process is to rollback everything that we create/modify if there is any problem/exception during the process. So for example, if we created the site collection and then in the next step process failed at setting up custom permissions, the process should be roll backed to the initial stage. Normally, this … Continue reading

What skills make a good SharePoint front-end developer ?

A front-end developer. In SharePoint. Doesn’t sound too hard. – Yea, right. Front-end development in SharePoint is not like building stuff in other WCM systems or publishing engines. This is a product that has evolved over a long time and was not ment to be like its competitors from the beginning. It is so much more than a public facing site or an intranet. It can do so much more than Word Press or Drupal. That’s why it’s so hard to … Continue reading

SharePoint Code Analysis Framework BETA released!

Finally Torsten Mandelkow and I published the SharePoint Code Analysis Framework (SPCAF) as the first public beta release. Get it here as BETA. The SharePoint Code Analysis Framework (SPCAF) provides tools to analyze SharePoint code. This includes SharePoint solutions (.wsp) for SharePoint 2007 / 2010 / 2013 SharePoint 2013 apps SPCAF cannot only analyze assemblies like other tools as FxCop or SPDisposeCheck. It can also analyze all the XML code in SharePoint packages like Features, ContentTypes, ListTemplates and all the other files like controls (.ascx), pages (.aspx) and master pages (.master) … Continue reading

Designing SharePoint – Best Practices

You will be creating a design for a company which will be used in a new modern intranet and it will include at least MySite, Search, Publishing and Collaboration sites. The company will not settle for anything but having their digital identity all across the application. What should be your approach when creating the design for this company in a way that they want? Creating the design When creating a design for SharePoint you have to take the customer needs under … Continue reading

How to update projects to the current SPSF version/enable SPSF on existing projects?

This post is part of a series which shows how you get the most out of SPSF. How to install SPSF? How to use the SharePoint Software Factory? How to update projects to the current SPSF version/enable SPSF on existing projects? (this post) How to (re-)activate SPSF on existing projects? Introduction After installing a new version of the SharePoint Software Factory it is recommended to update the Visual Studio projects which have been created with an earlier version in order to … Continue reading

How to (re-)activate SPSF on existing projects?

This post is part of a series which shows how you get the most out of SPSF. How to install SPSF? How to use the SharePoint Software Factory? How to update projects to the current SPSF version/enable SPSF on existing projects? How to (re-)activate SPSF on existing projects? (this post) Introduction In case you are adding SPSF to an existing project, or if you retrieve the solution from TFS the first time, SPSF has to be activated once. This step is required … Continue reading