Wednesday, November 30, 2011

SharePoint 2010 calendar's "Add" button issues after fixing the scrolling bug

What?

How to fix SharePoint 2010 calendar's "Add" button issues after fixing the scrolling bug

Why?

Every SharePoint designer must have bumped across the scrolling issue with SharePoint 2010 master pages.

Kyle Schaeffer & Greg Galipeau have already written excellent post 1 & excellent post 2 about this issue and how to fix it and so I am not going into details of the issue and how to fix it.

Of course, with any solution that changes the core way a system works, there is bound to be issues. One such issue is with the OOB calendar web part's "Add" button.

Wednesday, November 16, 2011

SharePoint 2010 - How to deactivate and delete a sandbox solution (site template) that throws exception from UI?

What?


How to deactivate and delete a sandbox solution (site template) that throws exception from UI?

Why?


Created a SharePoint 2010 team site (web) and saved it as a site template.
Created a new site using the newly created site template.
Delete the site with which the site template was created.

Attempted to deactivate the site template and it fails with the below exception:

Unable to access web scoped feature (Id: GUID) because it references a non-existent or broken web (Id: GUID) on site 'url'.  Exception: System.ArgumentException: Value does not fall within the expected range. 
   at Microsoft.SharePoint.SPWebCollection.get_Item(Guid id)
   at Microsoft.SharePoint.SPFeatureEnumeratorBase.GetCachedWeb(SPSite site, Guid  webId, Guid featureId)

Friday, November 11, 2011

How to fix the Visual Studio Exception: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

What?


How to fix the Visual Studio Exception: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Why?

Visual Studio (2010 in my case) throws an exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I received this exception whenever I tried to debug even a basic solution. That means an empty Visual Studio solution using "ASP.NET 3.5 Website Project" template.

Saturday, October 1, 2011

SharePoint 2010 - Server error: The URL is invalid, it may refer to a nonexistent file or folder or refer to a valid file that is not in the current Web

Scenario:

SharePoint Designer throws the error "Server error: The URL is invalid, it may refer to a nonexistent file or folder or refer to a valid file that is not in the current Web" when you attempt to open/check-in/check-out/upload a file.

Explanation:

While there could be many reasons for this misleading error to show up, one of the reason is low disk space in the database server.

SharePoint 2010 - How to specify a different master page for a publishing page layout

What?

How to associate a different master page than the default master page for a publishing page layout in SharePoint 2010?

Why?

There may be scenarios when certain pages in a SharePoint site require associations with a different master page(s)..

Typical examples could be pages that are required to be loaded inside SharePoint dialog boxes. These type of pages show up fine with minimal.master master page associated with them.

How?

Applying “minimal.master” master page to a page layout "CustomDialogPages.aspx" did not work.

When the page layout inherits from the 'PublishingLayoutPage' class the master page gets set on PreInit(), that's why it ignores what we put in the page directive.

There are 2 possible ways to get this to work:

Wednesday, August 17, 2011

A shortcut to debug SharePoint 2010 Solutions

What?

All of us who worked on developing SharePoint 2010 solutions are aware of the frustration involved with debugging them.

Sunday, August 14, 2011

Slides from SharePoint Saturday: The Conference DC on 12th August 2011


Here are the slides from Slides from my SharePoint session given on August 12 2011 at SharePoint Saturday The Conference in Washington DC titled "Leverage Search and Customize to your Brand within SharePoint 2010" as promised.

Topic: 

Leverage Search and Customize to your Brand within SharePoint 2010

Details:

The enterprise search capabilities built in to SharePoint 2010 provide an easy win for organizations seeking to achieve a quick return on their SharePoint investment. This technical deep dive will include a discussion of search configuration best practices, strategies for maximizing SharePoint's capabilities, and simple customizations that can take your search experience to the next level.