Category Archives: SharePoint 2010

HTTP 403 Forbidden when calling Excel Services REST API (ExcelRest.aspx)

Today I was looking into Excel Services REST API (ExcelRest.aspx) in SharePoint 2010 for the first time. I followed some good articles on the web but kept on getting HTTP 403 Forbidden errors when invoking ExcelRest.aspx through the browser. Surprisingly … Continue reading

Posted in Excel Services, SharePoint 2010 | Leave a comment

Custom Ribbon buttons to bulk publish, approve/reject, cancel approval and unpublish multiple items

———— UPDATE (2015-07-10): If you just want the WSPs, then they can be downloaded here for 2013. UPDATE (2013-06-06): A SharePoint 2013 version of this solution is now available! Download it here. The 2010 version is still available for download. UPDATE: There … Continue reading

Posted in Custom Actions, Ribbon, SharePoint 2010 | 31 Comments

SPListItem.Workflows also returns completed workflows

I needed to retrieve all the running workflows for a list item. I tried SPListItem.Workflows and according to MSDN this should give me what I need. It however doesn’t – I found that it also includes completed workflow instances. I … Continue reading

Posted in SharePoint 2010, Workflow | Leave a comment

How to close SharePoint modal wait screen after postBack when page is in dialog mode

————– UPDATE: The code originally posted doesn’t work with IE. You get a “Can’t execute code from a freed script” error and the wait screen is not removed after postBack. The code works fine in Chrome and Firefox. I now … Continue reading

Posted in ModalDialog, SharePoint 2010, SharePoint JavaScript API | Tagged | 10 Comments

How to detect user is locked out when using Form Based Authentication in SharePoint 2010

When using FBA in SharePoint 2010 you get the error message below on login when the user name and/or password is incorrect. You get the same error message when the user account is locked out, which is not very useful … Continue reading

Posted in Claim Authentication, Form Based Authentication, SharePoint 2010 | 1 Comment

Lessons learnt in implementing ASP.NET login controls in SharePoint 2010

Recently I had to implement Create User, Change Password, Password Reset (Recovery) in SharePoint 2010. I decided to use the OOTB ASP.NET login controls for this. Mostly these controls just worked in SharePoint 2010 as they do in ASP.NET. There … Continue reading

Posted in Claim Authentication, Form Based Authentication, SharePoint 2010 | Leave a comment

“Your query is malformed. Please rephrase your query.” when searching using “None of these words” query

You get the error message “Your query is malformed. Please rephrase your query.” when searching in SharePoint using the “None of these words” query. Spent hours trying to figure it out? I know I did.. This is actually an OOTB … Continue reading

Posted in Search, SharePoint, SharePoint 2010 | Leave a comment

How to add custom user profile properties to the People Search Options dropdown

If you are using the OOTB FAST Search Center site template then by default you get a tab for People search on the main page. On this tab you get a Search Options link, which  brings up the dropdown box … Continue reading

Posted in Search, SharePoint 2010 | 6 Comments

Tips for organising your SharePoint project in Visual Studio

Becky Bertram recently blogged about Visual Studio project organisation for SharePoint. I agree with most of her points, and below are 3 additional conventions I’d suggest to others: 1. Always group SharePoint project items (SPI) into folders by project item … Continue reading

Posted in Practices, SharePoint, SharePoint 2010 | Leave a comment

SPException “The collection cannot be modified.” when calling SPContentType.Update()

If you are getting the SPException “The collection cannot be modified.” when calling SPContentType.Update() then ensure that the content type you are updating was not retrieved from the SPWeb.AvailableContentTypes collection. Content types retrieved from this collection (as oppose to SPWeb.ContentTypes) are … Continue reading

Posted in Content Types, SharePoint, SharePoint 2010 | 7 Comments