2011-08-31

Stupid mistake creates severe error in SharePoint 2010: "UIVersion property is invalid"

So which property? Where can you set UIVersion? Several places, but also in the feature definition. I had put the version number "1.0.0.0" in UIVersion instead of the Version field of the feature, and BANG! System Error!

So if you get "UIVersion property is invalid" when trying to administer your features then check your features :-)

2011-08-29

SharePoint 2010 custom master page and submit button on dialog pages not working

I got a strange error when i was working with a branded master page. No matter what I did I got an Javascript error ("Function Expected ... in/around- c=a.frames(RTE_GetEditorIFrameID(b))", and some other strange errors) when I opened an item, e.g. editing a task or adding a task. This Javascript error causes the sumbit button to not work :-(.

Took me some time to find the cause, and it was not what I supected it to be. The cause was the following line:

meta content="IE=Edge" equiv="X-UA-Compatible"

It should be (what is default SharePoint 2010):
meta content="IE=8.0" equiv="X-UA-Compatible"

2011-06-15

Problem connecting to a site collection using SharePoint Designer 2010

Got a weird error when I tried to connect to a SharePoint 2010 site collection:

"An error occurred while trying to fetch data from your sharepoint site" + "The status is 'OK'"

No it's not ok!

Looking at different blog posts several suggestions were provided: different build version, IIS binding issues, and so on.

BUT what fixed it in my case was these steps (suggested by JacobEgholm):


  • In IIS select authentication for the web app that causes you headaches

  • Select Windows Authentication

  • Select Advanced settings and turn off Extended protection

2011-06-01

Branding SharePoint 2010 My Site: Custom Master Page to replace mysite.master (MySitePublicWebPartPage)

We where creating a custom master page to replace the OOB mysite.master. Our plan was to use one common master for all usage scenarios. Applying our master page we got a server error:

Object reference not set to an instance of an object.

in the method:

Microsoft.SharePoint.Portal.WebControls.MySitePublicWebPartPage.OnInit(EventArgs e)

I had no clue what the issue was before i checked the implemntation of the OnInit() method using Reflector.

I turns out that pages inheriting from MySitePublicWebPartPage MUST have the content placeholder "PlaceHolderLeftNavBar" defined - it's hardcoded and NO check on null :-(.

Branding SharePoint 2010 My Site: Custom Master Page to replace mysite.master

We where creating a custom master page to replace the OOB mysite.master. Our plan was to use one common master for all usage scenarios. Applying our master page we got a server error:

Object reference not set to an instance of an object.

in the method:

Microsoft.SharePoint.Portal.WebControls.MySitePublicWebPartPage.OnInit(EventArgs e)

I had no clue what the issue was before i checked the implemntation of the OnInit() method using Reflector.

I turns out that pages inheriting from MySitePublicWebPartPage MUST have the content placeholder "PlaceHolderLeftNavBar" defined - it's hardcoded and NO check on null :-(.

2011-03-02

SharePoint 2010 upgrading issue: Found 7 web(s) using missing web template 100002 (lcid: 1044) in WSS_Content

Upgrading a SharePoint farm that are using custom site templates turned out to not be as straightforward as it should. Running Test-SPContentDatabase resulted in several missing web template errors.

The issue is that when you install and deploy custom site templates in your new SharePoint 2010 farm you have to restart your server(s) - an iisreset is NOT enough.

After you have installed your solutions check that the site templates really are available. The template may very well be deployed at [14]\Template\[language]\XML, and even available when you select Create New Site, but that is not enough. Why? Don't ask me.

Run the command Get-SPWebTemplate to actually verify that the template is really there.

I struggled hard until I found this article: http://projectserverblogs.com/?p=4294

After removing, reinstalling, redeploying and rebooting and running the powershell Test-SPContentDatabase one more time, all the Site Template releated errors where gone!

2011-02-25

Re-deployment errors when working with custom content types for SharePoint 2010 in Visual Studio 2010

I'm currently working on upgrading custom SharePoint 2007 solution packages implemented in Visual Studio 2008 and VSeWSS to SharePoint 2010 and Visual Studio 2010. I'm using VSeWSSImport as the tool for at least get most of the items converted automatically.

There are issues in the tool such as web part items are converted to modules, etc, but overall it's working ok.

The main issue I've been facing is a known bug in Visual Studio 2010 related to custom content types an redployment og solutions from within VS 2010. The annoying error I get is:

"Error occurred in deployment step 'Activate Features': The content type with Id '' defined in feature '{}' was found in the current site collection or in a subsite"

Microsoft have described a couple of work-arounds for this issue (KB2022443), but that was no help to me. Instead I'm using WSP Builder VS 2010 add-on, an manually deployment using Powershell - that always works!