SharePoint & SQL Thoughts

March 2012 Entries

Drag & Drop Web Parts in SharePoint 2010

One of the things that I’ve heard people complain over the years after the release of SharePoint 2010 is the disappearance of Drag & Drop web parts capability. This feature was useful because it allowed the page designer to add as many web parts on a page without having to click add and repeating the process all over again.

This feature is available on SharePoint 2010 with a little manipulation of the site URL of the page that you want to modify by adding the “?toolpaneview=2”

If your URL is http://sharepoint_portal/pages/default.aspx, replace it with http://sharepoint_portal/pages/?toolpaneview=2

By making this small change, the “Add Web Parts” zone is displayed on the right hand side of the page similar to what was available in SharePoint 2007 and WSS 3.0 and from here on you can happily drag and drop. v

The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service

Recently a colleague of mine encountered the error below and wanted to know how to get past itRecently a colleague of mine encountered the error below and wanted to know how to get past it.

 

When configuring SharePoint 2010 Publish Portal you encounter the following error

“The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administrator. “

 

This issue is caused by lack of Session State Service

 

To fix this issue power up your PowerShell and run the following commands

PS C:\Users\farmsvc> $serviceApp = New-SPStateServiceApplication -Name "State Service"

PS C:\Users\farmsvc> New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp

n  This command creates a database

Name                                      Id                                                                            Type

StateServiceDatabase         4d968d46-28f4-4306-b9ff-8e2908cb31fe           Microsoft.Office....

PS C:\Users\farmsvc> New-SPStateServiceApplicationProxy -Name "State Service" -ServiceApplication $serviceApp -DefultProxyGroup

DisplayName          TypeName             Id

State Service        State Service Proxy  8b155590-3be3-443a-9f10-4b303a01c450v