Archive

Archive for the ‘Customization’ Category

ContentByQueryWebParts: Unable to display this Web Parts

Try to enable Site collection Features: Office SharePoint Server Publishing Infrastructure.

Norwegian syntax using SharePoint 2007

SharePoint syntax of Norwegian is not the same as the English edition. In the english version you use commas (,) syntax. The Norwegian version used a semicolon (;).

MOSS 2007 E-mail “alerts” can not open the Outlook 2007 client

MicroSoft Office SharePoint Server 2007 e-mail “alerts” message can not be opened in outlook 2007 with Exchange 2003 Server

The problem occurred because Exchange 2003 can not convert the MIME-type property to the MAPI type of property.

Solution:
Hotfix from Microsoft is available for Exchange 2003 Server, contact Microsoft Customer Support Center to obtain the hotfix. Click on the link here and ask for “Hotfix KB930807″.
Prerequisite
Microsoft Exchange Server 2003 Service Pack 2 (SP2) must be installed before the hotfix installation

Hotfiks file information:
File name File version File size Date Time platform
Exosal.dll 6.5.7652.9 70.144 13-January-2007 09:06 x86
Mdbmsg.dll 6.5.7652.9 3,375,104 13-January-2007 08:21 x86
Store.exe 6.5.7652.9 5,263,360 13-January-2007 09:10 x86

Content Query Web Part with Forms Authentication / Anonymous Access

Many would agree with me that Content Query Web Part (CQWP)  is a very useful and smart Web part. It gives you the power to show the requested data with the requested look and feel.

I used CQWP a lot only with Windows Authentication for intranet purpose. But i had some problems with it when deploying websites using Forms authentication or Anonymous Access.

After logging in with your forms credentials you will get the following error message from CQWP:

Unable to display this Web Part. To troubleshoot the problem, open this
Web page in a Windows SharePoint Services-compatible HTML editor such as
Microsoft Office SharePoint Designer. If the problem persists, contact your Web
server administrator.

By default, CQWP uses ItemStyle.xsl file which lies under ~/Style Library/XSL Style Sheets/ library. 

My workaround was to do the following:

  • I tok a copy of my modified ItemStyle.xsl and put it inside a library that users have read access to.
  • Then I created a simple version of CQWP that looks like this:

<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">Simple CQWP</property>
<property name="Description" type="string">CQWP with customized ItemStyle.xsl path</property>
<property name="ItemXslLink" type="string">/Documents/ItemStyle.xsl</property>
</properties>
</data>
</webPart>
</webParts>

  • Then I imported the .webpart file to the WebPart Gallary.
Hope this helps :)
Follow

Get every new post delivered to your Inbox.

Join 41 other followers