Monday, November 29, 2010

Meeting Workspace error: ‘g_InstanceID’ is undefined

After changing the master page on a Meeting Workspace site, the recurring meeting workspace hyperlinks under “Select a date from the list below” do not work and throw a JavaScript error.

If you create a custom master page and use it for your Meeting Workspaces, a JavaScript error is thrown.

Error:
‘g_InstanceID’ is undefined

Cause:
The g_instanceId global JavaScript variable is declared in a script registered runtime by the

Microsoft.SharePoint.Meetings.PropertyBag web control. This control is used in the master page that’s used by Meeting Workspace sites called “MWSDefault.master” (located on server in 12 hive\TEMPLATE\GLOBAL\).
Workaround:

1.Open SharePoint Designer 2007. Go to File | Open Site and connect to SharePoint site.
2.Expand out _catalogs -> masterpage -> open master page used on Meeting Workspace.
3.In Code View, add the following line of code under < %@ Import Namespace="Microsoft.SharePoint" % > tag:

< %@ Register Tagprefix="Meetings" Namespace="Microsoft.SharePoint.Meetings" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" % >
4.Add the following line of code after opening < body …> tag: < Meetings:PropertyBag runat="server"/ >
5.Save master page, check in (if necessary), and publish major version.

No comments:

Post a Comment